about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-08-16 19:59:03 +0600
committerSergey M․ <dstftw@gmail.com>2015-08-16 19:59:03 +0600
commit008687427725b8d857c44d75f358059c2533539a (patch)
treeb0f2c26fb824edbb709b21cc580a38687b829deb
parent7fc18d930917ad407c78bb9b0465dc4fae2fb335 (diff)
downloadyoutube-dl-008687427725b8d857c44d75f358059c2533539a.tar.gz
youtube-dl-008687427725b8d857c44d75f358059c2533539a.tar.xz
youtube-dl-008687427725b8d857c44d75f358059c2533539a.zip
[playtvak] Use tuples
-rw-r--r--youtube_dl/extractor/playtvak.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/playtvak.py b/youtube_dl/extractor/playtvak.py
index 2b338966f..278fdc1aa 100644
--- a/youtube_dl/extractor/playtvak.py
+++ b/youtube_dl/extractor/playtvak.py
@@ -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'