From 008687427725b8d857c44d75f358059c2533539a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergey=20M=E2=80=A4?= Date: Sun, 16 Aug 2015 19:59:03 +0600 Subject: [PATCH] [playtvak] Use tuples --- youtube_dl/extractor/playtvak.py | 4 ++-- 1 file 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 @@ 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'