aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorFilippo Valsorda <filippo.valsorda@gmail.com>2012-12-31 19:21:28 +0100
committerFilippo Valsorda <filippo.valsorda@gmail.com>2012-12-31 19:21:28 +0100
commit0214ce7c7584bd27c6e175065e3991d97af05855 (patch)
tree7f59bfde8c26c97206d7794a6dca829d49bb29b6 /youtube_dl
parent95fedbf86bd6c8820b01768db53355fe488dff5e (diff)
Ok, the Escapist test was passing only in my Travis repo, do not ask me why; also, a small bugfix to the latest commit
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/FileDownloader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/FileDownloader.py b/youtube_dl/FileDownloader.py
index 53c68237b..ebc2552df 100644
--- a/youtube_dl/FileDownloader.py
+++ b/youtube_dl/FileDownloader.py
@@ -494,7 +494,7 @@ class FileDownloader(object):
# Extract information from URL and process it
videos = ie.extract(url)
- if len(videos) > 1 and self.fixed_template():
+ if len(videos or []) > 1 and self.fixed_template():
raise SameFileError(self.params['outtmpl'])
for video in videos or []: