XDGFX / ultrasonics

Sync music playlists between all your music services. Do more with your music.
GNU General Public License v3.0
218 stars 18 forks source link

plugins - ERROR - 'name' #59

Open thomsen883 opened 1 year ago

thomsen883 commented 1 year ago

Trying various applets, but the output plugin always throws the same error: plugins - ERROR - 'name' -> KeyError: 'name'

Use case 1 - Import playlists from one Plex Media Server directly to another Plex Media Server:

Input plugin: plex beta v1.0 Output plugin: plex beta v1.0 Error traces:

Getting songs: 100%|██████████████████████████████████████████████████████████████████████| 16/16 [00:00<00:00, 28.06it/s]
100%|█████████████████████████████████████████████████████████████████████████████████████| 27/27 [01:44<00:00,  3.88s/it]
2022-12-20 17:29:35,594 - plugins - DEBUG - Running plugin plex beta v1.0 (plugins.py:158)
Processing playlists:   0%|                                                                        | 0/27 [00:00<?, ?it/s]
2022-12-20 17:29:35,615 - plugins - ERROR - 'name' (plugins.py:291)
Traceback (most recent call last):
  File "/opt/ultrasonics/ultrasonics/plugins.py", line 285, in applet_run
    plugin_run(*get_info(plugin), component="outputs",
  File "/opt/ultrasonics/ultrasonics/plugins.py", line 162, in plugin_run
    response = found_plugins[name].run(
  File "/opt/ultrasonics/ultrasonics/official_plugins/up_plex beta.py", line 165, in run
    log.info(f"Processing playlist: {playlist['name']}")
KeyError: 'name'
2022-12-20 17:29:35,616 - plugins - WARNING - Applet 0705bfa8-8080-11ed-8a48-8ff94a3685e0 failed in 0:01:44.793027 (plugins.py:299)
2022-12-20 17:29:35,661 - database - INFO - Applet lastrun updated (database.py:377)

Use case 2 - Import playlists from one Plex Media Server to a local directory of the server running Plex and Ultrasonics:

Input plugin: plex beta v1.0 Output plugin: local playlists v03 Error traces:

Getting songs: 100%|██████████████████████████████████████████████████████████████████████| 16/16 [00:00<00:00, 27.25it/s]
100%|█████████████████████████████████████████████████████████████████████████████████████| 27/27 [01:45<00:00,  3.91s/it]
2022-12-20 17:20:00,000 - plugins - DEBUG - Running plugin local playlists v0.3 (plugins.py:158)
2022-12-20 17:20:00,001 - 🎧 local playlists - DEBUG - ultrasonics paths and local playlist paths do not use the same separators! (up_local playlists.py:203)
2022-12-20 17:20:00,001 - 🎧 local playlists - INFO - Found 0 playlist(s) in supplied directory. (up_local playlists.py:236)
2022-12-20 17:20:00,002 - 🎧 local playlists - INFO - Your backups are currently taking up 0.0MB of space (up_local playlists.py:190)
2022-12-20 17:20:00,002 - plugins - ERROR - 'name' (plugins.py:291)
Traceback (most recent call last):
  File "/opt/ultrasonics/ultrasonics/plugins.py", line 285, in applet_run
    plugin_run(*get_info(plugin), component="outputs",
  File "/opt/ultrasonics/ultrasonics/plugins.py", line 162, in plugin_run
    response = found_plugins[name].run(
  File "/opt/ultrasonics/ultrasonics/official_plugins/up_local playlists.py", line 309, in run
    item["name"] = re.sub("[\\/:*?|<>]+[ ]*", "", item["name"])
KeyError: 'name'
2022-12-20 17:20:00,003 - plugins - WARNING - Applet e13cf4da-8089-11ed-8a48-8ff94a3685e0 failed in 0:01:45.719689 (plugins.py:299)
2022-12-20 17:20:00,048 - database - INFO - Applet lastrun updated (database.py:377)