Our forum migration to Discourse will be going on starting late today June 19 to 21. During the migration, the forums will be read-only, except for a single temporary forum (which will not be getting transferred). Read our announcement post here for more information https://forums.plex.tv/discussion/319354/well-be-moving-the-forums-to-discourse-heres-the-scoop/
Hey folks, there is a new Podcast category for forums https://forums.plex.tv/categories/podcasts
If you have not already, we suggest setting your Plex username to something else rather than email which is displayed on your posts in forum. You can change the username at https://app.plex.tv/desktop#!/account
Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

PlexEmail - Email Recently Added Media

2456747

Comments

  • eadwyneadwyn Posts: 231Members, Plex Pass Plex Pass

    Sent you a PM with my email.  Would you mind sending me the email so I can troubleshoot it?

  • eadwyneadwyn Posts: 231Members, Plex Pass Plex Pass
    miniop wrote on March 6 2015, 9:09 PM: »

    after 20min it was delivered fine !!!

    Thanks !

    one problem is with the email with utf8 characters it is displayed as N#ON7N= ON1N9N=N/N1 B+N'ONN,ON;O ON7

    Checking the email through outlook it looks good but thourgh iphone/mobile the layout isnt very nice but the utf8 text are displayed fine

    Put in a fix that should address this: https://github.com/jakewaldron/PlexEmail/archive/v0.1.5.zip

  • eadwyneadwyn Posts: 231Members, Plex Pass Plex Pass

    Release v0.2.0

    • The latest release now support Linux (tested) and Mac (not tested).
    • Added ability to configure sorting for each section
    • Cleaned up code a bit
  • dbbdarkdbbdark Posts: 165Members, Plex Pass Plex Pass
    edited March 2015

    I get the e-mail but didn;t see any images running it on linux

  • eadwyneadwyn Posts: 231Members, Plex Pass Plex Pass
    dbbdark wrote on March 8 2015, 12:47 PM: »

    I get the e-mail but didn;t see any images running it on linux

    Hey, could you give me some more information to help troubleshoot?

    Are you using the web portion of the script as well?  If so, are you using the images hosted on your web server or attaching it to the email directly?

    Relevant config values:

    web_enabled

    email_use_web_images

  • eadwyneadwyn Posts: 231Members, Plex Pass Plex Pass

    Hmm, when I tested in on linux I did have issues with images showing up in gmail (it was due to the gmail image proxy and ssl issues on my server), but it looks like you are sending it from and to your server and the images are showing fine on your server.  Did the images show up when you added them to the headers?

    Also, if you want the web portion formatted correctly you will need to put the files in the web folder into plexemail.

    If you wouldn't mind, could you send an email using email_use_web_images = True (I'll PM you my email)

  • drzoidberg33drzoidberg33 Posts: 2,566Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee

    Cannot get this to work on Linux due to sqlite version mismatches.

    Don't want to break python on my system so didn't try much to resolve. Only the very latest versions of Linux have sqlite 3.8.8.3 bundled, Centos 6.6 which I use only has sqlite 3.6.20.

    I see Plex keeps their own version of Python in the /usr/lib/plexmediaserver/Resources folder. Any idea how to use this version to run the script?

  • dbbdarkdbbdark Posts: 165Members, Plex Pass Plex Pass

    I send you the email

  • miniopminiop Posts: 239Members, Plex Pass Plex Pass

    hey eadwyn is it possible if you have many emails to be sent individual and not as cc to all ?

    thanks

  • drzoidberg33drzoidberg33 Posts: 2,566Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee

    Just to explain my previous issue.

    Here is trying to access plugins.db with bundled sqlite3:

    [root@vulcan scripts]# sqlite3 /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Plug-in\ Support/Databases/com.plexapp.plugins.library.db
    SQLite version 3.6.20
    Enter ".help" for instructions
    Enter SQL statements terminated with a ";"
    sqlite> .databases
    Error: file is encrypted or is not a database
    sqlite> .quit
     

    Here is with latest downloaded binary:

    [root@vulcan scripts]# sqlite3.8.8.3 /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Plug-in\ Support/Databases/com.plexapp.plugins.library.db
    SQLite version 3.8.8.3 2015-02-25 13:29:11
    Enter ".help" for usage hints.
    sqlite> .databases
    seq  name             file                                                      
    --- 
    
     
    
    0    main             /var/lib/plexmediaserver/Library/Application Support/Plex 
    sqlite> .quit

    I'll take a look at the code during the week and see if I can rather interface with the XML API instead of connecting directly to the db.

  • eadwyneadwyn Posts: 231Members, Plex Pass Plex Pass
    dbbdark wrote on March 8 2015, 8:44 PM: »

    I send you the email

    Thanks. Do you have the following values configured in the config file:

    web_domain

    web_path

  • eadwyneadwyn Posts: 231Members, Plex Pass Plex Pass
    drzoidberg33 wrote on March 8 2015, 8:58 PM: »

    Just to explain my previous issue.

    Here is trying to access plugins.db with bundled sqlite3:

    [root@vulcan scripts]# sqlite3 /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Plug-in\ Support/Databases/com.plexapp.plugins.library.db
    SQLite version 3.6.20
    Enter ".help" for instructions
    Enter SQL statements terminated with a ";"
    sqlite> .databases
    Error: file is encrypted or is not a database
    sqlite> .quit
     

    Here is with latest downloaded binary:

    [root@vulcan scripts]# sqlite3.8.8.3 /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Plug-in\ Support/Databases/com.plexapp.plugins.library.db
    SQLite version 3.8.8.3 2015-02-25 13:29:11
    Enter ".help" for usage hints.
    sqlite> .databases
    seq  name             file                                                      
    --- 
    
     
    
    0    main             /var/lib/plexmediaserver/Library/Application Support/Plex 
    sqlite> .quit

    I'll take a look at the code during the week and see if I can rather interface with the XML API instead of connecting directly to the db.

    Taking a look now to see an easy way to use an alternative version of python without messing up the default version.  Testing it now with make altinstall and virtualenv

  • drzoidberg33drzoidberg33 Posts: 2,566Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee
    eadwyn wrote on March 8 2015, 9:14 PM: »

    Taking a look now to see an easy way to use an alternative version of python without messing up the default version.  Testing it now with make altinstall and virtualenv

    Thanks appreciate it. I'm sure many people that run Linux servers will run into this same problem.

  • eadwyneadwyn Posts: 231Members, Plex Pass Plex Pass
    edited March 2015
    drzoidberg33 wrote on March 8 2015, 9:22 PM: »

    Thanks appreciate it. I'm sure many people that run Linux servers will run into this same problem.

    Could you also give me your current version of python: 

    python -V

    And version of the python sqlite: 

    python
    import sqlite3
    sqlite3.version
    sqlite3.sqlite_version
    

    Thanks!

  • drzoidberg33drzoidberg33 Posts: 2,566Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee
    eadwyn wrote on March 8 2015, 9:37 PM: »

    Could you also give me your current version of python: 

    python -V

    And version of the python sqlite: 

    python
    import sqlite3
    sqlite3.version
    sqlite3.sqlite_version
    

    Thanks!

    Here you go:

    [root@vulcan ~]# python --version
    Python 2.6.6
    [root@vulcan ~]# python
    Python 2.6.6 (r266:84292, Jan 22 2014, 09:37:14) 
    [GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import sqlite3
    >>> sqlite3.version
    '2.4.1'
    >>> sqlite3.sqlite_version
    '3.6.20'
  • eadwyneadwyn Posts: 231Members, Plex Pass Plex Pass

    drzoidberg33: Could you try the following:

    Install virtualenv if you don't have it:

    sudo pip install virtualenv
    

    Then download and altinstall python 2.7.9:

    cd ~/downloads
    wget https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz
    tar -xvf Python-2.7.9.tgz
    cd Python-2.7.9
    ./configure
    make
    sudo make altinstall
    

    Then make a new virtualenv:

    cd ~/plexemail/scripts (or wherever your scripts folder is for plexemail)
    sudo virtualenv --python=/usr/local/bin/python2.7 pevenv
    

    Lastly try running the script again:

    pevenv/bin/python ./plexEmail.py
    
  • eadwyneadwyn Posts: 231Members, Plex Pass Plex Pass
    dbbdark wrote on March 8 2015, 8:44 PM: »

    I send you the email

    I think I figured it out.  Could you add http:// to the start of web_domain?

  • eadwyneadwyn Posts: 231Members, Plex Pass Plex Pass
    miniop wrote on March 8 2015, 8:50 PM: »

    hey eadwyn is it possible if you have many emails to be sent individual and not as cc to all ?

    thanks

    Hey, there is a new config value in the latest release: https://github.com/jakewaldron/PlexEmail/archive/v0.2.4.zip

    email_individually

  • miniopminiop Posts: 239Members, Plex Pass Plex Pass
    edited March 2015

    didn't see that ... amazing !! thanks!!

  • dbbdarkdbbdark Posts: 165Members, Plex Pass Plex Pass
    eadwyn wrote on March 8 2015, 11:11 PM: »

    I think I figured it out.  Could you add http:// to the start of web_domain?

    |

    You are the man!!! i added http:// also did:

    python -V

    And version of the python sqlite: 

    python
    import sqlite3
    sqlite3.version
    sqlite3.sqlite_version

    And :

    apt-get install python-virtualenv
    apt-get install python-pip

Sign In or Register to comment.