diff --git a/scraper/src/youtube2zim/scraper.py b/scraper/src/youtube2zim/scraper.py index 843c48e7..d9c874ae 100644 --- a/scraper/src/youtube2zim/scraper.py +++ b/scraper/src/youtube2zim/scraper.py @@ -641,8 +641,8 @@ def download_video_files(self, max_concurrency): # "external_downloader_args": ["--max-tries=20", "--retry-wait=30"], "outtmpl": str(self.videos_dir.joinpath("%(id)s", "video.%(ext)s")), "preferredcodec": self.video_format, - "format": f"best[ext={vidext}]/" - f"bestvideo[ext={vidext}]+bestaudio[ext={audext}]/best", + "format": f"bestvideo*[ext={vidext}]+bestaudio[ext={audext}]/" + "bestvideo*+bestaudio/best", "y2z_videos_dir": self.videos_dir, } if self.all_subtitles: