From 95fedbf86bd6c8820b01768db53355fe488dff5e Mon Sep 17 00:00:00 2001 From: Filippo Valsorda Date: Mon, 31 Dec 2012 19:09:37 +0100 Subject: 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) --- youtube_dl/FileDownloader.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'youtube_dl') 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: -- cgit v1.2.3