mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-08-23 04:18:54 +03:00
* YoutubeDL:validate_destination_filename(): Bugfix of the previous commit when -o contains a directory.
* test_YoutubeDL:test_prepare_outtmpl_and_filename(): Prevents bogus test failure.
This commit is contained in:
@@ -742,6 +742,7 @@ class TestYoutubeDL(unittest.TestCase):
|
||||
params['outtmpl'] = tmpl
|
||||
ydl = FakeYDL(params)
|
||||
ydl._num_downloads = 1
|
||||
ydl.validate_destination_filename = lambda *args: None
|
||||
self.assertEqual(ydl.validate_outtmpl(tmpl), None)
|
||||
|
||||
out = ydl.evaluate_outtmpl(tmpl, info or self.outtmpl_info)
|
||||
|
||||
Reference in New Issue
Block a user