Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download failing, unicode encode error #77

Open
A-begger opened this issue Jul 19, 2023 · 2 comments
Open

Download failing, unicode encode error #77

A-begger opened this issue Jul 19, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@A-begger
Copy link

--- Logging error ---
Traceback (most recent call last):
File "logging/init.py", line 1113, in emit
UnicodeEncodeError: 'ascii' codec can't encode characters in position 120-128: ordinal not in range(128)
Call stack:
File "worker/downloader.py", line 347, in run
File "worker/downloader.py", line 52, in download_track
File "utils/spotify.py", line 353, in get_song_info
File "utils/spotify.py", line 101, in sanitize_data
File "logging/init.py", line 1489, in info
File "logging/init.py", line 1634, in _log
File "logging/init.py", line 1644, in handle
File "logging/init.py", line 1706, in callHandlers
File "logging/init.py", line 978, in handle
File "logging/init.py", line 1118, in emit
Message: 'Sanitising string: "\u30a8\u30f3\u30f4\u30a3\u30fc\u30d9\u30a4\u30d3\u30fc x KING"; Allow path separators: {allow_path_separators}'
Arguments: ()
[2023-07-19 13:29:33,895 :: spotutils :: utils/spotify.py -> 101: sanitize_data() :: INFO] -> Sanitising string: "KARENT"; Allow path separators: {allow_path_separators}
[2023-07-19 13:29:33,895 :: spotutils :: utils/spotify.py -> 101: sanitize_data() :: INFO] -> Sanitising string: "2021 Kanaria"; Allow path separators: {allow_path_separators}
[2023-07-19 13:29:33,895 :: spotutils :: utils/spotify.py -> 101: sanitize_data() :: INFO] -> Sanitising string: "2021 Kanaria / CFM inc."; Allow path separators: {allow_path_separators}
[2023-07-19 13:29:34,589 :: worker.downloader.SESSION_DL_TH-ebbbeb6a-f769-4ee1-9023-5965a9243783 :: worker/downloader.py -> 222: download_track() :: ERROR

@A-begger A-begger added the bug Something isn't working label Jul 19, 2023
@A-begger
Copy link
Author

It happens with japanese titles, not sure how to fix

@tresni
Copy link
Contributor

tresni commented Jul 27, 2023

Check your locale settings, make sure it's something like utf-8 as right now it looks like your terminal emulator is setting it to ascii.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants