Skarkii / Discord-MusicBot

A Discord Music Bot written in Python. Main goal is to have a smooth experience with Youtube/Soundcloud/Spotify requests.
GNU General Public License v3.0
3 stars 4 forks source link

Playing a playlist is not efficient #9

Closed Skarkii closed 1 month ago

Skarkii commented 1 month ago

By trying to play a playlist with many songs multiple ytsearchs are performed instead of being more efficient. An improvement should be implemented.

lurko said -p https://www.youtube.com/playlist?list=PLOHoVaTp8R7d3L_pjuwIa6nRh4tH5nI4x
[youtube:tab] Extracting URL: https://www.youtube.com/playlist?list=PLOHoVaTp8R7d3L_pjuwIa6nRh4tH5nI4x
[youtube:tab] PLOHoVaTp8R7d3L_pjuwIa6nRh4tH5nI4x: Downloading webpage
[youtube:tab] PLOHoVaTp8R7d3L_pjuwIa6nRh4tH5nI4x: Redownloading playlist API JSON with unavailable videos
[download] Downloading playlist: Spotify Playlist 2024 - Spotify Top Hits - Spotify Songs 2024
[youtube:tab] PLOHoVaTp8R7d3L_pjuwIa6nRh4tH5nI4x page 1: Downloading API JSON
[youtube:tab] Playlist Spotify Playlist 2024 - Spotify Top Hits - Spotify Songs 2024: Downloading 100 items of 100
[download] Downloading item 1 of 100
[youtube] Extracting URL: https://www.youtube.com/watch?v=2ydCvkxuNm4
[youtube] 2ydCvkxuNm4: Downloading webpage
[youtube] 2ydCvkxuNm4: Downloading ios player API JSON
[youtube] 2ydCvkxuNm4: Downloading web creator player API JSON
[youtube] 2ydCvkxuNm4: Downloading m3u8 information
WARNING: [youtube] Failed to download m3u8 information: <urllib3.connection.HTTPSConnection object at 0x70595c695fd0>: Failed to establish a new connection: [Errno 111] Connection refused
[download] Downloading item 2 of 100
[youtube] Extracting URL: https://www.youtube.com/watch?v=tKml80alH3Y
[youtube] tKml80alH3Y: Downloading webpage
[youtube] tKml80alH3Y: Downloading ios player API JSON
[youtube] tKml80alH3Y: Downloading web creator player API JSON
[youtube] tKml80alH3Y: Downloading m3u8 information
WARNING: [youtube] Failed to download m3u8 information: <urllib3.connection.HTTPSConnection object at 0x70595c816c90>: Failed to establish a new connection: [Errno 111] Connection refused
[download] Downloading item 3 of 100
[youtube] Extracting URL: https://www.youtube.com/watch?v=_jEP347F6_g
[youtube] _jEP347F6_g: Downloading webpage
[youtube] _jEP347F6_g: Downloading ios player API JSON
[youtube] _jEP347F6_g: Downloading web creator player API JSON
[youtube] _jEP347F6_g: Downloading m3u8 information
...
...
...
Skarkii commented 1 month ago