aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2019-04-27 05:08:27 +0700
committerSergey M․ <dstftw@gmail.com>2019-04-27 05:08:27 +0700
commit60e67c5b2c60fdda41db316282d2ed5a8d9ffacc (patch)
treebbddc6f0e66c6da90aef1bd72467765c580c029e
parenteefa0f21573fe6c21996f7d4d90806dfed3adb7d (diff)
[twitch] Prefer source format (closes #20850)
-rw-r--r--youtube_dl/extractor/twitch.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/twitch.py b/youtube_dl/extractor/twitch.py
index 8c87f6dd3..dc5ff29c3 100644
--- a/youtube_dl/extractor/twitch.py
+++ b/youtube_dl/extractor/twitch.py
@@ -134,12 +134,12 @@ class TwitchBaseIE(InfoExtractor):
def _prefer_source(self, formats):
try:
source = next(f for f in formats if f['format_id'] == 'Source')
- source['preference'] = 10
+ source['quality'] = 10
except StopIteration:
for f in formats:
if '/chunked/' in f['url']:
f.update({
- 'source_preference': 10,
+ 'quality': 10,
'format_note': 'Source',
})
self._sort_formats(formats)