couldbejake / spotify2mp3

Simple free and unlimited Spotify playlist downloads. Spotify2mp3 - Spotify Downloader
MIT License
269 stars 42 forks source link

Parsing issue from html #25

Closed rudramenaria closed 1 year ago

rudramenaria commented 1 year ago

This is the Stack Trace of error

Traceback (most recent call last):
  File "run.py", line 296, in <module>
    main()
  File "run.py", line 281, in main
    playlist_name = html.fromstring(page.content).xpath('/html/body/div/div/div/div/div[1]/div/div[2]/h1')[0].text_content().strip()
IndexError: list index out of range
couldbejake commented 1 year ago

Hi @rudramenaria, do you think you could provide the playlist you are attempting to download, so I can receeate the bug?

Thanks, Couldbejake

rudramenaria commented 1 year ago

actually i am getting issue in all the playlist

rudramenaria commented 1 year ago

https://open.spotify.com/playlist/6OqnO8wLItXscShOSViDPv

Screenshot 2023-03-19 at 4 06 08 PM
couldbejake commented 1 year ago

Hi Rudra, sorry for the delay! Looking into this now

rudramenaria commented 1 year ago

@couldbejake Thank you very much for the effort

couldbejake commented 1 year ago

Not an issue @rudramenaria! We need to make the code more readable and a few other tickets.

I am currently swamped with freelancer work, but will be with you very soon.

Thank you for your patience!

rudramenaria commented 1 year ago

@couldbejake by the way i am also an Mobile Application Developer, lets catch up some time. i am working on a EDM music app, will show you.

couldbejake commented 1 year ago

@rudramenaria does your issue still occur on the latest version? I feel as if this may be caused by a differing locales.

couldbejake commented 1 year ago

I seem to be able to run the code with your playlist successfully. If this issue still occurs, please either open another ticket, or contact me directly.

Thank you.