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

pull/8/head
Sergey M․ 2017-03-19 23:59:40 +07:00
rodzic 45e6ad21b4
commit 9487ce03e9
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 2C393E0F18A9236D
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -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)