Closed hergonoway closed 4 years ago
I have two guesses of what is causing this.
1) If it's not creating/saving your jpg file for ANY of your movies then you need to set the Agent to Plex Movie in the Advanced settings of the library
2) If it's not creating/saving your jpg file for this specific movie then you may have used the "Fix Match" option and chose a different Agent. I've done this before if the Plex Movie Agent can't find a specific movie, but "The Movie Database" can, then to discover that the movie poster/background won't save now.
Is it either of those two scenarios? I understand these scenarios are for movies, but I believe the same rule applies to TV Shows
Hello, no I've checked that the good agent is selected for the library (as I said the problem is not always, it's sometimes) and double check the agent selected when I've remade the association to try to fix the issue. :/
Answer is in the log file
2020-04-01 02:46:58,819 (7f57f8ff9700) : INFO (__init__:87) - nfo_load("{}...", "/data/Anime/Librairie/[All]/Hyakko Extra [OVA][anidb-7113]", "series_nfo") - nfo_file: "/data/Anime/Librairie/[All]/Hyakko Extra [OVA][anidb-7113]/tvshow.nfo"
2020-04-01 02:46:58,821 (7f57f8ff9700) : INFO (__init__:634) - PLEX_URL_TVSHOWS - Exception: 'float() argument must be a string or a number'
nfo_load is located line 73-90 but doesn't have float
[068] xml = XML.ElementFromURL(URL.format(key, count, window), timeout=float(TIMEOUT)) [307] PLEX_LIBRARY_XML = XML.ElementFromURL(PMSSEC, timeout=float(TIMEOUT)) [450] xml = XML.ElementFromURL(PMSMETA.format(ratingKey), timeout=float(TIMEOUT))
[368] date_added = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(float(video.get('addedAt')))) [420] date_added = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(float(show.get('addedAt'))))
try replacing in line 368 and 420: if show.get('addedAt'): date_added = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(float(show.get('addedAt'))))
Stop plex, made the changes, start plex, it metadata refresh on 2 problematic shows (Stein Gates and Hyakko Extra ) but still no poster or banner :/
nfo of these 2 shows has been updated tho
here are the cahnges I've made :
here's new log : com.plexapp.agents.lambda.log
tried to reinstall and reset prefs for lambda, still the issue. Is there something specific to search in the log about where the choice of replacing the local poster.jpg or not is done ?
The logs are incomplete so cannot say... Please refresh metadata for one series, then check the logs contain the update call and all logs afterwards and can sort it
So,
I've copied the log at 22h34 : com.plexapp.agents.lambda-2020-04-01-2234.log
I press refresh metadata of "Ookami to Koushinryou II" at 22h35:00 and wait 30sec.
I've copied the log at 22h35:30 : com.plexapp.agents.lambda-2020-04-01-2235-30.log
There's this line, is the update call your looking for ? :
2020-04-01 22:35:04,860 (7fc0c77fe700) : INFO (__init__:288) - Update(metadata, media="Ookami to Koushinryou II", lang="en", force=True, agent_type=show)
EDIT : I've checked 20 min later, there's no new log after 2020-04-01 22:35:12,962
2020-04-01 22:25:08,537 (7fc0c77fe700) : INFO (__init__:685) - PLEX_URL_TVSHOWS - Exception: 'local variable 'date_added' referenced before assignment'
It is a by-product of the change i recommended...
try replacing in line 368 and 420: date_added = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(float(show.get('addedAt')))) if show.get('addedAt') else None
well your by-product seems to have done the trick. It's working as expected now \o/
I've just tried to update 30 random show, all local poster.jpg has been updated
both lines weren't identical, so movies fixed too now Was an important bug, thanks for reporting and logs
Hello,
I've got an issue when sometimes during metadata refresh, poster.jpg is not created/updated. Basically I use Lambda on Server 1 to backup nfo and poster in local, so Server 2 will pick up the poster choosen by Server 1 through a master/slave logic. My problem is on Server 1
Server 1![image](https://user-images.githubusercontent.com/8405448/78088449-8166be80-73c4-11ea-93b4-d868028ac27e.png)
Prefs in /Plug-in Support/Preferences/com.plexapp.agents.lambda.xml
Server 2![image](https://user-images.githubusercontent.com/8405448/78088619-f0dcae00-73c4-11ea-8c4f-07424032feeb.png)
Today I had this issue again, while passing by my library to update low res posters, I've changed the poster in Plex (through the UI), hit metadata refresh on the show, waited, but nothing :
Here's the target folder :![image](https://user-images.githubusercontent.com/8405448/78088199-b9b9cd00-73c3-11ea-8b60-844e6e6a656f.png)
Here's the content of the nfo file generated by lambda when I've added the show in the above picture few weeks ago (just in case) :
I've tried the Plex Dance, redo the association, reboot the server, nothing. The plugin is up to date and installed with UAS.
Here is the log file : com.plexapp.agents.lambda.log