improve coding style
[youtube-dl] / youtube_dl / YoutubeDL.py
index 54bc8b06d9827408e66232cedc1629fcd175b52a..7953670a732eb29abdd249ecadf63be5fc52e029 100755 (executable)
@@ -855,7 +855,7 @@ class YoutubeDL(object):
 
             return self.process_ie_result(
                 new_result, download=download, extra_info=extra_info)
-        elif result_type == 'playlist' or result_type == 'multi_video':
+        elif result_type in ('playlist', 'multi_video'):
             # We process each entry in the playlist
             playlist = ie_result.get('title') or ie_result.get('id')
             self.to_screen('[download] Downloading playlist: %s' % playlist)