mirror of
https://github.com/casualsnek/onthespot.git
synced 2026-04-26 20:45:56 +03:00
[GH-ISSUE #140] [BUG] Key Error ! #104
Labels
No labels
Feedback requested
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/onthespot#104
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Bean-alt on GitHub (Jul 17, 2024).
Original GitHub issue: https://github.com/casualsnek/onthespot/issues/140
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:
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):
Additional context
Please look into this if you have time. I can try out build form source.
@espdav commented on GitHub (Jul 17, 2024):
i am having the same error
@espdav commented on GitHub (Jul 24, 2024):
any fix on this?
@justin025 commented on GitHub (Jul 25, 2024):
The following build may work, it's from the following PR https://github.com/casualsnek/onthespot/pull/138. Let me know if it works.
https://gofile.io/d/Tw3xp3
@espdav commented on GitHub (Jul 26, 2024):
do you have a windows build? i do not have linux
@espdav commented on GitHub (Jul 27, 2024):
hey mate, how do i install it on Windows? @justin025
@Bean-alt commented on GitHub (Jul 29, 2024):
Correction: Only few titles were affected at that time. i was able to download most of other titles. I seem to have tried every one in sequence that affected with this problem. Sorry if I mislead.
@justin025 Thanks for looking into this. I looked at your folk it seems to be the solution but i haven't tried your build yet. i will try it when its merged. thanks again. Btw, Have you tried above example links with new build?.
@justin025 commented on GitHub (Aug 7, 2024):
Windows build with all the latest pull requests: https://gofile.io/d/s7YUE2
not sure if it actually fixes the issue.
@Bean-alt I hope casualsnek merges my pr but i wouldn't count on it, he hasn't pushed a commit to this repo in over a year. If in a few months there isn't any activity I may fork the repo to maintain the project if there's still community interest.
From what i understand, key errors only occur on windows, my previous link was a linux build. Even on my windows build i haven't experienced key errors, id have to read into your logs further