diff options
| author | Philipp Hagemeister <phihag@phihag.de> | 2014-12-10 14:39:00 +0100 | 
|---|---|---|
| committer | Philipp Hagemeister <phihag@phihag.de> | 2014-12-10 14:39:00 +0100 | 
| commit | da276600148ce17714a93ea9f1de8fd38736f468 (patch) | |
| tree | 0535e9814c6d472f1afc99875b5195ee0e8b05f1 | |
| parent | b8a6114309971ff4fcfd7b617fcf0321a3ecfc1b (diff) | |
[youtube] Pass in all variables to DASH manifest (Fixes #4424)
| -rw-r--r-- | youtube_dl/extractor/youtube.py | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 329690742..42441d9fa 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -682,7 +682,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):          url = 'https://www.youtube.com/annotations_invideo?features=1&legacy=1&video_id=%s' % video_id          return self._download_webpage(url, video_id, note='Searching for annotations.', errnote='Unable to download video annotations.') -    def _parse_dash_manifest(self, video_id, dash_manifest_url): +    def _parse_dash_manifest( +            self, video_id, dash_manifest_url, player_url, age_gate):          def decrypt_sig(mobj):              s = mobj.group(1)              dec_s = self._decrypt_signature(s, video_id, player_url, age_gate) @@ -1005,7 +1006,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):                  dash_manifest_url = dash_mpd[0]                  try:                      dash_formats = self._parse_dash_manifest( -                        video_id, dash_manifest_url) +                        video_id, dash_manifest_url, player_url, age_gate)                  except (ExtractorError, KeyError) as e:                      self.report_warning(                          'Skipping DASH manifest: %r' % e, video_id) | 
