]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[YoutubeDL] Allow multiple input URLs to be used with stdout as output template
authorSergey M․ <dstftw@gmail.com>
Sun, 19 Mar 2017 16:59:40 +0000 (23:59 +0700)
committerSergey M․ <dstftw@gmail.com>
Sun, 19 Mar 2017 16:59:40 +0000 (23:59 +0700)
youtube_dl/YoutubeDL.py

index 13a3a909e3964c904290e7d443fcf94dc3187ddf..cb502c26f6bf20788279f5bbfb0ed8e7e0e909f2 100755 (executable)
@@ -1872,6 +1872,7 @@ class YoutubeDL(object):
         """Download a given list of URLs."""
         outtmpl = self.params.get('outtmpl', DEFAULT_OUTTMPL)
         if (len(url_list) > 1 and
+                outtmpl != '-' and
                 '%' not in outtmpl and
                 self.params.get('max_downloads') != 1):
             raise SameFileError(outtmpl)