From: Sergey M․ Date: Sun, 16 Aug 2015 13:59:03 +0000 (+0600) Subject: [playtvak] Use tuples X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=008687427725b8d857c44d75f358059c2533539a;p=youtube-dl [playtvak] Use tuples --- 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'