pigeonai-org / ViDove

🐦ViDove: RAG-Augmented End-to-end Multimodal Translation Agent
GNU General Public License v3.0
93 stars 9 forks source link

fix yt-dlp #19

Open yichen14 opened 2 months ago

yichen14 commented 2 months ago

please refer to https://www.reddit.com/r/youtubedl/wiki/cookies/ @JiaenLiu @beginsc

yichen14 commented 2 months ago

https://github.com/pigeonai-org/ViDove/blob/main/src/task.py#L343 https://github.com/pigeonai-org/ViDove/blob/main/src/task.py#L338

modify line 343 and 338

        video_opts = {
            'format': video_format, 
            'outtmpl': video_download_path,
            'cookiefile': 'path/to/cookie',
        }

        audio_opts = {
            'format': 'bestaudio[ext=mp3]/bestaudio', 
            'outtmpl': audio_download_dir,
            'cookiefile': 'path/to/cookie',
        }