[GH-ISSUE #167] [Bug Report] Artist Track Located Under Incorrect Subpath #148

Open
opened 2026-02-27 04:57:49 +03:00 by kerem · 0 comments
Owner

Originally created by @RGPZ on GitHub (Feb 7, 2026).
Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/167

Originally assigned to: @Googolplexed0 on GitHub.

Zotify Version
Latest version of new-hierarchy 0.15.6

Bug Description
Upon trying to download an artist link, I'm getting told that a file location isn't in the Zotify music folder, it's not using the artist folder that I currently have that I want it to download the music from.

Bug Triggering Command
The command that caused the error/crash, including relevant url arguments.

Error Traceback / Logs
Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "c:\users\X\.local\bin\zotify.exe\__main__.py", line 5, in <module> sys.exit(main()) ~~~~^^ File "C:\Users\X\pipx\venvs\zotify\Lib\site-packages\zotify\__main__.py", line 143, in main client(args, modes) ~~~~~~^^^^^^^^^^^^^ File "C:\Users\X\pipx\venvs\zotify\Lib\site-packages\zotify\app.py", line 186, in client perform_query(args) ~~~~~~~~~~~~~^^^^^^ File "C:\Users\X\pipx\venvs\zotify\Lib\site-packages\zotify\app.py", line 178, in perform_query raise e File "C:\Users\X\pipx\venvs\zotify\Lib\site-packages\zotify\app.py", line 149, in perform_query Query(Zotify.DATETIME_LAUNCH).request(urls).execute() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "C:\Users\X\pipx\venvs\zotify\Lib\site-packages\zotify\api.py", line 1511, in execute self.download() ~~~~~~~~~~~~~^^ File "C:\Users\X\pipx\venvs\zotify\Lib\site-packages\zotify\api.py", line 1455, in download nonskipped = [ps for ps in pss if not ps.check_skippable()] # handles already downloaded ~~~~~~~~~~~~~~~~~~^^ File "C:\Users\X\pipx\venvs\zotify\Lib\site-packages\zotify\api.py", line 1290, in check_skippable skip = any(c.check_skippable(self) for c in self[::-1]) File "C:\Users\X\pipx\venvs\zotify\Lib\site-packages\zotify\api.py", line 1290, in <genexpr> skip = any(c.check_skippable(self) for c in self[::-1]) ~~~~~~~~~~~~~~~~~^^^^^^ File "C:\Users\X\pipx\venvs\zotify\Lib\site-packages\zotify\api.py", line 595, in check_skippable if super().check_skippable(parent_stack): return True ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ File "C:\Users\X\pipx\venvs\zotify\Lib\site-packages\zotify\api.py", line 370, in check_skippable handle_archive(path.parent) ~~~~~~~~~~~~~~^^^^^^^^^^^^^ File "C:\Users\X\pipx\venvs\zotify\Lib\site-packages\zotify\api.py", line 362, in handle_archive f'FILE: "{self.rel_path(archived_path)}"') ~~~~~~~~~~~~~^^^^^^^^^^^^^^^ File "C:\Users\X\pipx\venvs\zotify\Lib\site-packages\zotify\api.py", line 334, in rel_path return p.relative_to(self._path_root) ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "C:\Users\X\scoop\apps\python\current\Lib\pathlib\_local.py", line 385, in relative_to raise ValueError(f"{str(self)!r} is not in the subpath of {str(other)!r}") ValueError: '01_KMFDM_Free Your Hate 2025.mp3' is not in the subpath of 'C:\\Users\\X\\Music\\Zotify Music'

Config File
{ "DEBUG": "True", "ROOT_PATH": "", "SAVE_CREDENTIALS": "True", "CREDENTIALS_LOCATION": "", "OUTPUT": "", "OUTPUT_SINGLE": "{artist}/{album}/{artist}_{song_name}", "OUTPUT_ALBUM": "{artist}/{album}/{album_num}_{artist}_{song_name}", "OUTPUT_PLAYLIST_EXT": "{playlist}/{playlist_num}_{artist}_{song_name}", "OUTPUT_LIKED_SONGS": "Liked Songs/{artist}_{song_name}", "ROOT_PODCAST_PATH": "", "SPLIT_ALBUM_DISCS": "False", "MAX_FILENAME_LENGTH": "0", "OPTIMIZED_DOWNLOADING": "True", "BULK_WAIT_TIME": "30", "DOWNLOAD_REAL_TIME": "True", "TEMP_DOWNLOAD_DIR": "", "DOWNLOAD_PARENT_ALBUM": "False", "NO_COMPILATION_ALBUMS": "False", "NO_VARIOUS_ARTISTS": "False", "NO_ARTIST_APPEARS_ON": "False", "DISCOG_BY_ALBUM_ARTIST": "False", "REGEX_ENABLED": "False", "REGEX_TRACK_SKIP": "", "REGEX_EPISODE_SKIP": "", "REGEX_ALBUM_SKIP": "", "DOWNLOAD_FORMAT": "mp3", "DOWNLOAD_QUALITY": "auto", "TRANSCODE_BITRATE": "auto", "CUSTOM_FFMEPG_ARGS": "", "SONG_ARCHIVE_LOCATION": "", "DISABLE_SONG_ARCHIVE": "False", "DISABLE_DIRECTORY_ARCHIVES": "False", "SKIP_EXISTING": "True", "SKIP_PREVIOUSLY_DOWNLOADED": "True", "EXPORT_M3U8": "False", "M3U8_LOCATION": "", "M3U8_REL_PATHS": "True", "LIKED_SONGS_ARCHIVE_M3U8": "True", "LYRICS_TO_METADATA": "True", "LYRICS_TO_FILE": "True", "LYRICS_LOCATION": "", "OUTPUT_LYRICS": "{artist}_{song_name}", "ALWAYS_CHECK_LYRICS": "False", "LYRICS_MD_HEADER": "False", "BYPASS_MD_API": "False", "LANGUAGE": "en", "MD_DISC_TRACK_TOTALS": "True", "MD_SAVE_GENRES": "False", "MD_ALLGENRES": "False", "MD_GENREDELIMITER": ",", "MD_ARTISTDELIMITER": ", ", "SEARCH_QUERY_SIZE": "10", "STRICT_LIBRARY_VERIFY": "True", "ALBUM_ART_JPG_FILE": "False", "RETRY_ATTEMPTS": "1", "CHUNK_SIZE": "20000", "REDIRECT_ADDRESS": "127.0.0.1", "PRINT_SPLASH": "False", "PRINT_PROGRESS_INFO": "True", "PRINT_SKIPS": "True", "PRINT_DOWNLOADS": "False", "PRINT_DOWNLOAD_PROGRESS": "True", "PRINT_URL_PROGRESS": "True", "PRINT_ALBUM_PROGRESS": "True", "PRINT_ARTIST_PROGRESS": "True", "PRINT_PLAYLIST_PROGRESS": "True", "PRINT_WARNINGS": "True", "PRINT_ERRORS": "True", "PRINT_API_ERRORS": "True", "STANDARD_INTERFACE": "False", "FFMPEG_LOG_LEVEL": "error" }
Additional Context from the DEBUG log
If needed I have the DEBUG log file

Total API Calls: 17`

Originally created by @RGPZ on GitHub (Feb 7, 2026). Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/167 Originally assigned to: @Googolplexed0 on GitHub. **Zotify Version** Latest version of new-hierarchy 0.15.6 **Bug Description** Upon trying to download an artist link, I'm getting told that a file location isn't in the Zotify music folder, it's not using the artist folder that I currently have that I want it to download the music from. **Bug Triggering Command** The command that caused the error/crash, including relevant url arguments. **Error Traceback / Logs** `Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "c:\users\X\.local\bin\zotify.exe\__main__.py", line 5, in <module> sys.exit(main()) ~~~~^^ File "C:\Users\X\pipx\venvs\zotify\Lib\site-packages\zotify\__main__.py", line 143, in main client(args, modes) ~~~~~~^^^^^^^^^^^^^ File "C:\Users\X\pipx\venvs\zotify\Lib\site-packages\zotify\app.py", line 186, in client perform_query(args) ~~~~~~~~~~~~~^^^^^^ File "C:\Users\X\pipx\venvs\zotify\Lib\site-packages\zotify\app.py", line 178, in perform_query raise e File "C:\Users\X\pipx\venvs\zotify\Lib\site-packages\zotify\app.py", line 149, in perform_query Query(Zotify.DATETIME_LAUNCH).request(urls).execute() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "C:\Users\X\pipx\venvs\zotify\Lib\site-packages\zotify\api.py", line 1511, in execute self.download() ~~~~~~~~~~~~~^^ File "C:\Users\X\pipx\venvs\zotify\Lib\site-packages\zotify\api.py", line 1455, in download nonskipped = [ps for ps in pss if not ps.check_skippable()] # handles already downloaded ~~~~~~~~~~~~~~~~~~^^ File "C:\Users\X\pipx\venvs\zotify\Lib\site-packages\zotify\api.py", line 1290, in check_skippable skip = any(c.check_skippable(self) for c in self[::-1]) File "C:\Users\X\pipx\venvs\zotify\Lib\site-packages\zotify\api.py", line 1290, in <genexpr> skip = any(c.check_skippable(self) for c in self[::-1]) ~~~~~~~~~~~~~~~~~^^^^^^ File "C:\Users\X\pipx\venvs\zotify\Lib\site-packages\zotify\api.py", line 595, in check_skippable if super().check_skippable(parent_stack): return True ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ File "C:\Users\X\pipx\venvs\zotify\Lib\site-packages\zotify\api.py", line 370, in check_skippable handle_archive(path.parent) ~~~~~~~~~~~~~~^^^^^^^^^^^^^ File "C:\Users\X\pipx\venvs\zotify\Lib\site-packages\zotify\api.py", line 362, in handle_archive f'FILE: "{self.rel_path(archived_path)}"') ~~~~~~~~~~~~~^^^^^^^^^^^^^^^ File "C:\Users\X\pipx\venvs\zotify\Lib\site-packages\zotify\api.py", line 334, in rel_path return p.relative_to(self._path_root) ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "C:\Users\X\scoop\apps\python\current\Lib\pathlib\_local.py", line 385, in relative_to raise ValueError(f"{str(self)!r} is not in the subpath of {str(other)!r}") ValueError: '01_KMFDM_Free Your Hate 2025.mp3' is not in the subpath of 'C:\\Users\\X\\Music\\Zotify Music'` **Config File** `{ "DEBUG": "True", "ROOT_PATH": "", "SAVE_CREDENTIALS": "True", "CREDENTIALS_LOCATION": "", "OUTPUT": "", "OUTPUT_SINGLE": "{artist}/{album}/{artist}_{song_name}", "OUTPUT_ALBUM": "{artist}/{album}/{album_num}_{artist}_{song_name}", "OUTPUT_PLAYLIST_EXT": "{playlist}/{playlist_num}_{artist}_{song_name}", "OUTPUT_LIKED_SONGS": "Liked Songs/{artist}_{song_name}", "ROOT_PODCAST_PATH": "", "SPLIT_ALBUM_DISCS": "False", "MAX_FILENAME_LENGTH": "0", "OPTIMIZED_DOWNLOADING": "True", "BULK_WAIT_TIME": "30", "DOWNLOAD_REAL_TIME": "True", "TEMP_DOWNLOAD_DIR": "", "DOWNLOAD_PARENT_ALBUM": "False", "NO_COMPILATION_ALBUMS": "False", "NO_VARIOUS_ARTISTS": "False", "NO_ARTIST_APPEARS_ON": "False", "DISCOG_BY_ALBUM_ARTIST": "False", "REGEX_ENABLED": "False", "REGEX_TRACK_SKIP": "", "REGEX_EPISODE_SKIP": "", "REGEX_ALBUM_SKIP": "", "DOWNLOAD_FORMAT": "mp3", "DOWNLOAD_QUALITY": "auto", "TRANSCODE_BITRATE": "auto", "CUSTOM_FFMEPG_ARGS": "", "SONG_ARCHIVE_LOCATION": "", "DISABLE_SONG_ARCHIVE": "False", "DISABLE_DIRECTORY_ARCHIVES": "False", "SKIP_EXISTING": "True", "SKIP_PREVIOUSLY_DOWNLOADED": "True", "EXPORT_M3U8": "False", "M3U8_LOCATION": "", "M3U8_REL_PATHS": "True", "LIKED_SONGS_ARCHIVE_M3U8": "True", "LYRICS_TO_METADATA": "True", "LYRICS_TO_FILE": "True", "LYRICS_LOCATION": "", "OUTPUT_LYRICS": "{artist}_{song_name}", "ALWAYS_CHECK_LYRICS": "False", "LYRICS_MD_HEADER": "False", "BYPASS_MD_API": "False", "LANGUAGE": "en", "MD_DISC_TRACK_TOTALS": "True", "MD_SAVE_GENRES": "False", "MD_ALLGENRES": "False", "MD_GENREDELIMITER": ",", "MD_ARTISTDELIMITER": ", ", "SEARCH_QUERY_SIZE": "10", "STRICT_LIBRARY_VERIFY": "True", "ALBUM_ART_JPG_FILE": "False", "RETRY_ATTEMPTS": "1", "CHUNK_SIZE": "20000", "REDIRECT_ADDRESS": "127.0.0.1", "PRINT_SPLASH": "False", "PRINT_PROGRESS_INFO": "True", "PRINT_SKIPS": "True", "PRINT_DOWNLOADS": "False", "PRINT_DOWNLOAD_PROGRESS": "True", "PRINT_URL_PROGRESS": "True", "PRINT_ALBUM_PROGRESS": "True", "PRINT_ARTIST_PROGRESS": "True", "PRINT_PLAYLIST_PROGRESS": "True", "PRINT_WARNINGS": "True", "PRINT_ERRORS": "True", "PRINT_API_ERRORS": "True", "STANDARD_INTERFACE": "False", "FFMPEG_LOG_LEVEL": "error" }` **Additional Context from the DEBUG log** If needed I have the DEBUG log file Total API Calls: 17`
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#148
No description provided.