X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2FFileDownloader.py;h=53c68237b8ba5d44b9c612099e84ffa0654852b8;hb=95fedbf86bd6c8820b01768db53355fe488dff5e;hp=d9a4ecd3a99c2127105d5ce3f87a4fe038fa1040;hpb=b7769a05eca3611e492f7a75f1c40cddd2019ef1;p=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: