In which file is the bug?
plex_sync.py
Describe the setup (arguments and their values, how it was run, etc.):
plex_sync.py -s 'EU' --Sync posters
Describe what the bug is:
Posters
Movies - 🎞️
Traceback (most recent call last):
File "/home/plex/docker/DatabaseConfig/scripts/plex_sync.py", line 581, in
response = instance.start_sync()
File "/home/plex/docker/DatabaseConfig/scripts/plex_sync.py", line 161, in start_sync
self._posters()
File "/home/plex/docker/DatabaseConfig/scripts/plex_sync.py", line 322, in _posters
run(self.process_posters(lib))
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "/home/plex/docker/DatabaseConfig/scripts/plex_sync.py", line 295, in process_posters
target_ratingkey = self.find_on_target(guid=entry['Guid'] if 'Guid' in entry else [], title=entry['title'] if 'title' in entry else '', type=entry['type'])
File "/home/plex/docker/DatabaseConfig/scripts/plex_sync.py", line 141, in find_on_target
lib_output = self.__get_data('target',f'/library/sections/{lib["key"]}/all', params={'includeGuids': '1'})['MediaContainer']['Metadata']
KeyError: 'Metadata'
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7f4904ca91e0>
Describe what should be happening:
It should sync posters
In which file is the bug? plex_sync.py Describe the setup (arguments and their values, how it was run, etc.): plex_sync.py -s 'EU' --Sync posters Describe what the bug is: Posters Movies - 🎞️ Traceback (most recent call last): File "/home/plex/docker/DatabaseConfig/scripts/plex_sync.py", line 581, in
response = instance.start_sync()
File "/home/plex/docker/DatabaseConfig/scripts/plex_sync.py", line 161, in start_sync
self._posters()
File "/home/plex/docker/DatabaseConfig/scripts/plex_sync.py", line 322, in _posters
run(self.process_posters(lib))
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "/home/plex/docker/DatabaseConfig/scripts/plex_sync.py", line 295, in process_posters
target_ratingkey = self.find_on_target(guid=entry['Guid'] if 'Guid' in entry else [], title=entry['title'] if 'title' in entry else '', type=entry['type'])
File "/home/plex/docker/DatabaseConfig/scripts/plex_sync.py", line 141, in find_on_target
lib_output = self.__get_data('target',f'/library/sections/{lib["key"]}/all', params={'includeGuids': '1'})['MediaContainer']['Metadata']
KeyError: 'Metadata'
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7f4904ca91e0>
Describe what should be happening: It should sync posters