projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eefa0f2
)
[twitch] Prefer source format (closes #20850)
author
Sergey M․
<dstftw@gmail.com>
Fri, 26 Apr 2019 22:08:27 +0000
(
05:08
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 26 Apr 2019 22:08:27 +0000
(
05:08
+0700)
youtube_dl/extractor/twitch.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/twitch.py
b/youtube_dl/extractor/twitch.py
index 8c87f6dd3bfde87fdb8d27935298a45f2861db47..dc5ff29c3f20545c30ad2b185305e4731774849c 100644
(file)
--- 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)