|
|
@ -134,12 +134,12 @@ class TwitchBaseIE(InfoExtractor):
|
|
|
|
def _prefer_source(self, formats):
|
|
|
|
def _prefer_source(self, formats):
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
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['quality'] = 10
|
|
|
|
except StopIteration:
|
|
|
|
except StopIteration:
|
|
|
|
for f in formats:
|
|
|
|
for f in formats:
|
|
|
|
if '/chunked/' in f['url']:
|
|
|
|
if '/chunked/' in f['url']:
|
|
|
|
f.update({
|
|
|
|
f.update({
|
|
|
|
'source_preference': 10,
|
|
|
|
'quality': 10,
|
|
|
|
'format_note': 'Source',
|
|
|
|
'format_note': 'Source',
|
|
|
|
})
|
|
|
|
})
|
|
|
|
self._sort_formats(formats)
|
|
|
|
self._sort_formats(formats)
|
|
|
|