ondras / cyp

Control Your Player: a Web-based MPD client
MIT License
96 stars 20 forks source link

Is this able to work with yt-dlp? #32

Closed bitingsock closed 6 months ago

ondras commented 6 months ago

Maybe? I have no idea, honestly. No experience with yt-dlp.

There was a somewhat related discussion in https://github.com/ondras/cyp/issues/24#issuecomment-1830468902

You might want to check the youtube-dl arguments used to see if these work with yt-dlp as well: searching, downloading

bitingsock commented 6 months ago

pretty sure it is exactly the same. yt-dlp -j ytsearch2:test for example produces the attached json out.txt If there was a way to specify youtube-dl's path it should just work.

ondras commented 6 months ago

I just pushed a commit that uses the YOUTUBE environment variable to specify the youtube downloading program (defaults to youtube-dl). Please try with yt-dlp and let me know how that works for you.

bitingsock commented 6 months ago

Awesome, will do.

bitingsock commented 6 months ago

Seems to work, although at least under Windows I had to remove the ' escape from the search query(as well as other shell related changes). It does download correctly though. However, mpd says it's an ffmpeg: Unsupported audio codec though I suspect that is a Windows mpd issue.