aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dlc/extractor/infoq.py
diff options
context:
space:
mode:
authorTom-Oliver Heidel <github@tom-oliver.eu>2020-11-30 02:46:10 +0100
committerGitHub <noreply@github.com>2020-11-30 02:46:10 +0100
commit9e4043faa99609ac16d279a5f8d5fc22b23f0c8e (patch)
tree2c052847cd85fdf3ac33176a7d0109c79b518c45 /youtube_dlc/extractor/infoq.py
parent5867a1678924ad25a4784abfa5dbd28b5b69eb67 (diff)
parent94c29091d049f48962c3e81a1b5b0237ab54827d (diff)
downloadhypervideo-pre-9e4043faa99609ac16d279a5f8d5fc22b23f0c8e.tar.lz
hypervideo-pre-9e4043faa99609ac16d279a5f8d5fc22b23f0c8e.tar.xz
hypervideo-pre-9e4043faa99609ac16d279a5f8d5fc22b23f0c8e.zip
Merge branch 'master' into rcs
Diffstat (limited to 'youtube_dlc/extractor/infoq.py')
-rw-r--r--youtube_dlc/extractor/infoq.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/youtube_dlc/extractor/infoq.py b/youtube_dlc/extractor/infoq.py
index 18249cf9b..0a70a1fb4 100644
--- a/youtube_dlc/extractor/infoq.py
+++ b/youtube_dlc/extractor/infoq.py
@@ -54,7 +54,7 @@ class InfoQIE(BokeCCBaseIE):
def _extract_rtmp_video(self, webpage):
# The server URL is hardcoded
- video_url = 'rtmpe://video.infoq.com/cfx/st/'
+ video_url = 'rtmpe://videof.infoq.com/cfx/st/'
# Extract video URL
encoded_id = self._search_regex(
@@ -86,17 +86,18 @@ class InfoQIE(BokeCCBaseIE):
return [{
'format_id': 'http_video',
'url': http_video_url,
+ 'http_headers': {'Referer': 'https://www.infoq.com/'},
}]
def _extract_http_audio(self, webpage, video_id):
- fields = self._hidden_inputs(webpage)
+ fields = self._form_hidden_inputs('mp3Form', webpage)
http_audio_url = fields.get('filename')
if not http_audio_url:
return []
# base URL is found in the Location header in the response returned by
# GET https://www.infoq.com/mp3download.action?filename=... when logged in.
- http_audio_url = compat_urlparse.urljoin('http://res.infoq.com/downloads/mp3downloads/', http_audio_url)
+ http_audio_url = compat_urlparse.urljoin('http://ress.infoq.com/downloads/mp3downloads/', http_audio_url)
http_audio_url = update_url_query(http_audio_url, self._extract_cf_auth(webpage))
# audio file seem to be missing some times even if there is a download link