Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
msramalho committed Jan 23, 2024
1 parent 699b4eb commit e525ff2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
4 changes: 3 additions & 1 deletion vk_url_scraper/scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,9 @@ def download_media(self, results: List[dict], destination: str = "./output/") ->
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,
Expand Down

0 comments on commit e525ff2

Please sign in to comment.