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

Can no longer download songs from mixed playlist #940

Open
sweiggster51 opened this issue Mar 2, 2024 · 1 comment
Open

Can no longer download songs from mixed playlist #940

sweiggster51 opened this issue Mar 2, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@sweiggster51
Copy link

I realized when my cron_job stopped downloading new songs that something went wrong with my presets. When trying to run, I get this:
"abc@a5bfba1b4c09:~/ytdl-sub-configs$ ytdl-sub sub subscriptions.yaml
[ytdl-sub] Validating subscriptions...
[ytdl-sub] Beginning subscription download for plex_music_playlist
[ytdl-sub] The following error occurred for the subscription plex_music_playlist:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/ytdl_sub/subscriptions/subscription_download.py", line 375, in exception_handling
yield
File "/usr/local/lib/python3.10/dist-packages/ytdl_sub/cli/entrypoint.py", line 126, in _download_subscriptions_from_yaml_files
subscription.download(dry_run=dry_run)
File "/usr/local/lib/python3.10/dist-packages/ytdl_sub/subscriptions/subscription_download.py", line 339, in download
self._enhanced_download_archive.reinitialize(dry_run=dry_run)
File "/usr/local/lib/python3.10/dist-packages/ytdl_sub/ytdl_additions/enhanced_download_archive.py", line 442, in reinitialize
self._download_mapping = self._maybe_load_download_mappings(
File "/usr/local/lib/python3.10/dist-packages/ytdl_sub/ytdl_additions/enhanced_download_archive.py", line 392, in _maybe_load_download_mappings
return DownloadMappings.from_file(json_file_path=mapping_file_path)
File "/usr/local/lib/python3.10/dist-packages/ytdl_sub/ytdl_additions/enhanced_download_archive.py", line 173, in from_file
entry_mappings_json = json.load(json_file)
File "/usr/lib/python3.10/json/init.py", line 293, in load
return loads(fp.read(),
File "/usr/lib/python3.10/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.10/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
[ytdl-sub]
No files changed for plex_music_playlist
[ytdl-sub] Download Summary:
plex_music_playlist 0 0 0 0 JSONDecodeError
Total: 1 0 0 0 0 Error

See /tmp/ytdl-sub.errors88gs9ctd for details on errors.
Consider making a GitHub issue including the uploaded log file.
abc@a5bfba1b4c09:~/ytdl-sub-configs$"

Config: https://pastebin.com/ZKHD9pT2
Subscriptions: https://pastebin.com/0s2SGJt6

@jmbannon
Copy link
Owner

Sorry for the delayed response, it seems your download archive file got corrupted and is no longer valid JSON.

You could try manually editing it to get it back to proper JSON format

@jmbannon jmbannon added the bug Something isn't working label Mar 23, 2024
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