diff options
| author | sprhawk <465558+sprhawk@users.noreply.github.com> | 2017-12-26 22:27:26 +0800 | 
|---|---|---|
| committer | sprhawk <465558+sprhawk@users.noreply.github.com> | 2017-12-26 22:27:26 +0800 | 
| commit | c33de004e13da11f1ae3cad7310b36500cfb9d28 (patch) | |
| tree | c742e448af6c126eca4b259c85f83177aec54847 /youtube_dl/extractor/disney.py | |
| parent | 42a1012c7767306626c5358a18ad3e86417bd7b7 (diff) | |
| parent | db145ee54a57f5ccc89639de8c589eb111a91b19 (diff) | |
Merge branch 'master' of github.com:rg3/youtube-dl into weibo
Diffstat (limited to 'youtube_dl/extractor/disney.py')
| -rw-r--r-- | youtube_dl/extractor/disney.py | 12 | 
1 files changed, 10 insertions, 2 deletions
| diff --git a/youtube_dl/extractor/disney.py b/youtube_dl/extractor/disney.py index 968c4c7fd..0eee82fd6 100644 --- a/youtube_dl/extractor/disney.py +++ b/youtube_dl/extractor/disney.py @@ -10,6 +10,7 @@ from ..utils import (      compat_str,      determine_ext,      ExtractorError, +    update_url_query,  ) @@ -108,9 +109,16 @@ class DisneyIE(InfoExtractor):                  continue              tbr = int_or_none(flavor.get('bitrate'))              if tbr == 99999: -                formats.extend(self._extract_m3u8_formats( +                # wrong ks(Kaltura Signature) causes 404 Error +                flavor_url = update_url_query(flavor_url, {'ks': ''}) +                m3u8_formats = self._extract_m3u8_formats(                      flavor_url, video_id, 'mp4', -                    m3u8_id=flavor_format, fatal=False)) +                    m3u8_id=flavor_format, fatal=False) +                for f in m3u8_formats: +                    # Apple FairPlay +                    if '/fpshls/' in f['url']: +                        continue +                    formats.append(f)                  continue              format_id = []              if flavor_format: | 
