diff --git a/vk_url_scraper/scraper.py b/vk_url_scraper/scraper.py index a4cfc68..234ab8b 100644 --- a/vk_url_scraper/scraper.py +++ b/vk_url_scraper/scraper.py @@ -313,7 +313,14 @@ class VkScraper: elif k == "video": for i, url in enumerate(attachments): filename = os.path.join(destination, f"{r['id']}_{i}.mkv") - ydl = yt_dlp.YoutubeDL({"outtmpl": filename, "quiet": True, 'restrictfilenames': True, 'forcefilename': True, }) + ydl = yt_dlp.YoutubeDL( + { + "outtmpl": filename, + "quiet": True, + "restrictfilenames": True, + "forcefilename": True, + } + ) info = ydl.extract_info(url, download=True) filename = ydl.prepare_filename(info) downloaded.append(filename)