mirror of
https://gitlab.com/dstftw/youtube-dl.git
synced 2020-11-16 09:42:26 +00:00
[infoq] Fix extraction (closes #6141)
This commit is contained in:
parent
66e568de3b
commit
91b21b2334
|
@ -5,6 +5,7 @@ import base64
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
from ..compat import (
|
from ..compat import (
|
||||||
compat_urllib_parse,
|
compat_urllib_parse,
|
||||||
|
compat_urlparse,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -45,7 +46,7 @@ class InfoQIE(InfoExtractor):
|
||||||
video_id, extension = video_filename.split('.')
|
video_id, extension = video_filename.split('.')
|
||||||
|
|
||||||
http_base = self._search_regex(
|
http_base = self._search_regex(
|
||||||
r'EXPRESSINSTALL_SWF\s*=\s*"(https?://[^/"]+/)', webpage,
|
r'EXPRESSINSTALL_SWF\s*=\s*[^"]*"((?:https?:)?//[^/"]+/)', webpage,
|
||||||
'HTTP base URL')
|
'HTTP base URL')
|
||||||
|
|
||||||
formats = [{
|
formats = [{
|
||||||
|
@ -55,7 +56,7 @@ class InfoQIE(InfoExtractor):
|
||||||
'play_path': playpath,
|
'play_path': playpath,
|
||||||
}, {
|
}, {
|
||||||
'format_id': 'http',
|
'format_id': 'http',
|
||||||
'url': http_base + real_id,
|
'url': compat_urlparse.urljoin(url, http_base) + real_id,
|
||||||
}]
|
}]
|
||||||
self._sort_formats(formats)
|
self._sort_formats(formats)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue