Enigma2 support for Plex DVR/LiveTV!

@radar said:

@andyblac1974 said:
yes, should work, get the source files form the link in my signature. just give me credit etc.

I have the following error (translated from french):
Some plugins are not available. SystemPlugins/PlexDVRAPI (no module named email.utils).

would need to see full log.

Did something change in the ordering of the channels the plugin presents to Plex?

Short story long, my PMS started crashing constantly yesterday (crashed seconds after startup), still clueless as to why. In my efforts to get it to work I uninstalled the plugin (which made no difference). Today, my PMS started happily without crashing (no changes made, no idea why it suddenly works), so i re-installed the plugin. Plex says ā€œDevice not foundā€ which is not solved by restarting PMS, but it starts recording things on schedule. However, it will record on the wrong channel. If I click ā€œAdd Deviceā€ it will find my box, and my channels, but the suggested channel mapping is completely off.

On a seperate note, I have a Miraclebox Premium Twin, so it has two tuners. However, when I start the plugin, it says it’s a single tuner box so make sure it’s off, etc, but on the next screen it says 2 tuners. When scheduling recordings it looks like PMS thinks it’s a single tuner box, since it will say recordings conflict when there are only two. It’s a bit confusing.

Hmm, I can see now that the channel ordering is that of the ā€œLast scannedā€ bouquet. When I first added my box, the suggested channel mapping was very good. Some channels were missing, but at least 90% hit rate. I’ll try some more things, including removing the box from Plex (which I’m hesitant to do since it took a long time filtering the channels). Where is the logfile located, if it should be required?

@andyblac1974 said:

@radar said:

@andyblac1974 said:
yes, should work, get the source files form the link in my signature. just give me credit etc.

I have the following error (translated from french):
Some plugins are not available. SystemPlugins/PlexDVRAPI (no module named email.utils).

would need to see full log.
Which logs? From Enigma?

@radar said:

@andyblac1974 said:

@radar said:

@andyblac1974 said:
yes, should work, get the source files form the link in my signature. just give me credit etc.

I have the following error (translated from french):
Some plugins are not available. SystemPlugins/PlexDVRAPI (no module named email.utils).

would need to see full log.
Which logs? From Enigma?

yes please.

Should have asked before: where can I get them? Can’t see them on /var/logs/.

@rockard said:
Did something change in the ordering of the channels the plugin presents to Plex?

Short story long, my PMS started crashing constantly yesterday (crashed seconds after startup), still clueless as to why. In my efforts to get it to work I uninstalled the plugin (which made no difference). Today, my PMS started happily without crashing (no changes made, no idea why it suddenly works), so i re-installed the plugin. Plex says ā€œDevice not foundā€ which is not solved by restarting PMS, but it starts recording things on schedule. However, it will record on the wrong channel. If I click ā€œAdd Deviceā€ it will find my box, and my channels, but the suggested channel mapping is completely off.

On a seperate note, I have a Miraclebox Premium Twin, so it has two tuners. However, when I start the plugin, it says it’s a single tuner box so make sure it’s off, etc, but on the next screen it says 2 tuners. When scheduling recordings it looks like PMS thinks it’s a single tuner box, since it will say recordings conflict when there are only two. It’s a bit confusing.

Hmm, I can see now that the channel ordering is that of the ā€œLast scannedā€ bouquet. When I first added my box, the suggested channel mapping was very good. Some channels were missing, but at least 90% hit rate. I’ll try some more things, including removing the box from Plex (which I’m hesitant to do since it took a long time filtering the channels). Where is the logfile located, if it should be required?

lets take this in stages, what image are you using?, how are you scanning channels ? are you using a pre made bouquet list or a scanner that uses the proper list order like ABM ?.

as for Miraclebox I would need to see a log, but by 2 tuners they both have to be of same type.

@radar said:
Should have asked before: where can I get them? Can’t see them on /var/logs/.

depends on image, normally you have to enable debug mode or similar, try looking in /home/root/logs

Is that enough:

Plugin  SystemPlugins/PlexDRVAPI failed to load: No module named email.utils
Traceback (most recent call last):
  File "/usr/lib/enigma2/python/Components/PluginComponent.py", line 52, in readPluginList
  File "/usr/lib/enigma2/python/Tools/Import.py", line 2, in my_import
  File "/usr/lib/enigma2/python/Plugins/SystemPlugins/PlexDRVAPI/plugin.py", line 22, in <module>
    from ssdp import SSDPServer
  File "/usr/lib/enigma2/python/Plugins/SystemPlugins/PlexDRVAPI/ssdp.py", line 16, in <module>
    from email.utils import formatdate
ImportError: No module named email.utils

@andyblac1974 said:

@rockard said:
Did something change in the ordering of the channels the plugin presents to Plex?

Short story long, my PMS started crashing constantly yesterday (crashed seconds after startup), still clueless as to why. In my efforts to get it to work I uninstalled the plugin (which made no difference). Today, my PMS started happily without crashing (no changes made, no idea why it suddenly works), so i re-installed the plugin. Plex says ā€œDevice not foundā€ which is not solved by restarting PMS, but it starts recording things on schedule. However, it will record on the wrong channel. If I click ā€œAdd Deviceā€ it will find my box, and my channels, but the suggested channel mapping is completely off.

On a seperate note, I have a Miraclebox Premium Twin, so it has two tuners. However, when I start the plugin, it says it’s a single tuner box so make sure it’s off, etc, but on the next screen it says 2 tuners. When scheduling recordings it looks like PMS thinks it’s a single tuner box, since it will say recordings conflict when there are only two. It’s a bit confusing.

Hmm, I can see now that the channel ordering is that of the ā€œLast scannedā€ bouquet. When I first added my box, the suggested channel mapping was very good. Some channels were missing, but at least 90% hit rate. I’ll try some more things, including removing the box from Plex (which I’m hesitant to do since it took a long time filtering the channels). Where is the logfile located, if it should be required?

lets take this in stages, what image are you using?, how are you scanning channels ? are you using a pre made bouquet list or a scanner that uses the proper list order like ABM ?.

as for Miraclebox I would need to see a log, but by 2 tuners they both have to be of same type.

Thanks for a fast reply!

what image are you using?
OpenViX 5.0.020 (2017-06-23)

how are you scanning channels ?
The latest scan was Automatic scan

are you using a pre made bouquet list or a scanner that uses the proper list order like ABM ?.
I don’t know what those things are. I made my bouquets myself in the BouquetEditor in OpenWebif after I scanned for channels. So my box has my three user bouquets and ā€œFavourites (TV)ā€ and ā€œLast Scannedā€.

as for Miraclebox I would need to see a log, but by 2 tuners they both have to be of same type.
Tuner A DVB-C NIM (DVB-C)
Tuner B DVB-C NIM (DVB-C)

I don’t know how to produce a log, sorry. I followed the steps here: Create Enigma2 log file – Gemini-Wiki but all I got was
root@mbtwin:~# init 5 && sleep 15 && enigma2.sh
[Enigma2] PYTHONPATH: /usr/lib/enigma2/python
[Enigma2] DVB_API_VERSION 5 DVB_API_VERSION_MINOR 6
ENIGMA_DEBUG_LVL=4
[MAIN] executing main
enigma2 is the main pvr application… adjust oom score!
TuxTxt cache cleared
^Ccleaning up
TuxTxt cache cleared

I let the plugin create the files, but nothing was logged. /home/root/logs is empty, and nothing relevant in /var/log/messages

ok since your your using OpenViX this is easy, in Service Searching select AutomaticBouquetMaker, and choose your provider (FreeView, FreeSat, etc) setup region etc, and start a scan, this will create the channel list for you.

guys,

just a heads up for those of you with multiple tuner types in your box, am coding it so you can now choose what tuner type to allow plex to see (as only one is supported anyway), because of this you maybe need to ā€˜Update’ your files using the green button after you have chosen your tuner type.


hello again I’ve transferred the latest version folder /usr/Iib/enigma2/python/Plugins/SystemPlugins and then rebooted after this I go to plugins and get the message

