ZeroQI / Hama.bundle

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

TVDB - Not all posters downloading #215

Closed sven-7 closed 6 years ago

sven-7 commented 6 years ago

I noticed a poster that's been in TVDB for a while has not made it into my library yet.

screen shot 2018-06-14 at 4 03 40 pm screen shot 2018-06-14 at 4 03 36 pm

Logs: Golden Kamuy.zip

ZeroQI commented 6 years ago

2 posters downloaded and added from TheTVDB according logs.

common.LoadFile() - file cached - CacheTime: 'Mon Jun 11 00:24:29 2018', Limit: 'Thu Jul  5 16:33:05 2018', url: 'https://api.thetvdb.com/series/338455/images', Filename: 'TheTVDB/json/338455\images.json' file_valid: 'True'
common.LoadFile() - file cached - CacheTime: 'Mon Jun 11 00:24:30 2018', Limit: 'Thu Jul  5 16:33:05 2018', url: 'https://api.thetvdb.com/series/338455/images/query?keyType=fanart', Filename: 'TheTVDB/json/338455\images_fanart.json' file_valid: 'True'
common.LoadFile() - file cached - CacheTime: 'Mon Jun 11 00:24:31 2018', Limit: 'Thu Jul  5 16:33:05 2018', url: 'https://api.thetvdb.com/series/338455/images/query?keyType=poster', Filename: 'TheTVDB/json/338455\images_poster.json' file_valid: 'True'
Posters : 2/2, Season posters: 0/0, Art: 1/1

Here they are added [=] posters ( 2) Sources: tvdb4, (TheTVDB), TheMovieDb, FanartTV, AniDB Inside: '['TheTVDB', 'AniDB', 'TheMovieDb']' Value: '{u'https://thetvdb.plexapp.com/banners/posters/338455-2.jpg': (u'TheTVDB/posters/338455-2.jpg', 3, None), u'https://thetvdb.plexapp.com/banners/posters/338455-3.jpg': (u'TheTVDB/posters/338455-3.jpg', 1, None)}'

go in agent data folder and open: TheTVDB/json/338455\images_poster.json Poster json contain 2 posters

{"data":[
{"id":1270269,"keyType":"poster","subKey":"","fileName":"posters/338455-3.jpg","resolution":"680x1000","ratingsInfo":{"average":0,"count":0},"thumbnail":""},
{"id":1277466,"keyType":"poster","subKey":"","fileName":"posters/338455-2.jpg","resolution":"680x1000","ratingsInfo":{"average":0,"count":0},"thumbnail":""}
]}

Could be:

language_series : ['en'], language_episodes: ['en']...

sven-7 commented 6 years ago

I bet it's a language issue. Let me update my preferences... I'll report back.

ZeroQI commented 6 years ago

you need to edit your library language to japanese to test Suggestion welcome, i could do a language selection for posters for example...

sven-7 commented 6 years ago

I think the language selection for posters is a great suggestion. I think there are probably a good amount of posters that can be added.

ZeroQI commented 6 years ago

The more queries you do the slower though... Just for Posters then

sven-7 commented 6 years ago

Would it just be for TVDB or do other metadata sources have posters being filtered?

ZeroQI commented 6 years ago

TheTVDB mainly, as it categorize the language of the title in the poster so you don't have Spanish, Arabic, etc unless requested... AniDB has a single text-less Poster.language for poster is a good improvement.

sven-7 commented 6 years ago

I can see having the option for Japanese posters as well being very nice, because sometimes it takes a while before an English poster is made. This could be a really good improvement.

ZeroQI commented 6 years ago

Surprise ! Hint: set to "en, ja" in the agent settings and tell me if it behaves as expected...

sven-7 commented 6 years ago

Still getting the same four posters. Possibly a caching issue? I made a new library for this series.

=== Update ==================================================================================================================================================
id: anidb-13337, title: Golden Kamuy, lang: en, force: True, movie: False
-------------------------------------------------------------------------------------------------------------------------------------------------------------
AnimeLists.GetMetadata() - tvdb_numbering: False
[+] AniDBid: 13337, TVDBid: 338455, defaulttvdbseason:  1, offset:   0, name: Golden Kamuy
             -----          ------
             13337          338455
