onthespot icon indicating copy to clipboard operation
onthespot copied to clipboard

[BUG] Key Error !

Open Bean-alt opened this issue 7 months ago • 7 comments

Describe the bug I Use release build for windows. Python Key Error hapens with 'genres', 'tracks' and 'name' when i tried to download some song titles. A very few titles aren't affected (about five titles) but most of the titles comes with either of above key errors. i can't try anything after this error, i have to reload the program to retry for another title. i use premium account(idk this matters). i tried both ffm bundled and non bundeld builds. also i tried removing and re logging the account. i tried changing some options in gui but non of these worked for me so far. im not a programing guy but i suspect this is having some problems with getting metadata for song id or having trouble with the site.

To Reproduce Steps to reproduce the behavior:

  1. Try : https://open.spotify.com/track/2I5ij1TxbSFDqQI1Aw42Zd?si=c6813783a7f641f3
  2. Try : https://open.spotify.com/track/4FSY456pOwDebYAv5TtytK?si=effcebb0a4c849e4

Console ----01----

[2024-07-17 18:43:15,058 :: gui.main_ui :: gui\mainui.py -> 587:__get_search_results() :: INFO] -> Search clicked with value term ru ra [2024-07-17 18:43:15,071 :: spotutils :: utils\spotify.py -> 247: search_by_term() :: INFO] -> Get search result for term 'ru ra', max items '10' QPixmap::scaled: Pixmap is a null pixmap QPixmap::scaled: Pixmap is a null pixmap QPixmap::scaled: Pixmap is a null pixmap QPixmap::scaled: Pixmap is a null pixmap QPixmap::scaled: Pixmap is a null pixmap QPixmap::scaled: Pixmap is a null pixmap QPixmap::scaled: Pixmap is a null pixmap QPixmap::scaled: Pixmap is a null pixmap QPixmap::scaled: Pixmap is a null pixmap [2024-07-17 18:43:19,026 :: gui.main_ui :: gui\mainui.py -> 759: __send_to_pqp() :: INFO] -> Prepared media for parsing, adding to PQP queue ! [2024-07-17 18:43:19,287 :: spotutils :: utils\spotify.py -> 97: sanitize_data() :: INFO] -> Sanitising string: "Sanjula himala"; Allow path separators: False [2024-07-17 18:43:19,287 :: spotutils :: utils\spotify.py -> 97: sanitize_data() :: INFO] -> Sanitising string: "Ru Ra"; Allow path separators: False [2024-07-17 18:43:19,287 :: spotutils :: utils\spotify.py -> 97: sanitize_data() :: INFO] -> Sanitising string: "Ru Ra"; Allow path separators: False [2024-07-17 18:43:19,287 :: runtimedata :: runtimedata.py -> 49: handle_exception() :: CRITICAL] -> Uncaught exception Traceback (most recent call last): File "worker\utility.py", line 227, in run File "utils\spotify.py", line 316, in get_song_info KeyError: 'genres'

---02--- [2024-07-17 18:54:46,801 :: gui.main_ui :: gui\mainui.py -> 587:__get_search_results() :: INFO] -> Search clicked with value term hithak thibuna [2024-07-17 18:54:46,803 :: spotutils :: utils\spotify.py -> 247: search_by_term() :: INFO] -> Get search result for term 'hithak thibuna', max items '10' OpenType support missing for "MS Shell Dlg 2", script 20 OpenType support missing for "Arial", script 20 OpenType support missing for "MS UI Gothic", script 20 OpenType support missing for "SimSun", script 20 QPixmap::scaled: Pixmap is a null pixmap QPixmap::scaled: Pixmap is a null pixmap QPixmap::scaled: Pixmap is a null pixmap QPixmap::scaled: Pixmap is a null pixmap QPixmap::scaled: Pixmap is a null pixmap QPixmap::scaled: Pixmap is a null pixmap QPixmap::scaled: Pixmap is a null pixmap qt.gui.icc: fromIccProfile: failed minimal tag size sanity qt.gui.icc: fromIccProfile: failed minimal tag size sanity [2024-07-17 18:54:52,497 :: gui.main_ui :: gui\mainui.py -> 759: __send_to_pqp() :: INFO] -> Prepared media for parsing, adding to PQP queue ! [2024-07-17 18:54:52,680 :: runtimedata :: runtimedata.py -> 49: handle_exception() :: CRITICAL] -> Uncaught exception Traceback (most recent call last): File "worker\utility.py", line 227, in run File "utils\spotify.py", line 295, in get_song_info KeyError: 'tracks'

System Information (please complete the following information):

  • OS: [Windows 10]
  • OnTheSpot Version: [0.5]

Additional context Please look into this if you have time. I can try out build form source.

Bean-alt avatar Jul 17 '24 13:07 Bean-alt