Maraschino for Plex - A Frontend for all your usenet tools now with Plex support

Okay, that fixed that error, but now I get an Internal Server error when I add my Plex ID and password.  

The only time that has ever happened to me was with wrong username or password. I have now tried to add better error handling, hoping it works but to be honest I knew this last big change could bring some errors.

I have tried using both my Plex ID and email for the user name and always the same error.  Here is the contents of the log file as well.

Apr-11 13:50:10 :: INFO     :: Opening database at: C:\maraschino\maraschino.db
Apr-11 13:50:10 :: WARNING  :: Opening database failed
Apr-11 13:50:10 :: WARNING  :: Checking if PATH exists: C:\maraschino\maraschino.db
Apr-11 13:50:10 :: INFO     :: Database successfully initialised
Apr-11 13:50:11 :: INFO     :: Creating dir C:\maraschino\cache	rakt\shows
Apr-11 13:50:11 :: INFO     :: Creating dir C:\maraschino\cache	rakt\movies
Apr-11 13:50:12 :: INFO     :: UPDATER :: Checking for updates
Apr-11 13:50:12 :: INFO     :: Starting Maraschino on 0.0.0.0:7000
Apr-11 13:50:12 :: INFO     :: Plex :: missing myPlex username or password
Apr-11 13:50:14 :: INFO     :: UPDATER :: Up to date
Apr-11 13:50:19 :: WARNING  :: Could not retrieve number of columns settings. Defaulting to 3.
Apr-11 13:51:00 :: INFO     :: Plex :: Successfully saved Plex credentials
Apr-11 13:51:00 :: INFO     :: Plex :: Updating plex server information
Apr-11 13:51:01 :: ERROR    :: Plex :: Failed to update plex servers in db: '@name'
Apr-11 13:51:36 :: INFO     :: Plex :: Updating plex server information
Apr-11 13:51:38 :: ERROR    :: Plex :: Failed to update plex servers in db: '@name'
Apr-11 13:52:02 :: INFO     :: Plex :: Updating plex server information
Apr-11 13:52:04 :: ERROR    :: Plex :: Failed to update plex servers in db: '@name'

Your first point is noted, I am planning on adding this feature but I have not yet since I only added the ability to change sections in the recent added modules less than a day ago.

You're right, I'm rude with you :)

Not sure what I can do regarding the auto fill in safari, I have never seen or heard of this problem in maraschino. If you know of a possible solution please let me know, but can you just tell safari to not auto fill that section? Why would it put "Plex" in there anyway?

I'm not sure about the problem but I would have said it's due to the field name but it seems it is "sickbeard_api". And the problem doesn't occur on my iMac but on my Macbook. Let me check tomorrow and comeback to you.

Thanks.

I have tried using both my Plex ID and email for the user name and always the same error.  Here is the contents of the log file as well.

Apr-11 13:50:10 :: INFO     :: Opening database at: C:\maraschino\maraschino.db
Apr-11 13:50:10 :: WARNING  :: Opening database failed
Apr-11 13:50:10 :: WARNING  :: Checking if PATH exists: C:\maraschino\maraschino.db
Apr-11 13:50:10 :: INFO     :: Database successfully initialised
Apr-11 13:50:11 :: INFO     :: Creating dir C:\maraschino\cache	rakt\shows
Apr-11 13:50:11 :: INFO     :: Creating dir C:\maraschino\cache	rakt\movies
Apr-11 13:50:12 :: INFO     :: UPDATER :: Checking for updates
Apr-11 13:50:12 :: INFO     :: Starting Maraschino on 0.0.0.0:7000
Apr-11 13:50:12 :: INFO     :: Plex :: missing myPlex username or password
Apr-11 13:50:14 :: INFO     :: UPDATER :: Up to date
Apr-11 13:50:19 :: WARNING  :: Could not retrieve number of columns settings. Defaulting to 3.
Apr-11 13:51:00 :: INFO     :: Plex :: Successfully saved Plex credentials
Apr-11 13:51:00 :: INFO     :: Plex :: Updating plex server information
Apr-11 13:51:01 :: ERROR    :: Plex :: Failed to update plex servers in db: '@name'
Apr-11 13:51:36 :: INFO     :: Plex :: Updating plex server information
Apr-11 13:51:38 :: ERROR    :: Plex :: Failed to update plex servers in db: '@name'
Apr-11 13:52:02 :: INFO     :: Plex :: Updating plex server information
Apr-11 13:52:04 :: ERROR    :: Plex :: Failed to update plex servers in db: '@name'

Oh man, found a small little typo that would have broken things for people with more than one server associated to their plex account. Sorry about that.

i downloaded from git & wrote over the old version and now and can't start anything :-( i get this in the terminal 

unknowne80688cfc452:maraschino-plexNEW MacPro10$ python Maraschino.py

21:57:16 :: INFO :: Opening database at: /Users/MacPro10/maraschino-plexNEW/maraschino.db

21:57:16 :: WARNING :: Opening database failed

21:57:16 :: WARNING :: Checking if PATH exists: /Users/MacPro10/maraschino-plexNEW/maraschino.db

21:57:16 :: INFO :: Database successfully initialised

21:57:16 :: INFO :: Creating dir /Users/MacPro10/maraschino-plexNEW/cache/trakt/shows

21:57:16 :: INFO :: Creating dir /Users/MacPro10/maraschino-plexNEW/cache/trakt/movies

21:57:16 :: INFO :: UPDATER :: Checking for updates

21:57:16 :: INFO :: Starting Maraschino on 0.0.0.0:7000

21:57:16 :: INFO :: Plex :: missing myPlex username or password

Traceback (most recent call last):

  File "Maraschino.py", line 192, in

    main()

  File "Maraschino.py", line 188, in main

    maraschino.start()

  File "/Users/MacPro10/maraschino-plexNEW/maraschino/__init__.py", line 203, in start

    SERVER.start()

  File "/Users/MacPro10/maraschino-plexNEW/lib/wsgiserver/wsgiserver2.py", line 1824, in start

    raise socket.error(msg)

socket.error: No socket could be created

???? :-( and an INTERNAL ERROR in the browser, any ideas?

i downloaded from git & wrote over the old version and now and can't start anything :-( i get this in the terminal 

unknowne80688cfc452:maraschino-plexNEW MacPro10$ python Maraschino.py

21:57:16 :: INFO :: Opening database at: /Users/MacPro10/maraschino-plexNEW/maraschino.db

21:57:16 :: WARNING :: Opening database failed

21:57:16 :: WARNING :: Checking if PATH exists: /Users/MacPro10/maraschino-plexNEW/maraschino.db

21:57:16 :: INFO :: Database successfully initialised

21:57:16 :: INFO :: Creating dir /Users/MacPro10/maraschino-plexNEW/cache/trakt/shows

21:57:16 :: INFO :: Creating dir /Users/MacPro10/maraschino-plexNEW/cache/trakt/movies

21:57:16 :: INFO :: UPDATER :: Checking for updates

21:57:16 :: INFO :: Starting Maraschino on 0.0.0.0:7000

21:57:16 :: INFO :: Plex :: missing myPlex username or password

Traceback (most recent call last):

  File "Maraschino.py", line 192, in

    main()

  File "Maraschino.py", line 188, in main

    maraschino.start()

  File "/Users/MacPro10/maraschino-plexNEW/maraschino/__init__.py", line 203, in start

    SERVER.start()

  File "/Users/MacPro10/maraschino-plexNEW/lib/wsgiserver/wsgiserver2.py", line 1824, in start

    raise socket.error(msg)

socket.error: No socket could be created

???? :-( and an INTERNAL ERROR in the browser, any ideas?

This error is when the server fails to start, most likely to do with the port being used. If you didnt shutdown maraschino before updating it, the old one would still be running.

Oh man, found a small little typo that would have broken things for people with more than one server associated to their plex account. Sorry about that.

Cool. All fixed now! :)

This error is when the server fails to start, most likely to do with the port being used. If you didnt shutdown maraschino before updating it, the old one would still be running.

That did it :-) thanks!! love the updated"on deck" too :-)

