This commit is contained in:
msramalho
2024-01-23 12:45:45 +00:00
parent 699b4ebdd8
commit e525ff24b1
2 changed files with 4 additions and 2 deletions

View File

@@ -13,4 +13,4 @@ run-checks :
black .
flake8 .
mypy .
CUDA_VISIBLE_DEVICES='' pytest -v --color=yes --doctest-modules tests/ vk_url_scraper/
CUDA_VISIBLE_DEVICES='' pytest -v --color=yes .

View File

@@ -339,7 +339,9 @@ class VkScraper:
filename = os.path.join(destination, f"{r['id']}_{i}.%(ext)s")
ydl = yt_dlp.YoutubeDL(
{
"format": "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best",
"format": (
"bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best"
),
"merge_output_format": "mp4",
"retries": 5,
"noplaylist": True,