[GH-ISSUE #10] Multiple Bugs #7

Closed
opened 2026-02-27 04:57:05 +03:00 by kerem · 1 comment
Owner

Originally created by @yodaluca23 on GitHub (Apr 5, 2025).
Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/10

Using this command:

zotify https://open.spotify.com/playlist/4HjJHmwodH3LJ2NIZbSVFT -rp "/opt/navidrome/music" --creds "$HOME/ZotifyMusic" -op "./{album_artist}/{album}/{track_id}" -oe "./{album_artist}/{album}/{track_id}" -ol "./{album_artist}/{album}/{track_id}" -os "./{album_artist}/{album}/{track_id}" -oa "./{album_artist}/{album}/{track_id}" -e True -rpp "./Podcasts" --codec "m4a" -q "high" --download-parent-ablum True --m3u8-location "/opt/navidrome/music/playlists" --download-lyrics False -ie True --retry-attempts
5 --md-artistdelimiter ""

Get this error:

Traceback (most recent call last):
  File "/home/yodaluca23/ZotifyMusic/zotifyEnv/lib/python3.11/site-packages/zotify/track.py", line 245, in download_track
    song_label = add_to_m3u8(child_request_mode, get_song_duration(track_id), song_name, filename)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/yodaluca23/ZotifyMusic/zotifyEnv/lib/python3.11/site-packages/zotify/utils.py", line 80, in add_to_m3u8
    song_path = song_path.relative_to(m3u_path.parent, walk_up=True)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: PurePath.relative_to() got an unexpected keyword argument 'walk_up'

Then it seems to just stop doing anything...

Also, according to the README the parent album downloading flag is --download-parent-album True, but it's actually --download-parent-ablum True according to the dictionary the correct spelling is "album". (I always spell it wrong too lol).

Thank you for your time and effort! Your fork is amazing!

Originally created by @yodaluca23 on GitHub (Apr 5, 2025). Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/10 Using this command: ``` zotify https://open.spotify.com/playlist/4HjJHmwodH3LJ2NIZbSVFT -rp "/opt/navidrome/music" --creds "$HOME/ZotifyMusic" -op "./{album_artist}/{album}/{track_id}" -oe "./{album_artist}/{album}/{track_id}" -ol "./{album_artist}/{album}/{track_id}" -os "./{album_artist}/{album}/{track_id}" -oa "./{album_artist}/{album}/{track_id}" -e True -rpp "./Podcasts" --codec "m4a" -q "high" --download-parent-ablum True --m3u8-location "/opt/navidrome/music/playlists" --download-lyrics False -ie True --retry-attempts 5 --md-artistdelimiter "" ``` Get this error: ``` Traceback (most recent call last): File "/home/yodaluca23/ZotifyMusic/zotifyEnv/lib/python3.11/site-packages/zotify/track.py", line 245, in download_track song_label = add_to_m3u8(child_request_mode, get_song_duration(track_id), song_name, filename) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/yodaluca23/ZotifyMusic/zotifyEnv/lib/python3.11/site-packages/zotify/utils.py", line 80, in add_to_m3u8 song_path = song_path.relative_to(m3u_path.parent, walk_up=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: PurePath.relative_to() got an unexpected keyword argument 'walk_up' ``` Then it seems to just stop doing anything... Also, according to the README the parent album downloading flag is ```--download-parent-album True```, but it's actually ```--download-parent-ablum True``` according to the dictionary the correct spelling is "album". (I always spell it wrong too lol). Thank you for your time and effort! Your fork is amazing!
kerem closed this issue 2026-02-27 04:57:05 +03:00
Author
Owner

@Googolplexed0 commented on GitHub (Apr 9, 2025):

Fixed the config typo with commit b71196e.

For the PurePath.relative_to() error, the walk_up parameter wasn't added to pathlib until Python 3.12. I do all my dev work on 3.13, so I didn't realize this wasn't compatible with the current minimum required Python 3.10. Should be fixed with 8d37f57.

<!-- gh-comment-id:2789809632 --> @Googolplexed0 commented on GitHub (Apr 9, 2025): Fixed the config typo with commit b71196e. For the `PurePath.relative_to()` error, the `walk_up` parameter wasn't added to `pathlib` until Python 3.12. I do all my dev work on 3.13, so I didn't realize this wasn't compatible with the current minimum required Python 3.10. Should be fixed with 8d37f57.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/zotify#7
No description provided.