aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorFilippo Valsorda <filippo.valsorda@gmail.com>2012-12-31 19:09:37 +0100
committerFilippo Valsorda <filippo.valsorda@gmail.com>2012-12-31 19:12:57 +0100
commit95fedbf86bd6c8820b01768db53355fe488dff5e (patch)
treee216c1a5d179dcf832cc988f3b38407009618b26 /youtube_dl
parentb7769a05eca3611e492f7a75f1c40cddd2019ef1 (diff)
three small edits
* ask for a --verbose log when reporting bugs in README.md * re-enable Escapist test, seems stable now * check that we are not downloading multiple videos when the template is fixed (NOT a complete fix: not detecting playlists)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/FileDownloader.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube_dl/FileDownloader.py b/youtube_dl/FileDownloader.py
index d9a4ecd3a..53c68237b 100644
--- a/youtube_dl/FileDownloader.py
+++ b/youtube_dl/FileDownloader.py
@@ -493,6 +493,10 @@ class FileDownloader(object):
# Extract information from URL and process it
videos = ie.extract(url)
+
+ if len(videos) > 1 and self.fixed_template():
+ raise SameFileError(self.params['outtmpl'])
+
for video in videos or []:
video['extractor'] = ie.IE_NAME
try: