Hi eadwyn. Is it possible to change TV episodes so they give better information? For example, Adding “Original Airdate” for the tv episode would be great. Also, can you change S2 E6: Name of Episode to Season 2 Episode 6: Name of Episode? Lastly, is it possible to have your script check TheTVdb.com for “next airdate” and whether the series is in production, cancelled or completed?
@eadwyn - first off big thank you for contributing this tool to the Plex community. super cool and i’ve set it up and configured on my Mac Mini Plex Server, serving content and unspeakable family video to my family.
i’ve taken this one as far as i can and wondering if i can get help setting up a cron job to execute the plexEmail.py python script. as you know, when you start a cron job any environment variables and user settings don’t apply. i am able to run the script in terminal by
cd /Applications/PlexEmail-0.6.0/scripts/
python plexEmail.py
if i set up that up as a cron job it reports being unable to import certain modules, which have been installed and set up. the cron job set to run every minute (for testing) looks like
so, my question is based in a lack of education in python, is there a way to set an environment or python variable whereby the path gets set to /Applications/PlexEmail-0.6.0/ when it’s run? is that even an environment variable or is there a path import function in Python?
again, thank you for this contribution and in advance for your assistance.
I have a problem, I read this forum and I have this error
Traceback (most recent call last):
File “plexEmail.py”, line 656, in
cur.execute(‘SELECT machine_identifier FROM remote_servers WHERE url LIKE “http://127.0.0.1%”;’)
sqlite3.DatabaseError: file is encrypted or is not a database
In SO --> centos 6.5
the folder /Plexmedai-master is in root,
this folder is same user and groupuser that plexmedia (user is plex)
I execute this command with sudo and without sudo and root.
@freebeer said:
Hi eadwyn. Is it possible to change TV episodes so they give better information? For example, Adding “Original Airdate” for the tv episode would be great. Also, can you change S2 E6: Name of Episode to Season 2 Episode 6: Name of Episode? Lastly, is it possible to have your script check TheTVdb.com for “next airdate” and whether the series is in production, cancelled or completed?
Thanks
Right now it is only obtaining data from what Plex has grabbed and stored in the DB and airdate is not part of that. Maybe in the future I can integrate it with another service, but that currently is outside the scope of this script. For the naming, I will try to get that in a future release, but for now you can modify line 996 to change it to what you want.
@itsrainingben said:
eadwyn - first off big thank you for contributing this tool to the Plex community. super cool and i’ve set it up and configured on my Mac Mini Plex Server, serving content and unspeakable family video to my family.
i’ve taken this one as far as i can and wondering if i can get help setting up a cron job to execute the plexEmail.py python script. as you know, when you start a cron job any environment variables and user settings don’t apply. i am able to run the script in terminal by
cd /Applications/PlexEmail-0.6.0/scripts/
python plexEmail.py
if i set up that up as a cron job it reports being unable to import certain modules, which have been installed and set up. the cron job set to run every minute (for testing) looks like
so, my question is based in a lack of education in python, is there a way to set an environment or python variable whereby the path gets set to /Applications/PlexEmail-0.6.0/ when it’s run? is that even an environment variable or is there a path import function in Python?
again, thank you for this contribution and in advance for your assistance.
cheers
ben
Could you try changing the cron job to /path/to/python/you/want/to/use/python /Applications/PlexEmail-0.6.0/scripts/plexEmail.py and see if that works?
I have a problem, I read this forum and I have this error
Traceback (most recent call last):
File “plexEmail.py”, line 656, in
cur.execute(‘SELECT machine_identifier FROM remote_servers WHERE url LIKE “http://127.0.0.1%”;’)
sqlite3.DatabaseError: file is encrypted or is not a database
In SO → centos 6.5
the folder /Plexmedai-master is in root,
this folder is same user and groupuser that plexmedia (user is plex)
I execute this command with sudo and without sudo and root.
Can you help me pls?
K.Regards
Have you tried following the CentOS install instructions?
Hello, I have been running PlexEmail for months now and all of a sudden it has stopped working. I have gone through the forum and have tried all the suggestions and I am still having the same problem. I have a cron job that runs every Friday at 8pm. Ran last week fine (have th email of course). This week nothing came. I was curious and ran the -t command and received this error:
Traceback (most recent call last):
File “plexEmail.py”, line 656, in
cur.execute(‘SELECT machine_identifier FROM remote_servers WHERE url LIKE “http://127.0.0.1%”;’)
sqlite3.OperationalError: unable to open database file
I am using Ubuntu 14.
Python verison is 2.7.6
sqlite3.version = 2.6.0
sqlite3.sqlite_version = 3.8.2
I do all the update when Ubuntu asks me and I have also updated to the latest Plex server (version 0.9.12.8).
Any help is greatly appreciated as I really love this!
Cheers,
-Chris
Just wanted to say this script is awesome! I was able to set it up on my MacMini Plex Server running 10.7.5. I think I only had to install the Python Requests module and any trouble I had was with configuring my settings correctly.
Hi:
I follow manual, I go to install all rightly. But in last step I see the same error.
I go to python I import sqlite3
import sqlite3
sqlite3.version
‘2.4.1’
sqlite3.sqlite_version
‘3.6.20’
Traceback (most recent call last):
File “./plexEmail.py”, line 656, in
cur.execute(‘SELECT machine_identifier FROM remote_servers WHERE url LIKE “http://127.0.0.1%”;’)
sqlite3.DatabaseError: file is encrypted or is not a database
Ok I fixed the issue. Main issue was that I wasn’t running the test command as root. The second problem was that was trying to email was larger than what Google allows.
@nogardvfx said:
Ok I fixed the issue. Main issue was that I wasn’t running the test command as root. The second problem was that was trying to email was larger than what Google allows.
Interesting, how many movies/TV shows did you have that caused it to be so big?
Traceback (most recent call last):
File “plexEmail.py”, line 656, in
cur.execute(‘SELECT machine_identifier FROM remote_servers WHERE url LIKE “http://127.0.0.1%”;’)
sqlite3.OperationalError: locking protocol
@foebik said:
Interesting, how many movies/TV shows did you have that caused it to be so big?
Apparently a lot. I always adding new movies. I narrowed it down to the amount of films I have recently added (the attached images are what caused the issue).
I think one really nice feature would be maintenance emails. If I ever need to bring down my server, I would like to send out a maintenance start/end email. Otherwise, great work!
@majora2007 said:
I think one really nice feature would be maintenance emails. If I ever need to bring down my server, I would like to send out a maintenance start/end email. Otherwise, great work!
I agree that this would be nice as I now manually do this myself. But the question is how easy would it be for PlexEmail in its current state? Currently, after initial setup of the config files it is mostly a hands off experience. But for maintenance emails that will decidedly be a more hands on experience. You will most likely need some kind of interface (Web?) to be able to type up your comments about the work being done and what not. Which currently doesn’t exist.
But hey, if the author is up to the challenge I am all about testing it out I think it would be a great addition.