Thanks JamminR. So I can either dig through the posters to find the one that’s too big or I can upgrade to a paid account on Cloudinary. ~~Yea, I’m too lazy for all that so a paid account it is. Thanks again. ~~
What I meant to say is that I can save myself $50 and do a search for the image in my media folder, replace it, and fix the problem.
I was able to get this app up and running on mac os x yosemite 10.10.5
Thank You for this app very much!
Is there a way to not include duplicate movies or only monitor 1 library. My libraries are structured as such by genre ( created with hard links ) that duplicate movies will appear.
Hey guys! So my script has been working fine for a while now, but today I ran into an error. Log says everything is working fine, uploading images to cloudinary, etc, until this section:
2017-02-20 09:02:12,923 - INFO:processImage: Setting image paths to cloudinary
2017-02-20 09:02:12,923 - ERROR:Logging an uncaught exception
Traceback (most recent call last):
File "plexEmail.py", line 1537, in <module>
displayText = time.strftime(sections[section[0]]['format'], time.strptime(displayText, '%Y-%m-%d %H:%M:%S'))
File "C:\Python27\lib\_strptime.py", line 467, in _strptime_time
return _strptime(data_string, format)[0]
File "C:\Python27\lib\_strptime.py", line 447, in _strptime
datetime_date(year, 1, 1).toordinal() + 1
ValueError: year is out of range
Any idea what’s wrong here? I haven’t made any changes to the script configuration in months.
This is my first time setting up a script with python and I’m a little lost at the moment. I’m getting email to come through, but only (email_from = xxxxx1@gmail.com.) I do not receive email using shared emails from plex shared users or when I put a email in (email_to = xxxxx2@gmail.com). It seems like my script is backwards some how, or are you suppose to put the emails you want to send to under (email_from = ) I also would like to use the plex shared users feature and I have put in my login info under the Plex API part of the script.
I appreciate any help thanks.
@tycho1974 said:
Hey guys! So my script has been working fine for a while now, but today I ran into an error. Log says everything is working fine, uploading images to cloudinary, etc, until this section:
2017-02-20 09:02:12,923 - INFO:processImage: Setting image paths to cloudinary
2017-02-20 09:02:12,923 - ERROR:Logging an uncaught exception
Traceback (most recent call last):
File "plexEmail.py", line 1537, in <module>
displayText = time.strftime(sections[section[0]]['format'], time.strptime(displayText, '%Y-%m-%d %H:%M:%S'))
File "C:\Python27\lib\_strptime.py", line 467, in _strptime_time
return _strptime(data_string, format)[0]
File "C:\Python27\lib\_strptime.py", line 447, in _strptime
datetime_date(year, 1, 1).toordinal() + 1
ValueError: year is out of range
Any idea what’s wrong here? I haven’t made any changes to the script configuration in months.
@eadwyn - Any clue what would be causing this error?
@tycho1974 - My guess, you have an image or data file with an odd year.
“ValueError: year is out of range”
As for where/when/how to fix, sorry, no idea.
@JamminR said: @tycho1974 - My guess, you have an image or data file with an odd year.
“ValueError: year is out of range”
As for where/when/how to fix, sorry, no idea.
What does that mean, “an odd year”? I checked my media, and my earliest file dates to 1902, ranging of course to 2017. I can’t filter my music by year, so there’s no easy way to check that. Is that what you mean? I don’t know how an image can have a year - do you mean the file properties? This is weird.
Ran into an issue with this week’s email. It added a bunch of images at in the email that are not posters of movies that were just added. I believe they might be stills of movies that one of my users synced. Would plexEmail think a synced movie is recently added? Or does anyone know what else might cause this?
You can create a second config file that only creates a web page and have
that run everyday. You can run the script with the -c option to pass a
different config file.
I have PlexEmail installed and test messages send successfully. Unfortunately, it’s not recognizing recently added media. The logs suggest that it finds the database and makes the queries. Not sure where to look next.
EDIT:
It looks like the db query is not getting any response.
2017-04-14 23:34:51,444 - INFO:Executing DB query: SELECT MD.id, MD.parent_id, MD.metadata_type, MD.title, MD.title_sort, MD.original_title, MD.rating, MD.tagline, MD.summary, MD.content_rating, MD.duration, MD.user_thumb_url, MD.tags_genre, MD.tags_director, MD.tags_star, MD.year, MD.hash, MD.[index], MD.studio, ME.duration, MD.originally_available_at FROM metadata_items MD LEFT OUTER JOIN media_items ME ON MD.id = ME.metadata_item_id WHERE added_at >= datetime('now', 'localtime', '-7 days', '-0 hours', '-0 minutes') AND metadata_type >= 1 AND metadata_type <= 10 ORDER BY title_sort; 2017-04-14 23:34:51,578 -
I will have to update the script when I get some time later this week.
As for the config file, you just need to input
the XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX portion and not the rest. But
this functionality will be broken until I can update the script.
This release is mostly bug fixes with one minor new feature. The biggest thing this fixes is a rare case of the DB being corrupted, which is no longer possible.
v0.9.3 Released
Bug Fixes
Updated plex web links to use the new format
Properly close DB connections when done
Copy DB files before opening (delete copy when done with file) to avoid corruption issues
Fixes an issue with the GUID (used for direct links)
logging_file_location is now working if set
Added logging_enabled to be able to disable logging
New Features
Allow users to exclude showing the original title for items