Enigma2 support for Plex DVR/LiveTV!

Hi @andyblac1974, I’m still stuck with my email.utils issue. Any help please?

@radar said:
Hi @andyblac1974, I’m still stuck with my email.utils issue. Any help please?

sorry but I don’t use this in my plugin, not sure where you getting that from. can take a photo of the screen screen if that is easier, that may help me.

@andyblac1974 said:

@radar said:
Hi @andyblac1974, I’m still stuck with my email.utils issue. Any help please?

sorry but I don’t use this in my plugin, not sure where you getting that from. can take a photo of the screen screen if that is easier, that may help me.

I also saw this once when I tried to install by copying code instead of opkg install. And you did see he posted logs? It said line 16 in ssdp.py, and browsing the code in git you can clearly see “from email.utils import formatdate” on line 16. This is in turn used on line 160: “response.append(‘DATE: %s’ % formatdate(timeval=None, localtime=False, usegmt=True))”

Yes, you can find it in PlexDVRAPI/src/ssdp.py

@rockard said:

@andyblac1974 said:

@radar said:
Hi @andyblac1974, I’m still stuck with my email.utils issue. Any help please?

sorry but I don’t use this in my plugin, not sure where you getting that from. can take a photo of the screen screen if that is easier, that may help me.

I also saw this once when I tried to install by copying code instead of opkg install. And you did see he posted logs? It said line 16 in ssdp.py, and browsing the code in git you can clearly see “from email.utils import formatdate” on line 16. This is in turn used on line 160: “response.append(‘DATE: %s’ % formatdate(timeval=None, localtime=False, usegmt=True))”

@radar said:
Yes, you can find it in PlexDVRAPI/src/ssdp.py

ah, yes sorry, that is a standard python library please to run in telnet on your box, opkg install python-email, it is normally included as standard in E2 images.

OK, I have been able to add the plug-in and start it but Plex cannot find it despite I reboot the box as asked. I also tried to enter my box IP manually with no success.
Note that I can telnet on the IP with port 6083. If I enter manually mi IP:6083, then the following error appears (which means that a problem occured while trying to add the device).

Any idea what’s happening?

I really would need a FULL E2 log file. but 1st check on your e2 box your files have been created. /www/satellite, this is assuming you ran the plugin GUI and followed the instructions.

Sorry but I cannot find the log file so I send the output of the enigma2 executed in debug mode (10.0.1.144 being the IP of the plex server)
And yes, the 4 files have been created in /www/satellite. Note that lineup.json is 372KBytes file. Can it be too large?

10.0.1.144 - - [30/Jun/2017 16:06:20] "GET /discover.json HTTP/1.0" 200 -
10.0.1.144 - - [30/Jun/2017 16:06:29] "GET /discover.json HTTP/1.0" 200 -
10.0.1.144 - - [30/Jun/2017 16:06:39] "GET /discover.json HTTP/1.0" 200 -
10.0.1.144 - - [30/Jun/2017 16:06:44] "GET /discover.json HTTP/1.0" 200 -
10.0.1.144 - - [30/Jun/2017 16:06:49] "GET /discover.json HTTP/1.0" 200 -
[Plex DVR API] file type not coded: /capability
10.0.1.144 - - [30/Jun/2017 16:06:58] "GET /discover.json HTTP/1.0" 200 -
10.0.1.144 - - [30/Jun/2017 16:07:07] "GET /discover.json HTTP/1.0" 200 -
10.0.1.144 - - [30/Jun/2017 16:07:17] "GET /discover.json HTTP/1.0" 200 -
10.0.1.144 - - [30/Jun/2017 16:07:22] code 404, message [Plex DVR API] File not found!
10.0.1.144 - - [30/Jun/2017 16:07:27] "GET /discover.json HTTP/1.0" 404 -
----------------------------------------
Exception happened during processing of request from ('10.0.1.144', 52041)
Traceback (most recent call last):
  File "/usr/lib/python2.7/SocketServer.py", line 284, in _handle_request_noblock
  File "/usr/lib/python2.7/SocketServer.py", line 310, in process_request
  File "/usr/lib/python2.7/SocketServer.py", line 323, in finish_request
  File "/usr/lib/python2.7/SocketServer.py", line 640, in __init__
  File "/usr/lib/python2.7/SocketServer.py", line 693, in finish
  File "/usr/lib/python2.7/socket.py", line 303, in flush
