Closed C9H13NO3 closed 6 years ago
Keeping this updated as I try and resolve, in case anyone else has similar issues.... found the following in the log file:
2017-10-29 12:11:48,253 - INFO:uploadToCloudinary: begin 2017-10-29 12:11:48,253 - INFO:uploadToCloudinary: not an image
Will continue to investigate
Looks like an issue with the images themselves, python module imghdr returns the image type for a provided file:
python Python 2.7.6 (default, Oct 26 2016, 20:30:19) [GCC 4.8.4] on linux2 Type "help", "copyright", "credits" or "license" for more information. import imghdr imghdr.what('/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Metadata/TV Shows/5/63fd737cc65ae03afbec5398227034c298f7285.bundle/Contents/_stored/posters/com.plexapp.agents.thetvdb_d481319648b4aff3d3416dd56ce17a853ef0c24e')
imghdr.what('/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Metadata/TV Shows/e/5752c5382490dfce55ba923e1d6f4797f8a77b9.bundle/Contents/_stored/seasons/5/posters/com.plexapp.agents.thetvdb_6d6ab98cc35ece874dde4452120e98dd441604a4') 'jpeg'
The first image file is one that shows with a broken link and the error from the uploadToCloudinary function.
If I edit the show and change the poster, which invokes a metadata update, the email immediately proceeding that one is ok.
Not sure if just changing the poster will be a permanent fix, but the issue looks like is with the metadata pulled down by plex rather than the plexEmail script so will close and leave this here for anyone else that may have similar issues.
I am having issues with a couple of issues missing on emails. Specifically these are related to a new show.
To try and explain, if I add a new show with a couple of seasons, the show will be listed in two sections, "New TV Shows" and "New TV Seasons", both the seasons (show added has two seasons) have images correctly included, however the new show section does not include an image and only shows a broken image link.
Out of three new shows added, one has the image set correctly, two have broken image links. I have checked the plex media folders and both have folder.jpg (which is I assume the image that is uploaded), cloudinary does not have the images, so it would seem it is failing on upload.
I have tried working out in the python file and log file where it is attempting each show to try and work out what is going wrong, but unable to do so, although will continue to look into it.
Any suggestions, help in the right direction would be appreciated.