ErrorFlynn / ytdlp-interface

Windows graphical interface for yt-dlp, designed as a simple YouTube downloader
MIT License
1.07k stars 56 forks source link

Only chat is downloading #101

Closed MODKILLER1001 closed 1 year ago

MODKILLER1001 commented 1 year ago

when using custom arguments --embed-metadata --live-from-start --wait-for-video 10 --write-subs --sub-langs live_chat --write-thumbnail it only downloads chat recently image image

ErrorFlynn commented 1 year ago

This happens because yt-dlp can't download the chat and the video at the same time. It warns you of this: WARNING: Live chat download runs until the livestream ends. If you wish to download the video simultaneously, run a separate yt-dlp instance.

So you need to be downloading the video with one instance of yt-dlp, and the chat with another. You can do that with ytdlp-interface by queuing the video twice, by using different URLs (the youtube.com URL you can get from the video tab of the channel, and the youtu.be URL you can get by right-clicking on the video player and selecting Copy video URL). Or, you could just run yt-dlp in a command prompt window to download the live chat, while ytdlp-interface downloads the video.

Edit: you could actually add a video twice to the queue just by adding an ampersand to the URL (for example: https://www.youtube.com/watch?v=JkwJ_OHJBzU&).

MODKILLER1001 commented 1 year ago

so like https://www.youtube.com/watch?v=VideoID&https://youtu.be/VideoID

ErrorFlynn commented 1 year ago

so like https://www.youtube.com/watch?v=VideoID&https://youtu.be/VideoID

https://www.youtube.com/watch?v=VideoID or https://youtu.be/VideoID or https://www.youtube.com/watch?v=VideoID& or https://youtu.be/VideoID&

Those are all distinct URLs that point to the same video. yt-dlp discards everything after the &, including the &. The & makes the URL distinct from the version without &, so you can add it twice to the queue in ytdlp-interface (because ytdlp-interface doesn't allow identical URLs to be added to the queue).

For example, https://www.youtube.com/watch?v=cm-r25hY4VA& is distinct from https://www.youtube.com/watch?v=cm-r25hY4VA because of the & at the end, even though it's functionally the same URL.