abhishekmj303 / ytm2spt

Transfer Playlists from YouTube Music to Spotify
https://pypi.org/project/ytm2spt
GNU General Public License v3.0
119 stars 7 forks source link

Error when playlist contains very long video #20

Open Masarahhu opened 2 weeks ago

Masarahhu commented 2 weeks ago

Describe the bug I get the following message when I try to use the GUI Error running command: invalid literal for int() with base 10: '13,165'

I have placed the following playlist: https://youtube.com/playlist?list=PLfuGZPdCf-K_65ebc5u1yc5WonSf5HOXk&si=ShgAe8s3FVxDsud5

I have copied the user ID from spotify profile, and client ID and secret so I am pretty sure those are correct. The playlist is public for now

command is: ytm2spt -yt "https://youtube.com/playlist?list=PLfuGZPdCf-K_65ebc5u1yc5WonSf5HOXk&si=ShgAe8s3FVxDsud5"

Expected behavior I expected for the run to be successful

Screenshots image

Device (please complete the following information):

abhishekmj303 commented 2 weeks ago

@Masarahhu You are getting error because the playlist contains very long video which is basically a live stream of about '13,165' hours. I have pushed a fix to the library which is used: sigma67/ytmusicapi#660

Meanwhile if you can remove this song "lofi hip hop radio - beats to relax/study to" from that playlist it will work ok.