mappingList: {'defaulttvdbseason': '1', 'name': 'Golden Kamuy', 'episodeoffset': '0'}
-------------------------------------------------------------------------------------------------------------------------------------------------------------
AniDB.GetMetadata() - AniDBid: 13337, AniDBids list: ['13337']
[+] 13337: []
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
AniDBid: 13337, url: http://api.anidb.net:9001/httpapi?request=anime&client=hama&clientver=1&protover=1&aid=13337
common.LoadFile() - file cached - CacheTime: 'Mon Jun 11 00:24:14 2018', Limit: 'Fri Jun 22 00:18:59 2018', url: 'http://api.anidb.net:9001/httpapi?request=anime&client=hama&clientver=1&protover=1&aid=13337', Filename: 'AniDB\xml\13337.xml' file_valid: 'True'
'title': Golden Kamuy, original_title: Golden Kamuy
language_rank: 0
'originally_available_at': '2018-04-09'
'summary' empty: 'False'
'rating': '6.73'
'genre' (7/19 above 400 weight): ['Past', 'Earth', 'Historical', 'Japan', 'Hokkaido', 'Bakumatsu - meiji period', 'Asia']
'collection' AniDBid is not part of any collection, related_anime_list: '{'14085': (0, '')}'
Roles (creators tag): {'producers': ['Takagi Noboru'], 'directors': ['Nanba Hitoshi'], 'writers': ['Noda Satoru']}
[?] numbering: s1e  4 => s1e  4, language_rank: 0, title: "Grim Reaper"
[?] numbering: s1e  3 => s1e  3, language_rank: 0, title: "Kamuy Mosir"
[?] numbering: s1e  2 => s1e  2, language_rank: 0, title: "Nopperabo"
[?] numbering: s1e  1 => s1e  1, language_rank: 0, title: "Wenkamuy"
[?] numbering: s1e  8 => s1e  8, language_rank: 0, title: "Eyes of a Murderer"
[?] numbering: s1e  7 => s1e  7, language_rank: 0, title: "Complication"
[?] numbering: s1e  6 => s1e  6, language_rank: 0, title: "Hunter's Soul"
[?] numbering: s1e  5 => s1e  5, language_rank: 0, title: "Race"
[?] numbering: s1e 10 => s1e 10, language_rank: 0, title: "Episode 10"
[?] numbering: s1e  9 => s1e  9, language_rank: 0, title: "Gleaming"
Season: 0 Episodes: ['101', '151', '201'] not on disk
Season: 1 Episodes: ['11', '12'] not on disk
Duration: 250, numEpisodes: 10, average duration: 25
ANNid: '20206', MALid: '36028', xml loaded: 'True'
-------------------------------------------------------------------------------------------------------------------------------------------------------------
TheTVDB.GetMetadata() - TVDBid: '338455', IMDbid: '', language_series : ['en', '', 'ja'], language_episodes: ['en', '', 'ja']
Requesting 'https://api.thetvdb.com/series/338455'
Fetching 'https://api.thetvdb.com/series/338455' from the HTTP cache
common.SaveFile() - CachePath: 'C:\Users\RAFTEL3\AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.agents.hama\DataItems', file: 'TheTVDB/json/338455\series.json'
Requesting 'https://api.thetvdb.com/series/338455/actors'
Fetching 'https://api.thetvdb.com/series/338455/actors' from the HTTP cache
common.SaveFile() - CachePath: 'C:\Users\RAFTEL3\AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.agents.hama\DataItems', file: 'TheTVDB/json/338455\actors.json'
Requesting 'https://api.thetvdb.com/series/338455/episodes?page=1'
Fetching 'https://api.thetvdb.com/series/338455/episodes?page=1' from the HTTP cache
common.SaveFile() - CachePath: 'C:\Users\RAFTEL3\AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.agents.hama\DataItems', file: 'TheTVDB/json/338455\episodes_page1_en.json'
[1] rank: 0, language:   en, title: Wenkamuy
Requesting 'https://api.thetvdb.com/episodes/6593128'
Fetching 'https://api.thetvdb.com/episodes/6593128' from the HTTP cache
common.SaveFile() - CachePath: 'C:\Users\RAFTEL3\AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.agents.hama\DataItems', file: 'TheTVDB/json/338455\episode_6593128__ja.json'
[?] numbering: s1e1 => s1e  1 language_rank: 0, title: "Wenkamuy"
[1] rank: 0, language:   en, title: Nopperabo
Requesting 'https://api.thetvdb.com/episodes/6614951'
Fetching 'https://api.thetvdb.com/episodes/6614951' from the HTTP cache
common.SaveFile() - CachePath: 'C:\Users\RAFTEL3\AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.agents.hama\DataItems', file: 'TheTVDB/json/338455\episode_6614951__ja.json'
[?] numbering: s1e2 => s1e  2 language_rank: 0, title: "Nopperabo"
[1] rank: 0, language:   en, title: Kamuy Mosir
Requesting 'https://api.thetvdb.com/episodes/6614952'
Fetching 'https://api.thetvdb.com/episodes/6614952' from the HTTP cache
common.SaveFile() - CachePath: 'C:\Users\RAFTEL3\AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.agents.hama\DataItems', file: 'TheTVDB/json/338455\episode_6614952__ja.json'
[?] numbering: s1e3 => s1e  3 language_rank: 0, title: "Kamuy Mosir"
[1] rank: 0, language:   en, title: Grim Reaper
Requesting 'https://api.thetvdb.com/episodes/6614953'
Fetching 'https://api.thetvdb.com/episodes/6614953' from the HTTP cache
common.SaveFile() - CachePath: 'C:\Users\RAFTEL3\AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.agents.hama\DataItems', file: 'TheTVDB/json/338455\episode_6614953__ja.json'
[?] numbering: s1e4 => s1e  4 language_rank: 0, title: "Grim Reaper"
[1] rank: 0, language:   en, title: Race
Requesting 'https://api.thetvdb.com/episodes/6614954'
Fetching 'https://api.thetvdb.com/episodes/6614954' from the HTTP cache
common.SaveFile() - CachePath: 'C:\Users\RAFTEL3\AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.agents.hama\DataItems', file: 'TheTVDB/json/338455\episode_6614954__ja.json'
[?] numbering: s1e5 => s1e  5 language_rank: 0, title: "Race"
[1] rank: 0, language:   en, title: Hunter's Soul
Requesting 'https://api.thetvdb.com/episodes/6614955'
Fetching 'https://api.thetvdb.com/episodes/6614955' from the HTTP cache
common.SaveFile() - CachePath: 'C:\Users\RAFTEL3\AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.agents.hama\DataItems', file: 'TheTVDB/json/338455\episode_6614955__ja.json'
[?] numbering: s1e6 => s1e  6 language_rank: 0, title: "Hunter's Soul"
[1] rank: 0, language:   en, title: Complication
Requesting 'https://api.thetvdb.com/episodes/6614956'
Fetching 'https://api.thetvdb.com/episodes/6614956' from the HTTP cache
common.SaveFile() - CachePath: 'C:\Users\RAFTEL3\AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.agents.hama\DataItems', file: 'TheTVDB/json/338455\episode_6614956__ja.json'
[?] numbering: s1e7 => s1e  7 language_rank: 0, title: "Complication"
[1] rank: 0, language:   en, title: Eyes of a Murderer
Requesting 'https://api.thetvdb.com/episodes/6614957'
Fetching 'https://api.thetvdb.com/episodes/6614957' from the HTTP cache
common.SaveFile() - CachePath: 'C:\Users\RAFTEL3\AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.agents.hama\DataItems', file: 'TheTVDB/json/338455\episode_6614957__ja.json'
[?] numbering: s1e8 => s1e  8 language_rank: 0, title: "Eyes of a Murderer"
[1] rank: 0, language:   en, title: Gleaming
Requesting 'https://api.thetvdb.com/episodes/6614958'
Fetching 'https://api.thetvdb.com/episodes/6614958' from the HTTP cache
common.SaveFile() - CachePath: 'C:\Users\RAFTEL3\AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.agents.hama\DataItems', file: 'TheTVDB/json/338455\episode_6614958__ja.json'
[?] numbering: s1e9 => s1e  9 language_rank: 0, title: "Gleaming"
[1] rank: 0, language:   en, title: Fellow Traveler
Requesting 'https://api.thetvdb.com/episodes/6614959'
Fetching 'https://api.thetvdb.com/episodes/6614959' from the HTTP cache
common.SaveFile() - CachePath: 'C:\Users\RAFTEL3\AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.agents.hama\DataItems', file: 'TheTVDB/json/338455\episode_6614959__ja.json'
[?] numbering: s1e10 => s1e 10 language_rank: 0, title: "Fellow Traveler"
Requesting 'https://api.thetvdb.com/series/338455/images'
Fetching 'https://api.thetvdb.com/series/338455/images' from the HTTP cache
common.SaveFile() - CachePath: 'C:\Users\RAFTEL3\AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.agents.hama\DataItems', file: 'TheTVDB/json/338455\images.json'
Requesting 'https://api.thetvdb.com/series/338455/images/query?keyType=fanart'
Fetching 'https://api.thetvdb.com/series/338455/images/query?keyType=fanart' from the HTTP cache
common.SaveFile() - CachePath: 'C:\Users\RAFTEL3\AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.agents.hama\DataItems', file: 'TheTVDB/json/338455\images_fanart.json'
Requesting 'https://api.thetvdb.com/series/338455/images/query?keyType=poster'
Fetching 'https://api.thetvdb.com/series/338455/images/query?keyType=poster' from the HTTP cache
common.SaveFile() - CachePath: 'C:\Users\RAFTEL3\AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.agents.hama\DataItems', file: 'TheTVDB/json/338455\images_poster.json'
Posters : 2/2, Season posters: 0/0, Art: 1/1
common.LoadFile() - file cached - CacheTime: 'Sat Jun 16 00:19:05 2018', Limit: 'Tue Jul 10 00:19:06 2018', url: 'https://api.thetvdb.com/series/338455/images', Filename: 'TheTVDB/json/338455\images.json' file_valid: 'True'
common.LoadFile() - file cached - CacheTime: 'Sat Jun 16 00:19:05 2018', Limit: 'Tue Jul 10 00:19:06 2018', url: 'https://api.thetvdb.com/series/338455/images/query?keyType=fanart', Filename: 'TheTVDB/json/338455\images_fanart.json' file_valid: 'True'
common.LoadFile() - file cached - CacheTime: 'Sat Jun 16 00:19:06 2018', Limit: 'Tue Jul 10 00:19:06 2018', url: 'https://api.thetvdb.com/series/338455/images/query?keyType=poster', Filename: 'TheTVDB/json/338455\images_poster.json' file_valid: 'True'
Posters : 2/2, Season posters: 0/0, Art: 1/1
url: 'https://api.thetvdb.com/series/338455', IMDbid: , Present episodes: 10, Missing: []
-------------------------------------------------------------------------------------------------------------------------------------------------------------
TheMovieDb.GetMetadata() - TVDBid: 338455, TMDbid: , IMDbid: 
common.LoadFile() - file cached - CacheTime: 'Sat Jun 16 00:09:44 2018', Limit: 'Sat Jun 23 00:19:06 2018', url: 'http://api.TheMovieDb.org/3/find/338455?api_key=7f4a0bd0bd3315bb832e17feda70b5cd&external_source=tvdb_id&append_to_response=releases,credits,trailers,external_ids&language=en', Filename: 'TheMovieDb\json\TVDB-338455.json' file_valid: 'True'
common.LoadFile() - file cached - CacheTime: 'Wed Jun 13 17:00:10 2018', Limit: 'Mon Jul 16 00:19:06 2018', url: 'http://api.tmdb.org/3/configuration?api_key=7f4a0bd0bd3315bb832e17feda70b5cd', Filename: 'TheMovieDb\TMDB_CONFIG_URL.json' file_valid: 'True'
TheMovieDb.GetMetadata() - TMDbid: '', TSDbid: '76757', IMDbid: ''
-------------------------------------------------------------------------------------------------------------------------------------------------------------
FanartTv.GetMetadata() - movie:'False', TVDBid: '338455', tmdbid: '', imdbid:'', season: '0', num: '100'
Requesting 'http://webservice.fanart.tv/v3/tv/338455?api_key=cfa9dc054d221b8d107f8411cd20b13f'
Error opening URL 'http://webservice.fanart.tv/v3/tv/338455?api_key=cfa9dc054d221b8d107f8411cd20b13f'
common.LoadFile() - issue loading url: 'http://webservice.fanart.tv/v3/tv/338455?api_key=cfa9dc054d221b8d107f8411cd20b13f', filename: '338455.json', Exception: 'HTTP Error 404: Not Found'
LoadFile() - not xml nor json: None                                                                            
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Plex.GetMetadata() - Prefs['themes']: 'Plex, TVDBid: '338455', result code: 'True', url: 'http://tvthemes.plexapp.com/338455.mp3'
-------------------------------------------------------------------------------------------------------------------------------------------------------------
TVTunes.GetMetadata() - 'themes' - title: 'Golden Kamuy', title2: '', Prefs['themes']: 'Plex'
-------------------------------------------------------------------------------------------------------------------------------------------------------------
MyAnimeList.GetMetadata() - MALid: '36028'
common.LoadFile() - file cached - CacheTime: 'Sun Jun 10 18:09:34 2018', Limit: 'Sat Jun 23 00:19:06 2018', url: 'http://fribbtastic-api.net/fribbtastic-api/services/anime?id=36028', Filename: 'MyAnimeList\xml\36028.xml' file_valid: 'True'
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Local.GetMetadata()
[!] Library access denied
[!] ASS root scanner file present: "C:\Users\RAFTEL3\AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.agents.hama\DataItems\_Logs\_root_.scanner.log"
[!] root not found: "H:\Test Library\Golden Kamuy"
[!] root not found: "H:\Test Library"
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Update() - AniDBid: '13337', TVDBid: '338455', TMDbid: '', IMDbid: '', ANNid:'20206', MALid: '36028'
-------------------------------------------------------------------------------------------------------------------------------------------------------------
common.write_logs()
anime-list AniDBid missing : []
anime-list studio logos    : []
AniDB summaries missing    : []
Plex themes missing        : []
TVDB posters missing       : []
Missing Specials           : []
Missing Episodes           : []
AniDB posters missing      : []
anime-list TVDBid missing  : []
TVDB season posters missing: [u"TVDBid: <a href='http://thetvdb.com/?tab=series&id=338455' target='_blank'>338455</a> | Title: 'Golden Kamuy'", u"TVDBid: <a href='http://thetvdb.com/?tab=series&id=338455' target='_blank'>338455</a> | Title: 'Golden Kamuy'"]
Missing Special Summaries  : []
Missing Episode Summaries  : [u"TVDBid: <a href='http://thetvdb.com/?tab=series&id=338455' target='_blank'>338455</a> | Title: 'Golden Kamuy' | Missing Episode Summaries: ['s1e7', 's1e8', 's1e9', 's1e10', 's1e11', 's1e12']"]
-------------------------------------------------------------------------------------------------------------------------------------------------------------
common.UpdateMeta() - fields in Metadata Sources per movie/serie, season, episodes
- MyAnimeList      : genres                  (  6) | originally_available_at (  1) | summary                 (  1) | score                   (  1) | title                   (  1)
- TheTVDB          : status                  (  1) | rating                  (  1) | genres                  (  3) | art                     (  1) | roles                   ( 11) | originally_available_at (  1) | IMDbid                  (  1) | content_rating          (  1) | summary                 (  1) | language_rank           (  1) | studio                  (  1) | posters                 (  2) | seasons                 (  1) | duration                (  1) | title                   (  1) | banners                 (  1)
  - Episodes  ( 10): rating                  ( 10) | originally_available_at ( 10) | content_rating          ( 10) | summary                 (  6) | absolute_index          ( 10) | directors               ( 10) | writers                 ( 10) | thumbs                  ( 10) | duration                ( 10) | title                   ( 10)
- AniDB            : status                  (  1) | rating                  (  1) | genres                  (  7) | roles                   ( 14) | originally_available_at (  1) | movie                   (  1) | title                   (  1) | original_title          (  1) | summary                 (  1) | language_rank           (  1) | studio                  (  1) | posters                 (  1) | duration                (  1) | seasons                 (  1)
  - Seasons   (  1): summary                 (  1)
  - Episodes  ( 10): duration                ( 10) | rating                  (  9) | title                   ( 10) | summary                 (  5) | originally_available_at ( 10)
- Plex             : themes                  (  1)
- TheMovieDb       : rating                  (  1) | posters                 (  1) | originally_available_at (  1) | art                     (  1) | summary                 (  1)
-------------------------------------------------------------------------------------------------------------------------------------------------------------
common.UpdateMeta() - Metadata Fields (items #), type, source provider, value
[=] title                          Sources: (TheTVDB), AniDB                                              Inside: '['MyAnimeList', 'TheTVDB', 'AniDB']'  Value: 'Golden Kamuy'
[=] title_sort                     Sources: (TheTVDB), AniDB                                              Inside: '['TheTVDB']'  Value: 'Golden Kamuy'
[=] originally_available_at        Sources: (TheTVDB), AniDB                                              Inside: '['MyAnimeList', 'TheTVDB', 'AniDB', 'TheMovieDb']'  Value: '2018-04-09'
[=] duration                       Sources: (TheTVDB), AniDB, MyAnimeList, TheMovieDb, OMDb               Inside: '['TheTVDB', 'AniDB']'  Value: '1500000'
[=] rating                         Sources: (AniDB), TheTVDB, MyAnimeList, TheMovieDb, OMDb               Inside: '['AniDB', 'TheMovieDb']'  Value: '6.73'
[=] genres                   ( 7)  Sources: (AniDB), TheTVDB, MyAnimeList, TheMovieDb, OMDb               Inside: '['MyAnimeList', 'TheTVDB', 'AniDB']'  Value: '['Past', 'Earth', 'Historical', 'Japan', 'Hokkaido', 'Bakumatsu - meiji period', 'Asia']'
[=] summary                        Sources: (TheTVDB),AniDB                                               Inside: '['MyAnimeList', 'TheTVDB', 'AniDB', 'TheMovieDb']'  Value: 'In Hokkaido, the far northern lands of Japan, Sugimoto survived the Russo-Japane..'
[=] content_rating                 Sources: AniDB, (TheTVDB)                                              Inside: '['TheTVDB']'  Value: 'TV-MA'
[=] studio                         Sources: AnimeLists, (AniDB), TheTVDB, TheMovieDb                      Inside: '['TheTVDB', 'AniDB']'  Value: 'Geno Studio'
[=] posters                  ( 2)  Sources: tvdb4, (TheTVDB), TheMovieDb, FanartTV, AniDB                 Inside: '['TheTVDB', 'AniDB', 'TheMovieDb']'  Value: '{u'https://thetvdb.plexapp.com/banners/posters/338455-2.jpg': (u'TheTVDB/posters/338455-2.jpg', 23, None), u'https://thetvdb.plexapp.com/banners/posters/338455-3.jpg': (u'TheTVDB/posters/338455-3.jpg', 21, None)}'
[=] posters                  ( 1)  Sources: tvdb4, TheTVDB, (TheMovieDb), FanartTV, AniDB                 Inside: '['TheTVDB', 'AniDB', 'TheMovieDb']'  Value: '{u'http://image.tmdb.org/t/p/original/eeA3EYLNM10an6L6Qizv2VrcgII.jpg': (u'TheMovieDb\\poster\\eeA3EYLNM10an6L6Qizv2VrcgII.jpg', 90, None)}'
[=] posters                  ( 1)  Sources: tvdb4, TheTVDB, TheMovieDb, FanartTV, (AniDB)                 Inside: '['TheTVDB', 'AniDB', 'TheMovieDb']'  Value: '{'http://img7.anidb.net/pics/anime/214234.jpg': (u'AniDB\\poster\\214234.jpg', 99, 'http://img7.anidb.net/pics/anime/thumbs/150/214234.jpg-thumb.jpg')}'
[=] banners                  ( 1)  Sources: (TheTVDB)                                                     Inside: '['TheTVDB']'  Value: '{u'https://thetvdb.plexapp.com/banners/graphical/338455-g.jpg': (u'TheTVDB\\banner\\graphical/338455-g.jpg', 1, None)}'
[=] art                      ( 1)  Sources: (TheTVDB), TheMovieDb, FanartTV, AniDB                        Inside: '['TheTVDB', 'TheMovieDb']'  Value: '{u'https://thetvdb.plexapp.com/banners/fanart/original/338455-2.jpg': (u'TheTVDB/fanart/original/338455-2.jpg', 22, None)}'
[=] art                      ( 1)  Sources: TheTVDB, (TheMovieDb), FanartTV, AniDB                        Inside: '['TheTVDB', 'TheMovieDb']'  Value: '{u'http://image.tmdb.org/t/p/original/6qwbib8digp121qA9xj3STeq2KC.jpg': (u'TheMovieDb\\artwork\\6qwbib8digp121qA9xj3STeq2KC.jpg', 90, u'http://image.tmdb.org/t/p/w300/6qwbib8digp121qA9xj3STeq2KC.jpg')}'
[=] themes                   ( 1)  Sources: (Plex)                                                        Inside: '['Plex']'  Value: '{'http://tvthemes.plexapp.com/338455.mp3': ('Plex/338455.mp3', 2, None)}'
[=] roles                    (14)  Sources: (AniDB), TheTVDB                                              Inside: '['TheTVDB', 'AniDB']'  Value: '[{'photo': 'http://img7.anidb.net/pics/anime/91892.jpg', 'role': 'Asirpa', 'name': 'Shiraishi Haruka'}, {'photo': 'http://img7.anidb.net/pics/anime/214237.jpg', 'role': 'Sugimoto Saichi', 'name': 'Kobayashi Chikahiro'}, {'photo': 'http://img7.anidb.net/pics/anime/65381.jpg', 'role': 'Shiraishi Yoshitake', 'name': 'Itou Kentarou'}, {'photo': 'http://img7.anidb.net/pics/anime/17045.jpg', 'role': 'Hijikata Toshizou', 'name': 'Nakata Jouji'}, {'photo': 'http://img7.anidb.net/pics/anime/170729.jpg', 'role': 'Ogata Hyakunosuke', 'name': 'Tsuda Kenjirou'}, {'photo': 'http://img7.anidb.net/pics/anime/18094.jpg', 'role': 'Ushiyama Tatsuuma', 'name': 'Nomura Kenji'}, {'photo': 'http://img7.anidb.net/pics/anime/84359.jpg', 'role': 'Tanigaki Genjirou', 'name': 'Hosoya Yoshimasa'}, {'photo': 'http://img7.anidb.net/pics/anime/17126.jpg', 'role': 'Tsurumi-chuui', 'name': 'Ootsuka Houchuu'}, {'photo': 'http://img7.anidb.net/pics/anime/24725.jpg', 'role': 'Nagakura Shinpachi', 'name': 'Sugou Takayuki'}, {'photo': 'http://img7.anidb.net/pics/anime/17117.jpg', 'role': 'Nihei Tetsuzou', 'name': 'Ootsuka Akio'}, {'photo': 'http://img7.anidb.net/pics/anime/44970.jpg', 'role': 'Nikaidou Youhei', 'name': 'Sugita Tomokazu'}, {'photo': 'http://img7.anidb.net/pics/anime/44970.jpg', 'role': 'Nikaidou Kouhei', 'name': 'Sugita Tomokazu'}, {'photo': 'http://img7.anidb.net/pics/anime/17230.jpg', 'role': 'Henmi Kazuo', 'name': 'Seki Toshihiko'}, {'photo': 'http://img7.anidb.net/pics/anime/171529.jpg', 'role': 'Kiroranke', 'name': 'Terasoma Masaki'}]'
[=] original_title                 Sources: TheTVDB, (AniDB)                                              Inside: '['AniDB']'  Value: 'Golden Kamuy'
metadata.seasons[ 1]--------------------------------------------------------------------------------------------------------------------------------------
[=] summary                        Sources: TheTVDB,(AniDB)                                               Inside: '[]'  Value: '* Based on a manga series written and illustrated by Noda Satoru. In the early t..'
metadata.seasons[ 1].episodes[  1]
[?] rank: 0, source_title: TheTVDB, title: "Wenkamuy"
[=] title                          Sources: (TheTVDB), AniDB                                              Inside: '['TheTVDB', 'AniDB']'  Value: 'Wenkamuy'
[=] summary                        Sources: (TheTVDB),AniDB                                               Inside: '['TheTVDB', 'AniDB']'  Value: 'Sugimoto Saichi, called "Immortal Saichi" for his incredible powers of survival,..'
[=] originally_available_at        Sources: (TheTVDB), AniDB                                              Inside: '['TheTVDB', 'AniDB']'  Value: '2018-04-09'
[=] writers                  ( 1)  Sources: AniDB,(TheTVDB)                                               Inside: '['TheTVDB']'  Value: '[u'Noboru Takagi']'
[=] directors                ( 1)  Sources: (TheTVDB),AniDB                                               Inside: '['TheTVDB']'  Value: '[u'Hitoshi Nanba']'
[=] rating                         Sources: (AniDB), TheTVDB, MyAnimeList, TheMovieDb, OMDb               Inside: '['AniDB']'  Value: '5.25'
[=] thumbs                   ( 1)  Sources: (TheTVDB)                                                     Inside: '['TheTVDB']'  Value: '{'https://thetvdb.plexapp.com/banners/episodes/338455/6593128.jpg': ('TheTVDB/episodes/6593128.jpg', 1, None)}'
[=] duration                       Sources: (TheTVDB), AniDB, MyAnimeList, TheMovieDb, OMDb               Inside: '['TheTVDB', 'AniDB']'  Value: '25'
[=] content_rating                 Sources: AniDB, (TheTVDB)                                              Inside: '['TheTVDB']'  Value: 'TV-MA'
metadata.seasons[ 1].episodes[  2]
[?] rank: 0, source_title: TheTVDB, title: "Nopperabo"
[=] title                          Sources: (TheTVDB), AniDB                                              Inside: '['TheTVDB', 'AniDB']'  Value: 'Nopperabo'
[=] summary                        Sources: (TheTVDB),AniDB                                               Inside: '['TheTVDB', 'AniDB']'  Value: 'Saichi and Asirpa head to Otaru, the largest town in the area, in seach of the t..'
[=] originally_available_at        Sources: (TheTVDB), AniDB                                              Inside: '['TheTVDB', 'AniDB']'  Value: '2018-04-16'
[=] writers                  ( 1)  Sources: AniDB,(TheTVDB)                                               Inside: '['TheTVDB']'  Value: '[u'Noboru Takagi']'
[=] directors                ( 1)  Sources: (TheTVDB),AniDB                                               Inside: '['TheTVDB']'  Value: '[u'Hitoshi Nanba']'
[=] rating                         Sources: (AniDB), TheTVDB, MyAnimeList, TheMovieDb, OMDb               Inside: '['AniDB']'  Value: '6.21'
[=] thumbs                   ( 1)  Sources: (TheTVDB)                                                     Inside: '['TheTVDB']'  Value: '{'https://thetvdb.plexapp.com/banners/episodes/338455/6614951.jpg': ('TheTVDB/episodes/6614951.jpg', 1, None)}'
[=] duration                       Sources: (TheTVDB), AniDB, MyAnimeList, TheMovieDb, OMDb               Inside: '['TheTVDB', 'AniDB']'  Value: '25'
[=] content_rating                 Sources: AniDB, (TheTVDB)                                              Inside: '['TheTVDB']'  Value: 'TV-MA'
metadata.seasons[ 1].episodes[  3]
[?] rank: 0, source_title: TheTVDB, title: "Kamuy Mosir"
[=] title                          Sources: (TheTVDB), AniDB                                              Inside: '['TheTVDB', 'AniDB']'  Value: 'Kamuy Mosir'
[=] summary                        Sources: (TheTVDB),AniDB                                               Inside: '['TheTVDB', 'AniDB']'  Value: 'While hunting for food, Sugimoto and Asirpa are seen and pursued by four 7th Div..'
[=] originally_available_at        Sources: (TheTVDB), AniDB                                              Inside: '['TheTVDB', 'AniDB']'  Value: '2018-04-23'
[=] writers                  ( 1)  Sources: AniDB,(TheTVDB)                                               Inside: '['TheTVDB']'  Value: '[u'Noboru Takagi']'
[=] directors                ( 1)  Sources: (TheTVDB),AniDB                                               Inside: '['TheTVDB']'  Value: '[u'Hitoshi Nanba']'
[=] rating                         Sources: (AniDB), TheTVDB, MyAnimeList, TheMovieDb, OMDb               Inside: '['AniDB']'  Value: '3.63'
[=] thumbs                   ( 1)  Sources: (TheTVDB)                                                     Inside: '['TheTVDB']'  Value: '{'https://thetvdb.plexapp.com/banners/episodes/338455/6614952.jpg': ('TheTVDB/episodes/6614952.jpg', 1, None)}'
[=] duration                       Sources: (TheTVDB), AniDB, MyAnimeList, TheMovieDb, OMDb               Inside: '['TheTVDB', 'AniDB']'  Value: '25'
[=] content_rating                 Sources: AniDB, (TheTVDB)                                              Inside: '['TheTVDB']'  Value: 'TV-MA'
metadata.seasons[ 1].episodes[  4]
[?] rank: 0, source_title: TheTVDB, title: "Grim Reaper"
[=] title                          Sources: (TheTVDB), AniDB                                              Inside: '['TheTVDB', 'AniDB']'  Value: 'Grim Reaper'
[=] summary                        Sources: (TheTVDB),AniDB                                               Inside: '['TheTVDB', 'AniDB']'  Value: 'While fishing for sculpin with Asirpa, Sugimoto meets her uncle who tells him th..'
[=] originally_available_at        Sources: (TheTVDB), AniDB                                              Inside: '['TheTVDB', 'AniDB']'  Value: '2018-04-30'
[=] writers                  ( 1)  Sources: AniDB,(TheTVDB)                                               Inside: '['TheTVDB']'  Value: '[u'Noboru Takagi']'
[=] directors                ( 1)  Sources: (TheTVDB),AniDB                                               Inside: '['TheTVDB']'  Value: '[u'Hitoshi Nanba']'
[=] rating                         Sources: (AniDB), TheTVDB, MyAnimeList, TheMovieDb, OMDb               Inside: '['AniDB']'  Value: '4.18'
[=] thumbs                   ( 1)  Sources: (TheTVDB)                                                     Inside: '['TheTVDB']'  Value: '{'https://thetvdb.plexapp.com/banners/episodes/338455/6614953.jpg': ('TheTVDB/episodes/6614953.jpg', 1, None)}'
[=] duration                       Sources: (TheTVDB), AniDB, MyAnimeList, TheMovieDb, OMDb               Inside: '['TheTVDB', 'AniDB']'  Value: '25'
[=] content_rating                 Sources: AniDB, (TheTVDB)                                              Inside: '['TheTVDB']'  Value: 'TV-MA'
metadata.seasons[ 1].episodes[  5]
[?] rank: 0, source_title: TheTVDB, title: "Race"
[=] title                          Sources: (TheTVDB), AniDB                                              Inside: '['TheTVDB', 'AniDB']'  Value: 'Race'
[=] summary                        Sources: (TheTVDB),AniDB                                               Inside: '['TheTVDB', 'AniDB']'  Value: 'Shiraishi takes Asirpa to the 7th Division headquarters to rescue Sugimoto. Mean..'
[=] originally_available_at        Sources: (TheTVDB), AniDB                                              Inside: '['TheTVDB', 'AniDB']'  Value: '2018-05-07'
[=] writers                  ( 1)  Sources: AniDB,(TheTVDB)                                               Inside: '['TheTVDB']'  Value: '[u'Noboru Takagi']'
[=] directors                ( 1)  Sources: (TheTVDB),AniDB                                               Inside: '['TheTVDB']'  Value: '[u'Hitoshi Nanba']'
[=] rating                         Sources: (AniDB), TheTVDB, MyAnimeList, TheMovieDb, OMDb               Inside: '['AniDB']'  Value: '6.23'
[=] thumbs                   ( 1)  Sources: (TheTVDB)                                                     Inside: '['TheTVDB']'  Value: '{'https://thetvdb.plexapp.com/banners/episodes/338455/6614954.jpg': ('TheTVDB/episodes/6614954.jpg', 1, None)}'
[=] duration                       Sources: (TheTVDB), AniDB, MyAnimeList, TheMovieDb, OMDb               Inside: '['TheTVDB', 'AniDB']'  Value: '25'
[=] content_rating                 Sources: AniDB, (TheTVDB)                                              Inside: '['TheTVDB']'  Value: 'TV-MA'
metadata.seasons[ 1].episodes[  6]
[?] rank: 0, source_title: TheTVDB, title: "Hunter's Soul"
[=] title                          Sources: (TheTVDB), AniDB                                              Inside: '['TheTVDB', 'AniDB']'  Value: 'Hunter's Soul'
[=] summary                        Sources: (TheTVDB),AniDB                                               Inside: '['TheTVDB']'  Value: 'After killing a bear, Tetsuzō Nihei tells Tanagaki that he wants to hunt the las..'
[=] originally_available_at        Sources: (TheTVDB), AniDB                                              Inside: '['TheTVDB', 'AniDB']'  Value: '2018-05-14'
[=] writers                  ( 1)  Sources: AniDB,(TheTVDB)                                               Inside: '['TheTVDB']'  Value: '[u'Noboru Takagi']'
[=] directors                ( 1)  Sources: (TheTVDB),AniDB                                               Inside: '['TheTVDB']'  Value: '[u'Hitoshi Nanba']'
[=] rating                         Sources: (AniDB), TheTVDB, MyAnimeList, TheMovieDb, OMDb               Inside: '['AniDB']'  Value: '5.07'
[=] thumbs                   ( 1)  Sources: (TheTVDB)                                                     Inside: '['TheTVDB']'  Value: '{'https://thetvdb.plexapp.com/banners/episodes/338455/6614955.jpg': ('TheTVDB/episodes/6614955.jpg', 1, None)}'
[=] duration                       Sources: (TheTVDB), AniDB, MyAnimeList, TheMovieDb, OMDb               Inside: '['TheTVDB', 'AniDB']'  Value: '25'
[=] content_rating                 Sources: AniDB, (TheTVDB)                                              Inside: '['TheTVDB']'  Value: 'TV-MA'
metadata.seasons[ 1].episodes[  7]
[?] rank: 0, source_title: TheTVDB, title: "Complication"
[=] title                          Sources: (TheTVDB), AniDB                                              Inside: '['TheTVDB', 'AniDB']'  Value: 'Complication'
[=] originally_available_at        Sources: (TheTVDB), AniDB                                              Inside: '['TheTVDB', 'AniDB']'  Value: '2018-05-21'
[=] writers                  ( 1)  Sources: AniDB,(TheTVDB)                                               Inside: '['TheTVDB']'  Value: '[u'Noboru Takagi']'
[=] directors                ( 1)  Sources: (TheTVDB),AniDB                                               Inside: '['TheTVDB']'  Value: '[u'Hitoshi Nanba']'
[=] rating                         Sources: (AniDB), TheTVDB, MyAnimeList, TheMovieDb, OMDb               Inside: '['AniDB']'  Value: '5.70'
[=] thumbs                   ( 1)  Sources: (TheTVDB)                                                     Inside: '['TheTVDB']'  Value: '{'https://thetvdb.plexapp.com/banners/episodes/338455/6614956.jpg': ('TheTVDB/episodes/6614956.jpg', 1, None)}'
[=] duration                       Sources: (TheTVDB), AniDB, MyAnimeList, TheMovieDb, OMDb               Inside: '['TheTVDB', 'AniDB']'  Value: '25'
[=] content_rating                 Sources: AniDB, (TheTVDB)                                              Inside: '['TheTVDB']'  Value: 'TV-MA'
metadata.seasons[ 1].episodes[  8]
[?] rank: 0, source_title: TheTVDB, title: "Eyes of a Murderer"
[=] title                          Sources: (TheTVDB), AniDB                                              Inside: '['TheTVDB', 'AniDB']'  Value: 'Eyes of a Murderer'
[=] originally_available_at        Sources: (TheTVDB), AniDB                                              Inside: '['TheTVDB', 'AniDB']'  Value: '2018-05-28'
[=] writers                  ( 1)  Sources: AniDB,(TheTVDB)                                               Inside: '['TheTVDB']'  Value: '[u'Noboru Takagi']'
[=] directors                ( 1)  Sources: (TheTVDB),AniDB                                               Inside: '['TheTVDB']'  Value: '[u'Hitoshi Nanba']'
[=] rating                         Sources: (AniDB), TheTVDB, MyAnimeList, TheMovieDb, OMDb               Inside: '['AniDB']'  Value: '4.66'
[=] thumbs                   ( 1)  Sources: (TheTVDB)                                                     Inside: '['TheTVDB']'  Value: '{'https://thetvdb.plexapp.com/banners/episodes/338455/6614957.jpg': ('TheTVDB/episodes/6614957.jpg', 1, None)}'
[=] duration                       Sources: (TheTVDB), AniDB, MyAnimeList, TheMovieDb, OMDb               Inside: '['TheTVDB', 'AniDB']'  Value: '25'
[=] content_rating                 Sources: AniDB, (TheTVDB)                                              Inside: '['TheTVDB']'  Value: 'TV-MA'
metadata.seasons[ 1].episodes[  9]
[?] rank: 0, source_title: TheTVDB, title: "Gleaming"
[=] title                          Sources: (TheTVDB), AniDB                                              Inside: '['TheTVDB', 'AniDB']'  Value: 'Gleaming'
[=] originally_available_at        Sources: (TheTVDB), AniDB                                              Inside: '['TheTVDB', 'AniDB']'  Value: '2018-06-04'
[=] writers                  ( 1)  Sources: AniDB,(TheTVDB)                                               Inside: '['TheTVDB']'  Value: '[u'Noboru Takagi']'
[=] directors                ( 1)  Sources: (TheTVDB),AniDB                                               Inside: '['TheTVDB']'  Value: '[u'Hitoshi Nanba']'
[=] rating                         Sources: (AniDB), TheTVDB, MyAnimeList, TheMovieDb, OMDb               Inside: '['AniDB']'  Value: '5.48'
[=] thumbs                   ( 1)  Sources: (TheTVDB)                                                     Inside: '['TheTVDB']'  Value: '{'https://thetvdb.plexapp.com/banners/episodes/338455/6614958.jpg': ('TheTVDB/episodes/6614958.jpg', 1, None)}'
[=] duration                       Sources: (TheTVDB), AniDB, MyAnimeList, TheMovieDb, OMDb               Inside: '['TheTVDB', 'AniDB']'  Value: '25'
[=] content_rating                 Sources: AniDB, (TheTVDB)                                              Inside: '['TheTVDB']'  Value: 'TV-MA'
metadata.seasons[ 1].episodes[ 10]
[?] rank: 0, source_title: TheTVDB, title: "Fellow Traveler"
[=] title                          Sources: (TheTVDB), AniDB                                              Inside: '['TheTVDB', 'AniDB']'  Value: 'Fellow Traveler'
[=] originally_available_at        Sources: (TheTVDB), AniDB                                              Inside: '['TheTVDB', 'AniDB']'  Value: '2018-06-11'
[=] writers                  ( 1)  Sources: AniDB,(TheTVDB)                                               Inside: '['TheTVDB']'  Value: '[u'Noboru Takagi']'
[=] directors                ( 1)  Sources: (TheTVDB),AniDB                                               Inside: '['TheTVDB']'  Value: '[u'Hitoshi Nanba']'
[=] thumbs                   ( 1)  Sources: (TheTVDB)                                                     Inside: '['TheTVDB']'  Value: '{'https://thetvdb.plexapp.com/banners/episodes/338455/6614959.jpg': ('TheTVDB/episodes/6614959.jpg', 1, None)}'
[=] duration                       Sources: (TheTVDB), AniDB, MyAnimeList, TheMovieDb, OMDb               Inside: '['TheTVDB', 'AniDB']'  Value: '25'
[=] content_rating                 Sources: AniDB, (TheTVDB)                                              Inside: '['TheTVDB']'  Value: 'TV-MA'
-------------------------------------------------------------------------------------------------------------------------------------------------------------
ZeroQI commented 6 years ago

search a serie called 'clear-cache' and delete json file and won't be cached... have to save json with the language name, forgot that...

sven-7 commented 6 years ago

Didn't find anything called 'clear-cache'. I deleted the entire /DataItems folder tho... and the com.plexapp.agents.hama folder as well. Still nothing.

Kamuy.zip

ZeroQI commented 6 years ago

when you custom match, search a title call clear-cache it will show you a title match 0 saying it has been cleared and you just cancel. coded it to clear plex cache by calling plex clear cache function

Pushed a new version, old one cached without language name then second request used the file saved from first one...

Please check you haven't ticked 'get single image' in settings, and test new version pushed

sven-7 commented 6 years ago

Will try today. Do not believe I have ‘get single image’ checked. What is the function of that setting?

ZeroQI commented 6 years ago

It gets a single poster fanart season poster per series only to go quicker

sven-7 commented 6 years ago

Great. Thanks. Will get back to you shortly.

rcdailey commented 6 years ago

I think I'm having this issue, can someone confirm via these logs?

2018-06-17 23:16:20,444 - com.plexapp.agents.hama (3114) : INFO (logkit/Info:16) - OMDB - background, Poster - imdbid: 'tt0983213'
2018-06-17 23:16:20,444 - com.plexapp.agents.hama (3114) : INFO (logkit/Info:16) - imdbid: 'tt0983213', url: 'http://www.omdbapi.com/?i=tt0983213', filename: 'OMDB/tt0983213.jpg'
2018-06-17 23:16:20,461 - com.plexapp.agents.hama (3114) : DEBUG (networking/load:166) - Requesting 'http://www.omdbapi.com/?i=tt0983213'
2018-06-17 23:16:20,638 - com.plexapp.agents.hama (3114) : ERROR (networking/load:219) - Error opening URL 'http://www.omdbapi.com/?i=tt0983213'
2018-06-17 23:16:20,638 - com.plexapp.agents.hama (3114) : ERROR (logkit/Error:22) - Error fetching JSON url: 'http://www.omdbapi.com/?i=tt0983213', Exception: 'HTTP Error 401: Unauthorized'
2018-06-17 23:16:20,638 - com.plexapp.agents.hama (3114) : INFO (logkit/Info:16) - No poster to download - http://www.omdbapi.com/?i=tt0983213
2018-06-17 23:16:20,638 - com.plexapp.agents.hama (3114) : INFO (logkit/Info:16) - tFanartTV - background, Poster - tmdbid: ''
2018-06-17 23:16:20,638 - com.plexapp.agents.hama (3114) : INFO (logkit/Info:16) - Fetching from fanart.tv
2018-06-17 23:16:20,674 - com.plexapp.agents.hama (3114) : DEBUG (networking/load:161) - Fetching 'http://webservice.fanart.tv/v3/tv/82945?api_key=cfa9dc054d221b8d107f8411cd20b13f' from the HTTP cache
2018-06-17 23:16:20,709 - com.plexapp.agents.hama (3114) : INFO (logkit/Info:16) - AniDB mode - AniDB Serie XML: http://api.anidb.net:9001/httpapi?request=anime&client=hama&clientver=1&protover=1&aid=4568, AniDB/4568.xml
2018-06-17 23:16:20,709 - com.plexapp.agents.hama (3114) : INFO (logkit/Info:16) - url: 'http://api.anidb.net:9001/httpapi?request=anime&client=hama&clientver=1&protover=1&aid=4568', filename: 'AniDB/4568.xml'
2018-06-17 23:16:24,743 - com.plexapp.agents.hama (3114) : DEBUG (networking/load:161) - Fetching 'http://api.anidb.net:9001/httpapi?request=anime&client=hama&clientver=1&protover=1&aid=4568' from the HTTP cache
2018-06-17 23:16:24,778 - com.plexapp.agents.hama (3114) : CRITICAL (core/log_exception:574) - Exception writing to C:\Users\Robert\AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.agents.hama\DataItems\AniDB\4568.xml (most recent call last):
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-fd05be322\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\storage.py", line 81, in save
    f = open(tempfile, mode)
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-fd05be322\Framework.bundle\Contents\Resources\Versions\2\Python\subsystem\ospathfix.py", line 70, in builtins_open
    return __builtins__['_open'](longpathify(uni(filename)), mode, buffering)
IOError: [Errno 2] No such file or directory: u'\\\\?\\C:\\Users\\Robert\\AppData\\Local\\Plex Media Server\\Plug-in Support\\Data\\com.plexapp.agents.hama\\DataItems\\AniDB\\._4568.xml'

2018-06-17 23:16:24,778 - com.plexapp.agents.hama (3114) : WARNING (logkit/Warn:19) - url: 'http://api.anidb.net:9001/httpapi?request=anime&client=hama&clientver=1&protover=1&aid=4568', filename: 'AniDB/4568.xml' saving failed, probably missing folder, Exception: '[Errno 2] No such file or directory: u'\\\\?\\C:\\Users\\Robert\\AppData\\Local\\Plex Media Server\\Plug-in Support\\Data\\com.plexapp.agents.hama\\DataItems\\AniDB\\._4568.xml''

Looks like several subdirectories are not being recursively created when new files are opened. Note I'm running Plex on Windows 10, not Linux, so I don't see how this could be a permission issue. To be sure, I deleted the com.plexapp.agents.hama directory under Plug-in Support/Data and it was recreated just fine when I started Plex again. So I know it can create files & stuff.

ZeroQI commented 6 years ago

@rcdailey i will kindly ask for a donation if the answer was in the read-me.

Plex re-create the folder Plug-in Support/Data/com.plexapp.agents.hama/DataItems automatically, not HAMA. i control after DataItems folder, as plex have functions to interact directly with that folder:

So the error filename: 'AniDB/4568.xml' saving failed, probably missing folder indicate that most likely 'AniDB' folder is missing, This error message code is part of Master branch whose read-me stipulates the following and doesn not create missing folders, i believe the folders weren't created by hand:

MANDATORY: Go into the agent data folder ("Plug-In Support/Data/com.plexapp.agents.hama/DataItems") and make sure the following folders are all created: (folders are included in Zip archive in release tab and nammed "Plug-in.Support.zip", i recently added "TVDB/episodes" and "FanartTV" folder for TVDB screenshots).

"AniDB" "Plex" "OMDB" "TMDB" "TVDB" "TVDB/blank "TVDB/_cache/fanart/original" "TVDB/episodes" "TVDB/fanart/original" "TVDB/fanart/vignette" "TVDB/graphical" "TVDB/posters" "TVDB/seasons" "TVDB/seasonswide" "TVDB/text" "FanartTV" Agents can only write data in data folder as binary objects or as dictionaries, but cannot create folders unfortunately. Any folder missing will crash the agent when an attempt to write inside is done. That is a Framework issue, all attemps are in try/except structure, to no avail...

You can download them here: https://github.com/ZeroQI/Hama.bundle/releases/download/v1.0/Plug-in.Support.folders.zip or better, use use latest master branch version as i have merged beta branch into master branch just now as it created folders automatically.

You can check the old readme from 2 days ago here https://github.com/ZeroQI/Hama.bundle/blob/fdab8cd030b90ca559dc7114b0bc8ace8ff4f93f/README.md

sven-7 commented 6 years ago

I attempted the 'clear-cache', which seemed to work, but the poster didn't download. I also Plex-danced the show and that did not work either.

Logs.zip

sven-7 commented 6 years ago

Tested the 'clear-cache' on another show and it worked. Golden Kamuy still isn't pulling down this poster:

screen shot 2018-06-18 at 11 23 10 am

It's the only one marked as 'Japanese', language-wise.

ZeroQI commented 6 years ago

@sven-7 Is that me or the custom series logs work brilliantly now ?

common.LoadFile() - file cached - CacheTime: 'Sat Jun 16 00:39:41 2018', Limit: 'Thu Jul 12 07:09:27 2018', url: 'https://api.thetvdb.com/series/338455/images', Filename: 'TheTVDB/json/338455\images.json' file_valid: 'True'

What language do you have in Prefs['PosterLanguagePriority'] ? The file should include the language and and underscore: 'images_{}.json'.format(language) Please upgrade to latest and redo logs. will list poster priority at the beginning of the functions

for language in language_posters:
      try:     bannerTypes = Dict(common.LoadFile(filename='images_{}.json'.format(language), relativeDirectory="TheTVDB/json/"+TVDBid, url=TVDB_SERIES_IMG_INFO_URL % TVDBid, cache=CACHE_1DAY*6*4, headers={'Content-type': 'application/json', 'Accept-Language': language}), 'data')
sven-7 commented 6 years ago

Yes! The logs are very easy to read and look fantastic! :)

