PlexEmail - Email Recently Added Media

Congratz!

  

Congratulations!

  

Congrats to you sir.


Thanks all!

Eadwyn,

 I know you are fixin' to take off on your Honeymoon, but when you return I have something for you to consider.

I have been able to get my web page hosted on Google Drive, but the CSS wont work. Reason being the link to the CSS folder. That can be changed, but it has to be changed each week, as the new webpage will (I am assuming), over write the entire page and not just update the movie/TV show content.

I think it could work if you add in the config file a place to put an alternate CSS link that will over write the standard link when the script is run.

If you could make this happen (for me to test before going live), I will share how to set it up in Google Drive as an alternate to using XAMPP or another Apache server. (If in fact this will work).

Thanks and have fun.

I don't use the web. I use cloudinary service. What is wrong? How ti sends this script the email? Don't work for me. I need help because I'm very dummy at this.I run the script manually but nothing happens, I don't receive any email.

Depends on what you mean by you run it manually. Open cmd prompt window and drill down to the scripts directory (PlexEmail\scripts). then type plexEmail.py -t. This will send a test email to see if it works.

I have this error

e869c07d3107da554cd472083da95e7a.jpg

I don't receive any email.

Did you install Python as noted in the OP?

 

Prerequisites

  1. Python 2.7 - Windows: 32 bit - https://www.python.o...ython-2.7.9.msi
  2. 32 bit DLL for SQLite version 3.8.8.3
  3. Requests module for Python. pip install requests or download it here and put it in the LIb folder of your Python installation: https://pypi.python....eb5353bb4a475b1

The translation problem is fixed. Now I have another problem. The date that scripts capture is in american format mm/dd/YY, I want to change to dd/mm/YY. How can i Change that?

2ld9flz.jpg

if you read the README and read about the variable "date_format":

https://github.com/jakewaldron/PlexEmail/blob/master/README.md

you will see you can use these date formatting options:

https://docs.python.org/2/library/datetime.html#strftime-strptime-behavior

I use the following to produce 

29 May 2015 - 5 Jun 2015
date_format = '%-d %b %Y'

I've managed to get the script to email, however it is not picking up anything new, so all of the emails keep stating "there is nothing new". I assume this script is reading from a log file, and perhaps Plex isn't writing to the correct file or there may be a logging option that needs to be enabled. I have the latest plex running on CentOS 6.5. Please help.

Thanks

Alfke

I've managed to get the script to email, however it is not picking up anything new, so all of the emails keep stating "there is nothing new". I assume this script is reading from a log file, and perhaps Plex isn't writing to the correct file or there may be a logging option that needs to be enabled. I have the latest plex running on CentOS 6.5. Please help.

Thanks

Alfke

I suggest checking out this part of the instructions again. I bet it was skipped or has a typo somewhere.

https://github.com/jakewaldron/PlexEmail/blob/master/README.md

Config File

The config file is in the scripts folder. Before first run of the script, please update this file with your information.

Field Explanations: Folder Paths
  • plex_data_folder - Location where the Plex Media Server folder is located - i.e. E:\Library\Plex

Anyone know how to put the tittle only in Spanish?


The only way now to do this is to make a change to the code of the PlexEmail script. If you are not running on Windows you can edit the scripts/plexEmail.py file by putting a # at the beginning of lines 761 and 762 for movies.

I suggest checking out this part of the instructions again. I bet it was skipped or has a typo somewhere.

https://github.com/jakewaldron/PlexEmail/blob/master/README.md

I had filled in the path, which is /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/

That folder contains .db files, but the last time the com.plexapp.dlna.db file was last modified was when I upgraded PMS on June 5. I believe the script is reading that .db file which is no longer being updated by Plex.

I had filled in the path, which is /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/

That folder contains .db files, but the last time the com.plexapp.dlna.db file was last modified was when I upgraded PMS on June 5. I believe the script is reading that .db file which is no longer being updated by Plex.

Check you Server settings in Plex to see if it has changed.

Settings -> Show Advance -> General -> "The path where local application data is stored"

Quick question, is there someway to just get a list of users and emails based on this?

Check you Server settings in Plex to see if it has changed.

Settings -> Show Advance -> General -> "The path where local application data is stored"

Problem solved. I did a full reinstallation of Plex earlier in the year, and the data folder path is different. I ended up running a search for the .db file which resulted in the old installation data directory, and the newer one which is being fully updated. I changed paths to the newer db directory and now plexemail is working correctly. Very impressive!

Alfke

Quick question, is there someway to just get a list of users and emails based on this?

It's not pretty but you can use this.

https://plex.tv/api/users

Problem solved. I did a full reinstallation of Plex earlier in the year, and the data folder path is different. I ended up running a search for the .db file which resulted in the old installation data directory, and the newer one which is being fully updated. I changed paths to the newer db directory and now plexemail is working correctly. Very impressive!

Alfke

Awesome, glad you got it figured out.

I would love for the ability to add a trailer link? So someone could load a trailer for the movies by chance?

Howdy..

Been working fine for ages - all of a sudden I note its stopped worked - checked out in the Terminal window and get this::

Traceback (most recent call last):
  File "plexEmail.py", line 1043, in
    sendMail([config['email_from']])
  File "plexEmail.py", line 364, in sendMail
    server.starttls()
  File "/home/asl/Downloads/Python-2.7.9/Lib/smtplib.py", line 649, in starttls
    self.sock = ssl.wrap_socket(self.sock, keyfile, certfile)
  File "/home/asl/Downloads/Python-2.7.9/Lib/ssl.py", line 891, in wrap_socket
    ciphers=ciphers)
  File "/home/asl/Downloads/Python-2.7.9/Lib/ssl.py", line 566, in __init__
    self.do_handshake()
  File "/home/asl/Downloads/Python-2.7.9/Lib/ssl.py", line 788, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL] dh key too small (_ssl.c:581)
 
 
Looks like its trying to send via SSL - however the config file says this:
email_use_ssl = False
 
Any body out there got some ideas ??
 
cheers !!

I would love for the ability to add a trailer link? So someone could load a trailer for the movies by chance?

I'll add it to the potential feature list.  Right now everything is coming from the local server, so I'll have to figure the best way to integrate linking to external trailers (and maybe embedding in the web page)..

Howdy..

Been working fine for ages - all of a sudden I note its stopped worked - checked out in the Terminal window and get this::

Traceback (most recent call last):
  File "plexEmail.py", line 1043, in
    sendMail([config['email_from']])
  File "plexEmail.py", line 364, in sendMail
    server.starttls()
  File "/home/asl/Downloads/Python-2.7.9/Lib/smtplib.py", line 649, in starttls
    self.sock = ssl.wrap_socket(self.sock, keyfile, certfile)
  File "/home/asl/Downloads/Python-2.7.9/Lib/ssl.py", line 891, in wrap_socket
    ciphers=ciphers)
  File "/home/asl/Downloads/Python-2.7.9/Lib/ssl.py", line 566, in __init__
    self.do_handshake()
  File "/home/asl/Downloads/Python-2.7.9/Lib/ssl.py", line 788, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL] dh key too small (_ssl.c:581)
 
 
Looks like its trying to send via SSL - however the config file says this:
email_use_ssl = False
 
Any body out there got some ideas ??
 
cheers !!

What OS are you running?  I see this for FreeBSD, might be related: https://forums.freebsd.org/threads/sendmail-dh-key-too-small.51985/

Looks like an update to openSSL might have caused the issue.

The only way now to do this is to make a change to the code of the PlexEmail script. If you are not running on Windows you can edit the scripts/plexEmail.py file by putting a # at the beginning of lines 761 and 762 for movies.

I'll add this to the config options in a future release.

Quick question, is there someway to just get a list of users and emails based on this?

I'll add this to the future feature list.  Probably another flag that can be set to just output to a file.

This has been fantastic! I had been using the PlexWatch for emails and they were very basic. Would it be possible to implement a email for what is being watched and what not like PlexWatch so i can move away from it?

I have edited the HTML and made this with a nice layout.

Thanks,

Dereck

I have edited the HTML and made this with a nice layout.

What did you make?

I am still tweaking it and making so you can easily edited the configuration file to inot banner / plex banner or other graphic. And also easily change colors. I will post it either later tonight or tomorrow with changes made.