The look of your product is amazing, but I'm having a bit of an issue setting it up. I know nothing about python, but think I have it and the requests module installed properly. I am running on Windows 8.1 and my Plex is on the same machine, as well as XAMPP. When I run plexemail.py -t this is the output I get. Any help would be greatly appreciated.
The look of your product is amazing, but I'm having a bit of an issue setting it up. I know nothing about python, but think I have it and the requests module installed properly. I am running on Windows 8.1 and my Plex is on the same machine, as well as XAMPP. When I run plexemail.py -t this is the output I get. Any help would be greatly appreciated.
Thanks,
Dave
Looks to be something wrong in the config file. Maybe a folder path? When using back slashes you need two for each one "C:\\some\\path\ o\\folder"
If that's not it please provide the config file (strip out personal stuff) and I can take a look.
Looks to be something wrong in the config file. Maybe a folder path? When using back slashes you need two for each one "C:\\some\\path\ o\\folder"
If that's not it please provide the config file (strip out personal stuff) and I can take a look.
Thanks for the quick response, and you were spot on. I saw the examples of how to enter folder paths but didn't pay attention to the double slashes. I fixed that and got a bit further.
Thanks for the quick response, and you were spot on. I saw the examples of how to enter folder paths but didn't pay attention to the double slashes. I fixed that and got a bit further.
The version included in the default python installation doesn't work with the version included in Plex.
I did the first time I tried to set it up, normally when something doesn't work, I start from scratch. This time when I started from scratch I missed that part. Anyway, it is up and working now. I have one last question. I set up a second gmail account to send from. The email is working fine, but when I send it, my users can all see each others email addresses. Is there anyway to make everyone BCC instead of recipients so that users won't be able to see each others email addressed? Other than that, this is working perfectly for me!!
I did the first time I tried to set it up, normally when something doesn't work, I start from scratch. This time when I started from scratch I missed that part. Anyway, it is up and working now. I have one last question. I set up a second gmail account to send from. The email is working fine, but when I send it, my users can all see each others email addresses. Is there anyway to make everyone BCC instead of recipients so that users won't be able to see each others email addressed? Other than that, this is working perfectly for me!!
Thanks again,
Dave
Glad to hear it's working. There is no bcc functionality quite yet; however you can set the field email_individually to True and it will send a separate email to each person.
Glad to hear it's working. There is no bcc functionality quite yet; however you can set the field email_individually to True and it will send a separate email to each person.
Will that still just use my Shared User list, or will I have to set up each persons email in the config file and update it? Either way is fine, I was just wondering.
Will that still just use my Shared User list, or will I have to set up each persons email in the config file and update it? Either way is fine, I was just wondering.
Thanks again and have a great weekend.
Dave
Yep, it'll still use the shared list. The code just puts the two lists together and removes duplicates.
I also use PlexRequest. Would it be possible to edit the email header to include another html link to my PlexRequest page? Just like you have it for the webpage view of the PlexEmail?
I also use PlexRequest. Would it be possible to edit the email header to include another html link to my PlexRequest page? Just like you have it for the webpage view of the PlexEmail?
Thanks,
Dave
Hey I use Plex Request as well. I did a small change in the config file to make this happen.
I changed the message header 3 under the ##Message section. I forget what was originally there in its place, but I remember thinking I didn't need it. The http address automatically becomes a clickable link that takes them to my site.
msg_header3 = 'If you have a request, please visit '
Hey I use Plex Request as well. I did a small change in the config file to make this happen.
I changed the message header 3 under the ##Message section. I forget what was originally there in its place, but I remember thinking I didn't need it. The http address automatically becomes a clickable link that takes them to my site.
Foebik,
Thanks, I actually figured it out and did close to the same thing. I ended up adding a header #4 to the config file and kept the view email as a webpage link. I had to also edit the plexEmail.py as well to put the new header in. It works nicely. Thanks for the input though!
I have a question for any user that has XAMPP set up and working to host the web page.
I have plexEmail set up and successfully creating a web page.
Files are located at C:\plexEmail\web
I am having an issue setting up the config file for XAMPP to map to the index.html in that folder location.
XAMPP is located at C:\
Can anyone post the items in the config file (C:\xampp\apache\conf\httpd.conf) that need to be edited to point to the correct location?
Thanks in advance.
Semper,
I'm using XAMPP, I'm not an expert by any means, but here is what my set up looks like,
XAMPP is installed at C:\xampp\
Python is installed at C:\Python27\
I put the "Web" folder from the PlexEmail zip into my htdocs folder in xampp and renamed it from "web" to "plexEmail" with the final full path being C:\xampp\htdocs\plexEmail\
In put the "Scripts" folder from the PlexEmail zip into my Phython "Scripts" folder and renamed it from "Scripts" to plexEmail with the final full path being C:\Phyton27\Scripts\plexEmail
The config.cnf file in C:\Phyton27\Scripts\plexEmail looks like this:
# This Python file uses the following encoding: utf-8
##Folder Paths
# Windows Example: 'C:\\Users\\{User Name}\\AppData\\Local\\'
# Linux Example: '/var/lib/plexmediaserver/Library/Application Support/'
# Mac Example: '/Users/{User Name}/Library/Application Support/'
plex_data_folder = 'C:\\Users\\David\\AppData\\Local\\Plex Media Server\\'
# Windows Example: 'C:\\wamp\\www\\'
# Linux/Mac Example: '/var/www/'
web_folder = 'C:\\xampp\\htdocs\\'
Using this setup I didn't have to change anything in the C:\xampp\apache\conf\httpd.conf file, but I will tell you that I already had PlexRequest set up and running, so there may have been some config changes in that set up that I am not remembering. Hope this helps!
c:\plexEmail\scripts>python plexEmail.py
Traceback (most recent call last):
File "plexEmail.py", line 687, in
cur.execute("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 FROM metadata_items MD LEFT OUTER JOIN media_items ME ON MD.id = ME.metadata_item_id WHERE added_at >= " +
dateSearch + " AND metadata_type >= 1 AND metadata_type <= 4 " + libraryFilter + " ORDER BY title_sort;")
sqlite3.DatabaseError: file is encrypted or is not a database
Getting this when running the script. I have all the pre-reqs installed. Path of the Plex folder is pointing to my folder in AppData.