ZeroQI / Lambda.bundle

Local Media Export, a reverse Plex 'Local Media Assets' agent to export metadata locally
GNU General Public License v3.0
134 stars 18 forks source link

Music library: UnboundLocalError: local variable 'collections' referenced before assignment #24

Closed ZeroQI closed 3 years ago

ZeroQI commented 3 years ago

https://forums.plex.tv/t/rel-lambda-local-assets-metadata-double-agent-for-plex-metadata-export/295681/172#

2020-10-25 12:26:09,908 (7fd7c7d11700) : INFO (init:693) - ------------------------------------------------------------------------------------------------------------------------------------------------------------- 2020-10-25 12:26:09,911 (7fd7c7d11700) : CRITICAL (agentkit:1095) - Exception in the update function of agent named 'Lambda', called with guid 'com.plexapp.agents.lastfm://Tavares/M1%2B%20Top%201000?lang=en' (most recent call last): File "/volume1/@appstore/Plex Media Server/Resources/Plug-ins-211702a9f/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py", line 1093, in _update agent.update(obj, media, lang, **kwargs) File "/volume1/Plex/Library/Application Support/Plex Media Server/Plug-ins/Lambda.bundle/Contents/Code/init.py", line 716, in update def update(self, metadata, media, lang, force ): Update(metadata, media, lang, force, 'album') File "/volume1/Plex/Library/Application Support/Plex Media Server/Plug-ins/Lambda.bundle/Contents/Code/init.py", line 693, in Update elif NFOs[nfo]['path'].endswith('Ignored'): Log.Info('[ ] {:<12} path: "{}"'.format(nfo, NFOs[nfo]['path'])) UnboundLocalError: local variable 'collections' referenced before assignment

ZeroQI commented 3 years ago

554-694 for possible lines as the pointed at code do not have incriminated variable line 557 add: collections = [], test and report

ZeroQI commented 3 years ago

https://github.com/ZeroQI/Lambda.bundle/issues/24