about summary refs log tree commit diff
path: root/youtube_dl/YoutubeDL.py
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2017-04-12 20:38:43 +0100
committerRemita Amine <remitamine@gmail.com>2017-04-12 20:38:43 +0100
commit40fcba5edb0f54f09e33a193a0ffefb5668ca694 (patch)
tree28f40ca64f30e71cbce96cbf069ce5121afd715c /youtube_dl/YoutubeDL.py
parente4d74e2778ca283330460d893a0923820a74df66 (diff)
downloadyoutube-dl-40fcba5edb0f54f09e33a193a0ffefb5668ca694.tar.gz
youtube-dl-40fcba5edb0f54f09e33a193a0ffefb5668ca694.tar.xz
youtube-dl-40fcba5edb0f54f09e33a193a0ffefb5668ca694.zip
improve coding style
Diffstat (limited to 'youtube_dl/YoutubeDL.py')
-rwxr-xr-xyoutube_dl/YoutubeDL.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py
index 54bc8b06d..7953670a7 100755
--- a/youtube_dl/YoutubeDL.py
+++ b/youtube_dl/YoutubeDL.py
@@ -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)