ZeroQI / Hama.bundle

Plex HTTP Anidb Metadata Agent (HAMA)
GNU General Public License v3.0
1.21k stars 113 forks source link

Beta - One Piece Errors #132

Closed sven-7 closed 7 years ago

sven-7 commented 7 years ago

Two errors popped up for One Piece. Logs attached.

No metadata or posters have shown up. I didn't add or make any changes...this just happened during a regular Plex refresh.

Logs.zip

2017-07-29 12:51:08,671 (c80) :  DEBUG (networking:166) - Requesting 'http://thetvdb.plexapp.com/banners/episodes/81797/634691.jpg'
2017-07-29 12:51:09,295 (c80) :  DEBUG (logkit:13) - common.SaveFile() - CachePath: 'C:\Users\RAFTEL3\AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.agents.hama\DataItems', file: 'TVDB/episodes/634691.jpg', directory present
2017-07-29 12:51:09,301 (c80) :  INFO (logkit:16) - url: 'http://thetvdb.plexapp.com/banners/episodes/81797/634691.jpg', num: '1', filename: 'TVDB/episodes/634691.jpg', DownloadedSaved locally
2017-07-29 12:51:09,302 (c80) :  INFO (logkit:16) - [2] duration                       Type: int                   Source: AniDB        Value: '1500000'
2017-07-29 12:51:09,302 (c80) :  INFO (logkit:16) - metadata.seasons[11].episodes[402]
2017-07-29 12:51:09,303 (c80) :  INFO (logkit:16) - [1] title                          Type: str                   Source: TheTVDB      Value: 'Overwhelming! The Marine Combat Weapon Pacifista'
2017-07-29 12:51:09,305 (c80) :  INFO (logkit:16) - [1] summary                        Type: str                   Source: TheTVDB      Value: 'The Straw Hat Pirates fight against one of the Pacifistas, and while it does not..'
2017-07-29 12:51:09,305 (c80) :  INFO (logkit:16) - [1] originally_available_at        Type: date                  Source: TheTVDB      Value: '2009-05-24'
2017-07-29 12:51:09,306 (c80) :  INFO (logkit:16) - [2] writers                        Type: list                  Source: TheTVDB      Value: 'Hirohiko Uesaka'
2017-07-29 12:51:09,308 (c80) :  INFO (logkit:16) - [2] directors                      Type: list                  Source: TheTVDB      Value: 'Hiroaki Miyamoto|Kounosuke Uda|Munehisa Sakai'
2017-07-29 12:51:09,309 (c80) :  INFO (logkit:16) - [#] producers                      Type: SetObject             Source: 'AniDB,TheTVDB', Field present in this sources: '[]'
2017-07-29 12:51:09,312 (c80) :  INFO (logkit:16) - [#] guest_stars                    Type: SetObject             Source: 'None', Field present in this sources: '[]'
2017-07-29 12:51:09,312 (c80) :  INFO (logkit:16) - [1] rating                         Type: float                 Source: AniDB        Value: '7.48'
2017-07-29 12:51:09,312 (c80) :  INFO (logkit:16) - [1] thumbs                   ( 1)  Type: dict                  Source: TheTVDB      Value: '{'http://thetvdb.plexapp.com/banners/episodes/81797/634701.jpg': ('TVDB/episodes/634701.jpg', 1, None)}'
2017-07-29 12:51:09,585 (c80) :  CRITICAL (core:574) - Error trimming cache (most recent call last):
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-8fa494d15\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\caching.py", line 264, in trim
    del self._info[key]
KeyError: u'http://api.anidb.net:9001/httpapi?request=anime&client=hama&clientver=1&protover=1&aid=1829'

Second error:

2017-07-29 12:48:23,331 (14a4) :  INFO (logkit:16) - metadata.seasons[19].episodes[798]
2017-07-29 12:48:23,332 (14a4) :  INFO (logkit:16) - [1] title                          Type: str                   Source: TheTVDB      Value: 'An Enemy With 800 Million! Luffy vs Thousand Armed Cracker!'
2017-07-29 12:48:23,334 (14a4) :  INFO (logkit:16) - [1] summary                        Type: str                   Source: TheTVDB      Value: 'Luffy squares off against Cracker, one of the Sweet 3 Generals, as Nami learns t..'
2017-07-29 12:48:23,335 (14a4) :  INFO (logkit:16) - [=] originally_available_at        Type: date                  Source: TheTVDB      Value: '2017-07-23'
2017-07-29 12:48:23,338 (14a4) :  INFO (logkit:16) - [#] writers                        Type: SetObject             Source: 'AniDB,TheTVDB', Field present in this sources: '[]'
2017-07-29 12:48:23,341 (14a4) :  INFO (logkit:16) - [#] directors                      Type: SetObject             Source: 'AniDB,TheTVDB', Field present in this sources: '[]'
2017-07-29 12:48:23,345 (14a4) :  INFO (logkit:16) - [#] producers                      Type: SetObject             Source: 'AniDB,TheTVDB', Field present in this sources: '[]'
2017-07-29 12:48:23,348 (14a4) :  INFO (logkit:16) - [#] guest_stars                    Type: SetObject             Source: 'None', Field present in this sources: '[]'
2017-07-29 12:48:23,352 (14a4) :  INFO (logkit:16) - [#] rating                         Type: NoneType              Source: 'AniDB, TheTVDB, MyAnimeList, TheMovieDb, OMDb', Field present in this sources: '[]'
2017-07-29 12:48:23,354 (14a4) :  INFO (logkit:16) - [1] thumbs                   ( 1)  Type: dict                  Source: TheTVDB      Value: '{'http://thetvdb.plexapp.com/banners/episodes/81797/6171810.jpg': ('TVDB/episodes/6171810.jpg', 1, None)}'
2017-07-29 12:48:23,384 (14a4) :  DEBUG (networking:166) - Requesting 'http://thetvdb.plexapp.com/banners/episodes/81797/6171810.jpg'
2017-07-29 12:48:23,967 (14a4) :  DEBUG (logkit:13) - common.SaveFile() - CachePath: 'C:\Users\RAFTEL3\AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.agents.hama\DataItems', file: 'TVDB/episodes/6171810.jpg', directory present
2017-07-29 12:48:23,973 (14a4) :  INFO (logkit:16) - url: 'http://thetvdb.plexapp.com/banners/episodes/81797/6171810.jpg', num: '1', filename: 'TVDB/episodes/6171810.jpg', DownloadedSaved locally
2017-07-29 12:48:23,973 (14a4) :  INFO (logkit:16) - [=] duration                       Type: int                   Source: AniDB        Value: '1500000'
2017-07-29 12:48:23,973 (14a4) :  INFO (logkit:16) - -------------------------------------------------------------------------------------------------------------------------------------------------------------
2017-07-29 12:48:24,388 (14a4) :  CRITICAL (core:574) - Exception serializing TV_Show with guid 'com.plexapp.agents.hama://tvdb4-81797?lang=en' (most recent call last):
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-8fa494d15\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\modelling\model.py", line 190, in _write
    self._serialize(os.path.join(self._storage_path, subdir))
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-8fa494d15\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\modelling\model.py", line 220, in _serialize
    attr_el = attr._serialize(os.path.join(path, name))
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-8fa494d15\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\modelling\attributes.py", line 329, in _serialize
    shutil.rmtree(path)
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-8fa494d15\Framework.bundle\Contents\Resources\Versions\2\Python\subsystem\ospathfix.py", line 99, in shutil_rmtree
    return shutil._rmtree(longpathify(uni(path)), ignore_errors, onerror)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\shutil.py", line 247, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-8fa494d15\Framework.bundle\Contents\Resources\Versions\2\Python\subsystem\ospathfix.py", line 99, in shutil_rmtree
    return shutil._rmtree(longpathify(uni(path)), ignore_errors, onerror)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\shutil.py", line 247, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-8fa494d15\Framework.bundle\Contents\Resources\Versions\2\Python\subsystem\ospathfix.py", line 99, in shutil_rmtree
    return shutil._rmtree(longpathify(uni(path)), ignore_errors, onerror)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\shutil.py", line 247, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-8fa494d15\Framework.bundle\Contents\Resources\Versions\2\Python\subsystem\ospathfix.py", line 99, in shutil_rmtree
    return shutil._rmtree(longpathify(uni(path)), ignore_errors, onerror)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\shutil.py", line 256, in rmtree
    onerror(os.rmdir, path, sys.exc_info())
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\shutil.py", line 254, in rmtree
    os.rmdir(path)
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-8fa494d15\Framework.bundle\Contents\Resources\Versions\2\Python\subsystem\ospathfix.py", line 170, in os_rmdir
    return os._rmdir(longpathify(uni(path)))
WindowsError: [Error 145] The directory is not empty: u'\\\\?\\C:\\Users\\RAFTEL3\\AppData\\Local\\Plex Media Server\\Metadata\\TV Shows\\7\\de80d634d086714ab76d52c860b99df55eda062.bundle\\Contents\\com.plexapp.agents.hama\\seasons\\14\\episodes\\515'
ZeroQI commented 7 years ago

@sven-7 : the second error is plex error, i do not control this path trough the agent and my code doesn't trow the error the framework does... the first error seen popup but could not fix, also thrown by the framework so can't do much apart not using unicode dict keys... Do the Plex cleaning dance to clean the meta database and try again...

sven-7 commented 7 years ago

Yes. Seems like a Plex dance worked. Thanks.