error: [Errno 32] Broken pipe
----------------------------------------
10.0.1.144 - - [30/Jun/2017 16:07:32] "GET /discover.json HTTP/1.0" 200 -
10.0.1.144 - - [30/Jun/2017 16:07:37] "GET /discover.json HTTP/1.0" 200 -
10.0.1.144 - - [30/Jun/2017 16:07:46] "GET /discover.json HTTP/1.0" 200 -
10.0.1.144 - - [30/Jun/2017 16:07:55] "GET /discover.json HTTP/1.0" 200 -
10.0.1.144 - - [30/Jun/2017 16:08:05] "GET /discover.json HTTP/1.0" 200 -
10.0.1.144 - - [30/Jun/2017 16:08:14] "GET /discover.json HTTP/1.0" 200 -
10.0.1.144 - - [30/Jun/2017 16:08:24] "GET /discover.json HTTP/1.0" 200 -
10.0.1.144 - - [30/Jun/2017 16:08:33] "GET /discover.json HTTP/1.0" 200 -
10.0.1.144 - - [30/Jun/2017 16:08:43] "GET /discover.json HTTP/1.0" 200 -
10.0.1.144 - - [30/Jun/2017 16:08:52] "GET /discover.json HTTP/1.0" 200 -
10.0.1.144 - - [30/Jun/2017 16:09:02] "GET /discover.json HTTP/1.0" 200 -
10.0.1.144 - - [30/Jun/2017 16:09:11] "GET /discover.json HTTP/1.0" 200 -
10.0.1.144 - - [30/Jun/2017 16:09:21] "GET /discover.json HTTP/1.0" 200 -
10.0.1.144 - - [30/Jun/2017 16:09:31] "GET /discover.json HTTP/1.0" 200 -
10.0.1.144 - - [30/Jun/2017 16:09:40] "GET /discover.json HTTP/1.0" 200 -
10.0.1.144 - - [30/Jun/2017 16:09:50] "GET /discover.json HTTP/1.0" 200 -
10.0.1.144 - - [30/Jun/2017 16:09:59] "GET /discover.json HTTP/1.0" 200 -
^[[A10.0.1.144 - - [30/Jun/2017 16:10:09] "GET /discover.json HTTP/1.0" 200 -
10.0.1.144 - - [30/Jun/2017 16:10:18] "GET /discover.json HTTP/1.0" 200 -
10.0.1.144 - - [30/Jun/2017 16:10:28] "GET /discover.json HTTP/1.0" 200 -
10.0.1.144 - - [30/Jun/2017 16:10:37] "GET /discover.json HTTP/1.0" 200 -
10.0.1.144 - - [30/Jun/2017 16:10:42] code 404, message [Plex DVR API] File not found!
10.0.1.144 - - [30/Jun/2017 16:10:47] "GET /discover.json HTTP/1.0" 404 -
----------------------------------------
Exception happened during processing of request from ('10.0.1.144', 52132)
Traceback (most recent call last):
  File "/usr/lib/python2.7/SocketServer.py", line 284, in _handle_request_noblock
  File "/usr/lib/python2.7/SocketServer.py", line 310, in process_request
  File "/usr/lib/python2.7/SocketServer.py", line 323, in finish_request
  File "/usr/lib/python2.7/SocketServer.py", line 640, in __init__
  File "/usr/lib/python2.7/SocketServer.py", line 693, in finish
  File "/usr/lib/python2.7/socket.py", line 303, in flush
error: [Errno 32] Broken pipe
----------------------------------------
10.0.1.144 - - [30/Jun/2017 16:10:53] "GET /discover.json HTTP/1.0" 200 -
10.0.1.144 - - [30/Jun/2017 16:10:58] "GET /discover.json HTTP/1.0" 200 -
AT plugin not found
SerienRecorder plugin not found
EPG Refresh Plugin not found
10.0.1.144 - - [30/Jun/2017 16:11:06] "GET /discover.json HTTP/1.0" 200 -
10.0.1.144 - - [30/Jun/2017 16:11:16] "GET /discover.json HTTP/1.0" 200 -
10.0.1.144 - - [30/Jun/2017 16:11:25] "GET /discover.json HTTP/1.0" 200 -
10.0.1.144 - - [30/Jun/2017 16:11:35] "GET /discover.json HTTP/1.0" 200 -
10.0.1.144 - - [30/Jun/2017 16:11:44] "GET /discover.json HTTP/1.0" 200 -
10.0.1.144 - - [30/Jun/2017 16:11:54] "GET /discover.json HTTP/1.0" 200 -
10.0.1.144 - - [30/Jun/2017 16:12:03] "GET /discover.json HTTP/1.0" 200 -
10.0.1.144 - - [30/Jun/2017 16:12:13] "GET /discover.json HTTP/1.0" 200 -
10.0.1.144 - - [30/Jun/2017 16:12:18] code 404, message [Plex DVR API] File not found!
10.0.1.144 - - [30/Jun/2017 16:12:23] "GET /discover.json HTTP/1.0" 404 -
----------------------------------------
Exception happened during processing of request from ('10.0.1.144', 52174)
Traceback (most recent call last):
  File "/usr/lib/python2.7/SocketServer.py", line 284, in _handle_request_noblock
  File "/usr/lib/python2.7/SocketServer.py", line 310, in process_request
  File "/usr/lib/python2.7/SocketServer.py", line 323, in finish_request
  File "/usr/lib/python2.7/SocketServer.py", line 640, in __init__
  File "/usr/lib/python2.7/SocketServer.py", line 693, in finish
  File "/usr/lib/python2.7/socket.py", line 303, in flush
error: [Errno 32] Broken pipe
----------------------------------------
10.0.1.144 - - [30/Jun/2017 16:12:28] "GET /discover.json HTTP/1.0" 200 -
10.0.1.144 - - [30/Jun/2017 16:12:33] "GET /discover.json HTTP/1.0" 200 -
10.0.1.144 - - [30/Jun/2017 16:12:42] "GET /discover.json HTTP/1.0" 200 -
10.0.1.144 - - [30/Jun/2017 16:12:51] "GET /discover.json HTTP/1.0" 200 -

lets take this private, so not to extend this thread.

Guys, Andy has a Paypal donation button now, be sure to “buy him some beer” or something similar to show your appreciation for his great work and support!

I have a VU+ DUO2 (2x DVB-S Astra/Hotbird). Andy‘s great plugin (thanks a lot) is successfully installed on my VTI 11.0.2. My Windows PLEX Server detect the Tuner without any problems, next step 77 favorites channels are recognized. Next step EPG. I enter my specifications (Screenshots) but nothing happen further. I have patiently waited a day. What I doing wrong?

  • Do I need a special channel list? (Standard search and sorting is installed)
  • Is a special postal code needed for Switzerland?

Here is the step where I do not get any further (Screenshot)

@furrore said:
I have a VU+ DUO2 (2x DVB-S Astra/Hotbird). Andy‘s great plugin (thanks a lot) is successfully installed on my VTI 11.0.2. My Windows PLEX Server detect the Tuner without any problems, next step 77 favorites channels are recognized. Next step EPG. I enter my specifications (Screenshots) but nothing happen further. I have patiently waited a day. What I doing wrong?

  • Do I need a special channel list? (Standard search and sorting is installed)
  • Is a special postal code needed for Switzerland?

Here is the step where I do not get any further (Screenshot)

My very amateurish guess is this: It looks like Plex expects the postal code to consist of 5 characters, and yours only contains 4. Do you have any valid postal code nearby with 5 characters you can use? I think all it’s used for is determining which operators you can choose from when selecting a channel list.

EDIT: I guess what I’m saying is: find a postal code with 5 characters where your TV provider also exists and use that postal code. I guess it means you have to use a German postal code.

Thanks for your reply this was also my first idea, so I have tried a German postal code. Stuttgart PLZ 70173 – but nothing. Also I tried to change to English postcode BL1 like the instruction PDF but no success. My PLEX server version is 1.7.5.4035

Any other ideas?

@furrore said:
Thanks for your reply this was also my first idea, so I have tried a German postal code. Stuttgart PLZ 70173 – but nothing. Also I tried to change to English postcode BL1 like the instruction PDF but no success. My PLEX server version is 1.7.5.4035

Any other ideas?

This is actually a question for Plex DVR, not the Enigma2 plugin, but I just want to double check: did you enter just the numbers “70173”, or did you enter the whole string “Stuttgart PLZ 70173”? If you entered just the numbers and it doesn’t work, I suggest you ask on the Plex DVR forums.

@rockard
just the numbers 70173

I find a solution to fix my problem. The problem was a step before. I must chose country Germany and after that the postal code from Stuttgart. And now it seams to work. Helpfully link to check your provider and postcode: https://www.plex.tv/features/live-tv-dvr/#remodal-channels

glad you got it working.

@rockard said:
Guys, Andy has a Paypal donation button now, be sure to “buy him some beer” or something similar to show your appreciation for his great work and support!

Where is the button? :wink:

There’s a button in the latest version of the plugin, but if it’s ok with Andy, here’s the email/user to donate to: andyblac@icloud.com

major recode of plugin to Version 2.0:

1: no need for /www folders anymore
2: hidden bouquets are now also hidden from Plex. (for example when hiding sections in ABM)
3: channel list is always up to date, for example, if you send a new channel list to the box, plex will see the changes without any user intervention (from PlexDVRAPI plugin).
4: the data files are now stored in /etc/enigma2, so they can be easily backed-up/restored.

wait for you team image to build or download from the source ink in my signature.