Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playling playlists from Youtube #1

Closed
FrancescoCappio opened this issue Apr 22, 2022 · 10 comments
Closed

Playling playlists from Youtube #1

FrancescoCappio opened this issue Apr 22, 2022 · 10 comments

Comments

@FrancescoCappio
Copy link

I am not able to play playlists from youtube. I think the problem happens with all playlists as youtube-dl simply do not accept piped playlists url:

> python harmony.py --playlist "red hot chili peppers"

Searching for playlists...

Results for red hot chili peppers

0. Red Hot Chili Peppers - Unlimited Love (FULL ALBUM) - ESSBY
1. Best Of Red Hot Chili Peppers - Dean Cook
2. RHCP - The Red Hot Chili Peppers - ToonsToob
3. Red Hot Chili Peppers Greatest Hits - Joaquin Barbaglia
4. All songs by Red Hot Chili Peppers - allSongsBy
5. Red Hot Chili Peppers Radio - Harry
6. Rock - best of Red Hot Chili Peppers, Nirvana, Metallica, Blur, The White Stripes, The Cranberries - What now
7. Red Hot Chili Peppers PLAYLIST!!! - poompeyloompey
8. Red Hot Chili Peppers Radio - George Kost
9. Red Hot Chili Peppers - Californication (1999 - Full Album) - Le Sémaphore
10. Red Hot Chili Peppers - Playlist - Alin Iliuta
11. Red Hot Chili Peppers - Stadium Arcadium (Complete Album) - Nick
12. Red Hot Chili Peppers - Unlimited Love (Full Album, 2022/Álbum Completo) - Best Songs Playlist 2022
13. Red Hot Chili Peppers - Unlimited Love (ALBUM) - HULLE KAN  NIE MET MY NIE
14. RHCP Playlist - iandim
15. Red Hot Chili Peppers YouTube Mix - Sam Harris
16. The Getaway - Red Hot Chili Peppers (Full Album) - Dylan Hallett
17. Red Hot Chili Peppers on the Stern Show - The Howard Stern Show
18. Nirvana Red Hot Chili Peppers Green Day Offspring Blink-182 - Ricky Arreola
19. Red Hot Chili Peppers - Unlimited Love (Instrumentals) - Djancarlo Shatunov - Instrumentals & Acapellas

Pick an option [0:19, (B)ack]: 0

Red Hot Chili Peppers - Unlimited Love (FULL ALBUM) - ESSBY has been added to the queue.

Add playlists to the Queue (P)lay, (S)how Queue, (B)ack, (Q)uit: P

Playing items in the queue (q to quit)

0. Red Hot Chili Peppers - Unlimited Love (FULL ALBUM) - ESSBY

[ytdl_hook] ERROR: Unsupported URL: https://piped.kavin.rocks/playlist?list=PLfiMjLyNWxeZnoC5NvrDI_-61s0TRSeay
[ytdl_hook] youtube-dl failed: unexpected error occurred
Failed to recognize file format.

Exiting... (Errors when loading file)
Add playlists to the Queue (P)lay, (S)how Queue, (B)ack, (Q)uit:

@ZingyTomato
Copy link
Owner

Huh that's strange. It plays fine for me. Can you just try mpv https://piped.kavin.rocks/playlist?list=PLfiMjLyNWxeZnoC5NvrDI_-61s0TRSeay in a terminal and see what happens?

@ZingyTomato
Copy link
Owner

I've actually been using an arch Linux container to test out harmony and it still works. Maybe try re-installing mpv or updating youtube-dl?

@FrancescoCappio
Copy link
Author

FrancescoCappio commented Apr 22, 2022

Same error with mpv called directly. I'm on arch linux with everything updated. I also tried reinstalling mpv and youtube-dl (which come from the official repo). Maybe it's a version problem?

> mpv --version
mpv 0.34.1-dirty Copyright © 2000-2021 mpv/MPlayer/mplayer2 projects
 built on UNKNOWN
FFmpeg library versions:
   libavutil       57.17.100
   libavcodec      59.18.100
   libavformat     59.16.100
   libswscale      6.4.100
   libavfilter     8.24.100
   libswresample   4.3.100
FFmpeg version: n5.0

> youtube-dl --version
2021.12.17

@ZingyTomato
Copy link
Owner

Does --song and ---video work?

@FrancescoCappio
Copy link
Author

Yes, they both works correctly

@ZingyTomato
Copy link
Owner

ZingyTomato commented Apr 22, 2022

@FrancescoCappio Wow that's strange... is it maybe your internet connection or firewall?

@FrancescoCappio
Copy link
Author

I think it's a problem of youtube-dl with piped playlists, it's not able to resolve any url of this kind

@ZingyTomato
Copy link
Owner

ZingyTomato commented Apr 22, 2022

@FrancescoCappio Can you try mpv again with --msg-level=ytdl_hook=debug?

@ZingyTomato
Copy link
Owner

ZingyTomato commented Apr 23, 2022

@FrancescoCappio Sorry for pinging again, but could you try installing yt-dlp from the official arch repos and removing youtube-dl? I've confirmed that youtube-dl is the issue. Just added instructions for it.
https://github.com/ZingyTomato/Harmony-Music#-force-mpv-to-use-yt-dlp-over-youtube-dl

@ZingyTomato ZingyTomato reopened this Apr 23, 2022
@FrancescoCappio
Copy link
Author

I confirm that with yt-dlp it works, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants