PlexEmail - Email Recently Added Media

/Library/Application Support/Plex Media Server

Now I feel like a dummy.  Try setting it as:

/Library/Application Support/

Also, is that for sure the correct location?  When I installed PMS, this was the location:

/Users/{User Name}/Library/Application Support/

A more few ideas :)

  1. Genre in Movie Description
  2. Filter based on Genre (Email with just new Horror Movies this week)
  3. Filter based on Content Rating (So we can have a Plex Email just for Kids)

Thank you, this is great.

Good ideas.  I'll add them to my growing list ever since I posted this to Reddit :)

Once I can get a more stable release and better instructions for all platforms, I'll start working on them.

My vision in a future release will have it configurable by individual.  Set an email, media types to show, libraries to show, filter by different tags, etc.

Now I feel like a dummy.  Try setting it as:

/Library/Application Support/

Also, is that for sure the correct location?  When I installed PMS, this was the location:

/Users/{User Name}/Library/Application Support/

Right, the second one is what I should have used. Updated. Do you not also include the actual PMS folder in that path?

Right, the second one is what I should have used. Updated. Do you not also include the actual PMS folder in that path?

The script adds it in.  I'll update the code to accept both ways to prevent issues like this in the future.  Let me know if it works for you.

The script adds it in.  I'll update the code to accept both ways to prevent issues like this in the future.  Let me know if it works for you.

Still getting that error. is it looking in the right place for that module?

Traceback (most recent call last):
  File "plexEmail.py", line 1, in
    import sqlite3
ImportError: No module named sqlite3

Still getting that error. is it looking in the right place for that module?

Traceback (most recent call last):
  File "plexEmail.py", line 1, in
    import sqlite3
ImportError: No module named sqlite3

That error means that the folder is missing/wrong in /usr/lib/python2.7/sqlite3/. Ok, I've gotten it to work on Mac.  Let's try this:

Unpack this zip and move the folder to /usr/lib/python2.7/: usr_lib_python2.7_sqlite3.zip (98.2 KB)

Unpack this zip and move the file to /usr/bin/: usr_bin_sqlite3.zip (23.5 KB)

Woohoo, looks like the web and email is now working on my Unraid Server now.   

Unrelated, but is there a way to just display the latest movies and not tv seasons/episodes?

The latest release is now available: https://github.com/jakewaldron/PlexEmail/releases/tag/v0.4.2

v0.4.2 Released

 

New Features

  • Can now set days, hours and minutes and use all fields in the search.
  • Can now filter categories
  • Ease of Use updates

The filter categories works great! My emails only display Movies now.

That error means that the folder is missing/wrong in /usr/lib/python2.7/sqlite3/. Ok, I've gotten it to work on Mac.  Let's try this:

Unpack this zip and move the folder to /usr/lib/python2.7/: attachicon.gifusr_lib_python2.7_sqlite3.zip

Unpack this zip and move the file to /usr/bin/: attachicon.gifusr_bin_sqlite3.zip

We're a little further! New error this time:

Traceback (most recent call last):
  File "plexEmail.py", line 815, in
    with open(config['web_folder'] + config['web_path'] + os.path.sep + 'index.html', 'w') as text_file:
IOError: [Errno 2] No such file or directory: 'plexemail/index.html'

We're a little further! New error this time:

Traceback (most recent call last):
  File "plexEmail.py", line 815, in
    with open(config['web_folder'] + config['web_path'] + os.path.sep + 'index.html', 'w') as text_file:
IOError: [Errno 2] No such file or directory: 'plexemail/index.html'

Looks like a bug with not using a web server.  I've fixed it here: plexEmail.zip (9.07 KB)

Let me know!

Looks like a bug with not using a web server.  I've fixed it here: attachicon.gifplexEmail.zip

Let me know!

Same error.

I tried setting 'web_enabled' to False and got this:

Web page was not created because the option is disabled in the config file.
Failed to send email(s).
 
I also have Cloudinary enabled.

Same error.

I tried setting 'web_enabled' to False and got this:

Web page was not created because the option is disabled in the config file.
Failed to send email(s).
 
I also have Cloudinary enabled.

Well we are now all the way to the email portion so that is the last thing we need to figure out.  I'm guessing it is an issue with your SMTP settings.

Either send me the settings under email or try this one and give me the exception it throws: plexEmail.zip (9.07 KB)

Well we are now all the way to the email portion so that is the last thing we need to figure out.  I'm guessing it is an issue with your SMTP settings.

Either send me the settings under email or try this one and give me the exception it throws: attachicon.gifplexEmail.zip

Traceback (most recent call last):
  File "plexEmail.py", line 851, in
    sendMail(email)
  File "plexEmail.py", line 231, in sendMail
    FROM = formataddr((str(Header(config['email_from_name'])), config['email_from'])) if ('email_from_name' in config) else config['email_from']
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/email/header.py", line 183, in __init__
    self.append(s, charset, errors)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/email/header.py", line 267, in append
    ustr = unicode(s, incodec, errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 4: ordinal not in range(128)
Traceback (most recent call last):
  File "plexEmail.py", line 851, in
    sendMail(email)
  File "plexEmail.py", line 231, in sendMail
    FROM = formataddr((str(Header(config['email_from_name'])), config['email_from'])) if ('email_from_name' in config) else config['email_from']
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/email/header.py", line 183, in __init__
    self.append(s, charset, errors)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/email/header.py", line 267, in append
    ustr = unicode(s, incodec, errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 4: ordinal not in range(128)

It's an issue with either email_from_name or email_from.  Could you give me those values (feel free to put in dummy text for the portion before the @ sign.

It's an issue with either email_from_name or email_from.  Could you give me those values (feel free to put in dummy text for the portion before the @ sign.

email_from = ['########@gmail.com']

email_from_name = 'Zach’s Plex Server'

email_from = ['########@gmail.com']

email_from_name = 'Zach’s Plex Server'

Ok two things:

email_from = '#####@gmail.com'

email_from_name = 'Zach\'s Plex Server'

From should be just a string and from_name the issue is that the ' is causing issues and needs to be escaped with a "\"

Ok two things:

email_from = '#####@gmail.com'

email_from_name = 'Zach\'s Plex Server'

From should be just a string and from_name the issue is that the ' is causing issues and needs to be escaped with a "\"

Traceback (most recent call last):
  File "plexEmail.py", line 851, in
    sendMail(email)
  File "plexEmail.py", line 272, in sendMail
    server.sendmail(FROM, TO, msg.as_string())
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/smtplib.py", line 735, in sendmail
    raise SMTPRecipientsRefused(senderrs)
smtplib.SMTPRecipientsRefused: {'z': (553, "5.1.2 We weren't able to find the recipient domain. Please check for any 5.1.2 spelling errors, and make sure you didn't enter any spaces, periods, 5.1.2 or other punctuation after the recipient's email address. y7sm5932988pdp.92 - gsmtp")}
 
Doublechecked the email and it looks good.

Traceback (most recent call last):
  File "plexEmail.py", line 851, in
    sendMail(email)
  File "plexEmail.py", line 272, in sendMail
    server.sendmail(FROM, TO, msg.as_string())
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/smtplib.py", line 735, in sendmail
    raise SMTPRecipientsRefused(senderrs)
smtplib.SMTPRecipientsRefused: {'z': (553, "5.1.2 We weren't able to find the recipient domain. Please check for any 5.1.2 spelling errors, and make sure you didn't enter any spaces, periods, 5.1.2 or other punctuation after the recipient's email address. y7sm5932988pdp.92 - gsmtp")}
 
Doublechecked the email and it looks good.


It's an issue with one of the emails on the to line. Please send me email_to.

It's an issue with one of the emails on the to line. Please send me email_to.

It's the same as email_from. I'm just testing it right now.

It's the same as email_from. I'm just testing it right now.


That one needs to be in this format: ['email@domain.com']

Is it in that format?