Sergey M․
6 years ago
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D
1 changed files with
6 additions and
1 deletions
-
youtube_dl/extractor/twitch.py
|
@ -136,7 +136,12 @@ class TwitchBaseIE(InfoExtractor): |
|
|
source = next(f for f in formats if f['format_id'] == 'Source') |
|
|
source = next(f for f in formats if f['format_id'] == 'Source') |
|
|
source['preference'] = 10 |
|
|
source['preference'] = 10 |
|
|
except StopIteration: |
|
|
except StopIteration: |
|
|
pass # No Source stream present |
|
|
|
|
|
|
|
|
for f in formats: |
|
|
|
|
|
if '/chunked/' in f['url']: |
|
|
|
|
|
f.update({ |
|
|
|
|
|
'source_preference': 10, |
|
|
|
|
|
'format_note': 'Source', |
|
|
|
|
|
}) |
|
|
self._sort_formats(formats) |
|
|
self._sort_formats(formats) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|