[playtvak] Use tuples
authorSergey M․ <dstftw@gmail.com>
Sun, 16 Aug 2015 13:59:03 +0000 (19:59 +0600)
committerSergey M․ <dstftw@gmail.com>
Sun, 16 Aug 2015 13:59:03 +0000 (19:59 +0600)
youtube_dl/extractor/playtvak.py

index 2b338966f496e23d24217c60ee47de228d3e78a4..278fdc1aab228212eab2d74e6dd6bc3358be2dbd 100644 (file)
@@ -120,7 +120,7 @@ class PlaytvakIE(InfoExtractor):
         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 @@ class PlaytvakIE(InfoExtractor):
             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'