Browse Source

[playtvak] Use tuples

totalwebcasting
Sergey M․ 9 years ago
parent
commit
0086874277
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      youtube_dl/extractor/playtvak.py

+ 2
- 2
youtube_dl/extractor/playtvak.py View File

@ -120,7 +120,7 @@ class PlaytvakIE(InfoExtractor):
if not item: if not item:
raise ExtractorError('No suitable stream found') raise ExtractorError('No suitable stream found')
quality = qualities(['low', 'middle', 'high'])
quality = qualities(('low', 'middle', 'high'))
formats = [] formats = []
for fmt in item['video']: for fmt in item['video']:
@ -132,7 +132,7 @@ class PlaytvakIE(InfoExtractor):
format_id = '%s_%s' % (format_, fmt['quality']) format_id = '%s_%s' % (format_, fmt['quality'])
preference = None preference = None
if format_ in ['mp4', 'webm']:
if format_ in ('mp4', 'webm'):
ext = format_ ext = format_
elif format_ == 'rtmp': elif format_ == 'rtmp':
ext = 'flv' ext = 'flv'


Loading…
Cancel
Save