Okay one more thing and I'm done. I swear.  It's more of an annoyance.  When you click on the titles of the Couch Potato and Sickbeard modules, it goes to each respective server.  The link for the Headphones title just goes to the Maraschino URL.  Can we get that updated?

Thanks.

nice work, thank you for it.

I found a bug with webroot

ex: i am using webroot of http://ip:7000/maraschino

all modules load, but not a single picture form plex.

reason for the is that images use this URL structure ex:

http://IP:7000/xhr/plex/img/library/metadata/33935/thumb/1397299261/

this URL does not include webroot information.

if URL is chnaged to this

http://IP:7000/maraschino/xhr/plex/img/library/metadata/33935/thumb/1397299261/

image will load just fine

additional problem (which is probably maraschino design related) is loading it behind https reverse proxy (i use nginx for that), modules take a very long time to load, or they do not load at all.

 

I know this is slightly off-topic, but since the Maraschino forums are deserted i thought this might work...

I'm writing a custom module and have the Poll frequency set to 5 seconds.  However, it's only refreshing every 360 seconds.  The SABnzbd+ module is set to 10 seconds and that seems to be refreshing right on schedule.

Does anyone know if there is any documentation on how this is supposed to work???

Thanks.

Okay one more thing and I'm done. I swear.  It's more of an annoyance.  When you click on the titles of the Couch Potato and Sickbeard modules, it goes to each respective server.  The link for the Headphones title just goes to the Maraschino URL.  Can we get that updated?

Thanks.

nice work, thank you for it.

I found a bug with webroot

ex: i am using webroot of http://ip:7000/maraschino

all modules load, but not a single picture form plex.

reason for the is that images use this URL structure ex:

http://IP:7000/xhr/plex/img/library/metadata/33935/thumb/1397299261/

this URL does not include webroot information.

if URL is chnaged to this

http://IP:7000/maraschino/xhr/plex/img/library/metadata/33935/thumb/1397299261/

image will load just fine

additional problem (which is probably maraschino design related) is loading it behind https reverse proxy (i use nginx for that), modules take a very long time to load, or they do not load at all.

 

Noted, i'll take a look in the next few days.

I know this is slightly off-topic, but since the Maraschino forums are deserted i thought this might work...

I'm writing a custom module and have the Poll frequency set to 5 seconds.  However, it's only refreshing every 360 seconds.  The SABnzbd+ module is set to 10 seconds and that seems to be refreshing right on schedule.

Does anyone know if there is any documentation on how this is supposed to work???

Thanks.

Unfortunately no documentation Bob. Doesn't even make sense for 5 seconds to become 6 minutes and I am not sure if this type of conversion happens anywhere in the code but I am happy to help if I can. PM me if you need.

@gugahoi Thank you very much it's all working good now. I'm really happy with the final result.

Pushed a few big changes today. I know there will be bugs as I have been perfecting the communication handling with plex.tv so that things can fail gracefully and inform the user why it might have happened. There is also now the ability to set the preferred section for each recently added module.

As always feedback is welcome and encouraged!

edit: Also forgot to mention Maraschino should register properly with plex devices now and will show the icon for the OS it is running under:

