Add in downloader parameters

This commit is contained in:
Serene-Arc
2021-07-29 19:10:10 +10:00
parent dbe8733fd4
commit 7bca303b1b
3 changed files with 11 additions and 6 deletions

View File

@@ -40,7 +40,7 @@ class Youtube(BaseDownloader):
ytdl_options['quiet'] = True
ytdl_options['logger'] = yt_logger
def download() -> bytes:
def download(_: dict) -> bytes:
with tempfile.TemporaryDirectory() as temp_dir:
download_path = Path(temp_dir).resolve()
ytdl_options['outtmpl'] = str(download_path) + '/' + 'test.%(ext)s'