three small edits
[youtube-dl] / youtube_dl / FileDownloader.py
index d9a4ecd3a99c2127105d5ce3f87a4fe038fa1040..53c68237b8ba5d44b9c612099e84ffa0654852b8 100644 (file)
@@ -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: