1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-25 03:32:05 +00:00

[YoutubeDL] Allow multiple input URLs to be used with stdout as output template

This commit is contained in:
Sergey M․ 2017-03-19 23:59:40 +07:00
parent 45e6ad21b4
commit 9487ce03e9
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

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