I am using the current master, with SinglePoster checked.

Here is my preference: <PosterLanguagePriority>en, ja</PosterLanguagePriority>

I do have an images_ja.json downloaded. In it, it contains: {"data":{"fanart":1,"poster":2,"series":1}}, so I am not sure why it isn't loading.

Logs.zip

ZeroQI commented 6 years ago

@sven-7 i think Plex cache per URL disregarding headers which for thetvdb includes languages, so give the same file twice, even if setting cache to None... Please delete thetvdb jsons for that serie, clear cache, update metadata, and report I did reproduce the issue, and solved on my end so i have good hope Please check if lowest index is the poster chosen, i feel Plex has a bug with that...

sven-7 commented 6 years ago

Yep! I can confirm it's working as expected now! It looked like the lowest index poster was chosen. Great work!

I think I found a bug surrounding TVDB posters while looking at this. Might be related, but I'll post separately.

Closing #215.

sven-7 commented 6 years ago

Actually, I'm going to post here now that I look at it. I Plex danced Food Wars! (Shokugeki no Soma). For the main posters, only two downloaded (out of what looks like 15). I cleared the cache and two more came down. Are there any kinds of limits or issues that might be happening? Here is are the logs:

1st attempt after Plex Dance:
Food Wars 1.zip

2nd attempt:
Food Wars 2.zip

ZeroQI commented 6 years ago

Un-tick get single image in agent settings " Not in Plex but threshold exceded or thumbs/themes agent setting not selected"

sven-7 commented 6 years ago

That did it! Thanks 👍

Re-Closing #215.

ZeroQI commented 6 years ago

I will delete that option... it scan quicker but nobody understand what it does....

sven-7 commented 6 years ago

FYI -- probably a TVDB/Plex issue?

Error opening URL 'https://api.thetvdb.com/series/313435/images/query?keyType=fanart&ja'
common.LoadFile() - issue loading url: 'https://api.thetvdb.com/series/313435/images/query?keyType=fanart&ja', filename: 'images_fanart_ja.json', Exception: 'HTTP Error 404: Not Found'
LoadFile() - not xml nor json: None                                                                            
Exception in the update function of agent named 'HamaTV', called with guid 'com.plexapp.agents.hama://tvdb2-313435?lang=en' (most recent call last):
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-fd05be322\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\agentkit.py", line 1076, in _update
    agent.update(obj, media, lang, **kwargs)
  File "C:\Users\RAFTEL3\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle\Contents\Code\__init__.py", line 131, in update
    def update (self, metadata, media, lang, force ):  Update (metadata, media, lang, force,  False)
  File "C:\Users\RAFTEL3\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle\Contents\Code\__init__.py", line 110, in Update
    dict_TheTVDB,                             IMDbid              =     TheTVDBv2.GetMetadata(media, movie, error_log, lang, source, AniDBid, TVDBid, IMDbid,         mappingList, Dict(AniDB, 'movie'))
  File "C:\Users\RAFTEL3\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle\Contents\Code\TheTVDBv2.py", line 215, in GetMetadata
    for image in images:  #JSON format = {"data": [{"id", "keyType", "subKey"(season/graphical/text), "fileName", "resolution", "ratingsInfo": {"average", "count"}, "thumbnail"}]}
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-fd05be322\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\code\sandbox.py", line 107, in <lambda>
    _getiter_           = lambda x: x.__iter__(),
AttributeError: 'str' object has no attribute '__iter__'

Serializing to C:\Users\RAFTEL3\AppData\Local\Plex Media Server\Metadata\TV Shows\0\0bc37e346e1d14a28addd4466110c8d584d5d04.bundle\Contents\com.plexapp.agents.hama\Info.xml
Sending packed state data (588 bytes)
Response: [200] str, 16 bytes
ZeroQI commented 6 years ago

Plex caching i recon I need to make every URL that use languages with a filename and URL different or you get the English json with artwork and the Japanese Json recover the English cache and try to load japanese artworks that do not exist hence the 404...

ZeroQI commented 6 years ago

posted update to avoid crash but indeed Plex cache a url even if instructed not to and even if the language is in the header like for thetvdb api v2... Dunno how to fix

sven-7 commented 6 years ago

The update is the current master? Will make sure I am using it. Thanks!

ZeroQI commented 6 years ago

Yeah i managed to merged beta branch at last.. Still have issue with cache as language in header not taken into account and ja language then load the same end page due to that. At least won't crash