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

missing 'Adding new tracks to Tidal favorites' part #78

Closed
ogoor93 opened this issue Sep 9, 2024 · 2 comments
Closed

missing 'Adding new tracks to Tidal favorites' part #78

ogoor93 opened this issue Sep 9, 2024 · 2 comments

Comments

@ogoor93
Copy link

ogoor93 commented Sep 9, 2024

HI,
After searching for Tidal tracks in Spotify, priting missing tracks, I see only below errors. Any tips how to solve this issue?

Traceback (most recent call last):
File "C:\Users\ogoor\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return run_code(code, main_globals, None,
File "C:\Users\ogoor\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Users\ogoor\AppData\Local\Programs\Python\Python310\Scripts\spotify_to_tidal.exe_main
.py", line 7, in
File "C:\Users\ogoor\spotify_to_tidal\src\spotify_to_tidal_main
.py", line 42, in main
_sync.sync_favorites_wrapper(spotify_session, tidal_session, config)
File "C:\Users\ogoor\spotify_to_tidal\src\spotify_to_tidal\sync.py", line 345, in sync_favorites_wrapper
asyncio.run(main=sync_favorites(spotify_session=spotify_session, tidal_session=tidal_session, config=config))
File "C:\Users\ogoor\AppData\Local\Programs\Python\Python310\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Users\ogoor\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 649, in run_until_complete
return future.result()
File "C:\Users\ogoor\spotify_to_tidal\src\spotify_to_tidal\sync.py", line 331, in sync_favorites
await search_new_tracks_on_tidal(tidal_session, spotify_tracks, "Favorites", config)
File "C:\Users\ogoor\spotify_to_tidal\src\spotify_to_tidal\sync.py", line 280, in search_new_tracks_on_tidal
file.write(f"{song}\n")
File "C:\Users\ogoor\AppData\Local\Programs\Python\Python310\lib\encodings\cp1250.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 24-31: character maps to

@timrae
Copy link
Collaborator

timrae commented Sep 9, 2024

Hi thanks for reporting, I've pushed a fix for this, let me know if you're still having issues after updating

@timrae timrae closed this as completed Sep 9, 2024
@ogoor93
Copy link
Author

ogoor93 commented Sep 9, 2024

irhgt now it works, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants