mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-15 12:53:18 +00:00
[playtvak] Use tuples
This commit is contained in:
parent
7fc18d9309
commit
0086874277
|
@ -120,7 +120,7 @@ def _real_extract(self, url):
|
|||
if not item:
|
||||
raise ExtractorError('No suitable stream found')
|
||||
|
||||
quality = qualities(['low', 'middle', 'high'])
|
||||
quality = qualities(('low', 'middle', 'high'))
|
||||
|
||||
formats = []
|
||||
for fmt in item['video']:
|
||||
|
@ -132,7 +132,7 @@ def _real_extract(self, url):
|
|||
format_id = '%s_%s' % (format_, fmt['quality'])
|
||||
preference = None
|
||||
|
||||
if format_ in ['mp4', 'webm']:
|
||||
if format_ in ('mp4', 'webm'):
|
||||
ext = format_
|
||||
elif format_ == 'rtmp':
|
||||
ext = 'flv'
|
||||
|
|
Loading…
Reference in a new issue