![post-226725-0-67727900-1397911562.png|690x399](upload://rzkLHYZ5HYPWcNxs3EnrPTDF40M.png)

nice work, thank you for it.

I found a bug with webroot

ex: i am using webroot of http://ip:7000/maraschino

all modules load, but not a single picture form plex.

reason for the is that images use this URL structure ex:

http://IP:7000/xhr/plex/img/library/metadata/33935/thumb/1397299261/

this URL does not include webroot information.

if URL is chnaged to this

http://IP:7000/maraschino/xhr/plex/img/library/metadata/33935/thumb/1397299261/

image will load just fine

additional problem (which is probably maraschino design related) is loading it behind https reverse proxy (i use nginx for that), modules take a very long time to load, or they do not load at all.

 

Images via webroot should be fixed now.

moving away from sickbeard and over to NZBDrone

would be nice to have that plugged in too

thx

p.s.

should be achievable using the API

https://github.com/NzbDrone/NzbDrone/wiki/API

17:55:15 :: INFO :: Plex :: Successfully saved Plex credentials
17:55:15 :: INFO :: Plex :: Updating plex server information
17:55:16 :: INFO :: Plex :: Adding PlexServer OFFICE to db
17:55:17 :: INFO :: Switched active server to ID 1
17:55:17 :: ERROR :: Plex :: Failed to reach server: [Errno 11001] getaddrinfo failed
17:56:17 :: INFO :: Plex :: missing myPlex username or password
17:56:27 :: INFO :: Plex :: Updating plex server information
17:56:29 :: INFO :: Plex :: Updating PlexServer OFFICE in db
17:56:29 :: ERROR :: Plex :: Failed to reach server: [Errno 11001] getaddrinfo failed
 
This is the error I am receiving trying to run this on the same server as plex media server.  

Installed this last night and it’s brilliant. Keep up the great work




Sent from my GT-I9505 using Tapatalk

gugahoi,

Awesome work! Couple things:

1. I have this running on a Windows 7 box. I would like to run it without the console window. However, when I change the extension from py to pyw the script won't start up at all. 

2. I cannot get this to connect to plex. I think it might have something to do with plex cache not being in the default location. I had to change mine to another drive as the cache was taking up some serious space. (https://forums.plex.tv/topic/24575-support-for-storing-application-support-files-anywhere/#entry155038)

Let me know if I can test anything for you. 

Okay, finally got it to run and get my information but for some reason it just will not show any colums! See's something is playing but that's bout it. The log looks like this:

[root@media maraschino-plex]# python Maraschino.py
19:23:32 :: INFO :: Opening database at: /var/www/html/maraschino-plex/maraschino.db
19:23:32 :: WARNING :: Opening database failed
19:23:32 :: WARNING :: Checking if PATH exists: /var/www/html/maraschino-plex/maraschino.db
19:23:32 :: INFO :: Database successfully initialised
19:23:32 :: INFO :: Creating dir /var/www/html/maraschino-plex/cache/trakt/shows
19:23:32 :: INFO :: Creating dir /var/www/html/maraschino-plex/cache/trakt/movies
19:23:33 :: INFO :: UPDATER :: Checking for updates
19:23:33 :: INFO :: Starting Maraschino on 0.0.0.0:7000
19:23:33 :: INFO :: Plex :: missing myPlex username or password
19:23:34 :: INFO :: UPDATER :: Up to date
19:23:40 :: WARNING :: Could not retrieve number of columns settings. Defaulting to 3.
19:23:51 :: INFO :: Plex :: Successfully saved Plex credentials
19:23:51 :: INFO :: Plex :: Updating plex server information
19:23:52 :: INFO :: Plex :: Adding PlexServer Media to db
19:23:53 :: INFO :: Plex :: Adding PlexServer Robbie-PC to db
19:23:53 :: INFO :: Switched active server to ID 1
19:23:54 :: INFO :: Plex :: Successfully updated  sections
/var/www/html/maraschino-plex/modules/plex.py:157: DeprecationWarning: In future flask releases etags will no longer be generated for file objects passed to the send_file function because this behaviour was unreliable.  Pass filenames instead if possible, otherwise attach an etag yourself based on another value return send_file(img, mimetype='image/jpeg')
19:23:57 :: WARNING :: Could not retrieve number of columns settings. Defaulting to 3.
19:24:09 :: INFO :: Switched active server to ID 1
19:24:16 :: WARNING :: Could not retrieve number of columns settings. Defaulting to 3.
19:25:04 :: INFO :: Switched active server to ID 1
19:25:07 :: INFO :: Switched active server to ID 2
19:25:08 :: INFO :: Switched active server to ID 1

Move your mouse to the upper left corner of the browser window and a gear icon should appear.  Click on that and you can add modules to the page.