some plugins are not available:
extensions/movieorganisor (list index out of range)

and when I look via putty the folder PlexDVRAPI is missing

also when downloaded and unzipped I have PlexDVRAPI-master directory do I copy this to /usr/Iib/enigma2/python/Plugins/SystemPlugins and just remove -master ?

TIA

@britdub said:
hello again I’ve transferred the latest version folder /usr/Iib/enigma2/python/Plugins/SystemPlugins and then rebooted after this I go to plugins and get the message

some plugins are not available:
extensions/movieorganisor (list index out of range)

and when I look via putty the folder PlexDVRAPI is missing

also when downloaded and unzipped I have PlexDVRAPI-master directory do I copy this to /usr/Iib/enigma2/python/Plugins/SystemPlugins and just remove -master ?

TIA

you need to rename the src folder to PlexDVRAPI and transfer just this to /usr/Iib/enigma2/python/Plugins/SystemPlugins. so /usr/Iib/enigma2/python/Plugins/SystemPlugins/PlexDVRAPI

@andyblac1974 said:

@radar said:
Should have asked before: where can I get them? Can’t see them on /var/logs/.

depends on image, normally you have to enable debug mode or similar, try looking in /home/root/logs

@andyblac1974 did you see my logs here?

@andyblac1974 said:
ok since your your using OpenViX this is easy, in Service Searching select AutomaticBouquetMaker, and choose your provider (FreeView, FreeSat, etc) setup region etc, and start a scan, this will create the channel list for you.

I’m from Sweden, and the only providers I can see is Kabel (NL), Virgin (UK) and Virgin IE. Looked around for a bit, but I don’t think there exists an ABM (now I understand what that means) provider for ComHem in Sweden. What’s weird is that the first time I set this up, the channel matching was really good. I don’t know if it is Plex or the plugin that changed, or both.

Hmm, or maybe something changed on the box? There is an ā€œofficial channel numberingā€ from my provider that is overridden/ignored. I can of course do the mapping by hand, but it’s not always obvious which shortname from the guide is which channel on the box.

@rockard said:

@andyblac1974 said:
ok since your your using OpenViX this is easy, in Service Searching select AutomaticBouquetMaker, and choose your provider (FreeView, FreeSat, etc) setup region etc, and start a scan, this will create the channel list for you.

I’m from Sweden, and the only providers I can see is Kabel (NL), Virgin (UK) and Virgin IE. Looked around for a bit, but I don’t think there exists an ABM (now I understand what that means) provider for ComHem in Sweden. What’s weird is that the first time I set this up, the channel matching was really good. I don’t know if it is Plex or the plugin that changed, or both.

Hmm, or maybe something changed on the box? There is an ā€œofficial channel numberingā€ from my provider that is overridden/ignored. I can of course do the mapping by hand, but it’s not always obvious which shortname from the guide is which channel on the box.

I’ll get one of my E2 team (openvix) to connect you, see if we can’t get one made, if you are willing to help with some data from your stream ?

Oh, well that sounds awesome! I’m willing to provide whatever is needed, as long as I understand what to do :slight_smile: I did a factory reset of the box and am in the middle of an automatic scan (which takes ages) to see if it makes a difference.

is this your provider https://en.wikipedia.org/wiki/Com_Hem ?

Provide logs as per this thread
http://www.world-of-satellite.com/showthread.php?38120-Logs-for-unlisted-areas-required-(UK)

or try this to capture the stream.
https://forums.openpli.org/topic/50899-record-complete-transport-stream/#entry713212

@andyblac1974 said:
is this your provider https://en.wikipedia.org/wiki/Com_Hem ?

Provide logs as per this thread
http://www.world-of-satellite.com/showthread.php?38120-Logs-for-unlisted-areas-required-(UK)

or try this to capture the stream.
https://forums.openpli.org/topic/50899-record-complete-transport-stream/#entry713212

Yeah, that’s my provider! I attached a zip containing the files from NIT_analyser, I hope I didn’t screw it up.

A factory reset made no difference, by the way.

little update, if you have multiple tuner types, and try to setup more than one type, you will new be presented with the following message.