A feature-rich command-line audio/video downloader
[infoq] Fix extraction (closes #6141)
Yen Chi Hsuan91b21b2334a3
diff --git a/youtube_dl/extractor/infoq.py b/youtube_dl/extractor/infoq.pyindex 117a7faf6b..91a1b3ccb7 100644--- a/youtube_dl/extractor/infoq.py+++ b/youtube_dl/extractor/infoq.py@@ -5,6 +5,7 @@ import base64from .common import InfoExtractorfrom ..compat import (compat_urllib_parse,+ compat_urlparse,)@@ -45,7 +46,7 @@ class InfoQIE(InfoExtractor):video_id, extension = video_filename.split('.')http_base = self._search_regex(- r'EXPRESSINSTALL_SWF\s*=\s*"(https?://[^/"]+/)', webpage,+ r'EXPRESSINSTALL_SWF\s*=\s*[^"]*"((?:https?:)?//[^/"]+/)', webpage,'HTTP base URL')formats = [{@@ -55,7 +56,7 @@ class InfoQIE(InfoExtractor):'play_path': playpath,}, {'format_id': 'http',- 'url': http_base + real_id,+ 'url': compat_urlparse.urljoin(url, http_base) + real_id,}]self._sort_formats(formats)