[mythtv-users] Plex with MythTV .28

Mark Perkins perkins1724 at hotmail.com
Sun Dec 4 09:59:07 UTC 2016


On 4 December 2016 11:25:24 AM Alan Baker <baker at alanbaker.net> wrote:

> On 12/3/2016 4:35 PM, gregl at nycap wrote:
>>
>>     Just yesterday I reinstalled my system and up dated to 16.04 and Plex
>>     myth bundle runs just fine.. Make sure that your local Ip address is
>>     correct.. I believe it set at 192.168. 210.1 and it needs to be
>>     changed
>>     to your address. That is the only setting that will stop it from
>>     running.. Does it show under channels,if not you may have it in the
>>     wrong folder...
>>
> Thanks, Greg.  Yes, I set the IP address to the correct one.  Plex loads
> the MythTV recordings channel with selections for title, category, and
> date--so far so good. But when I select any of those three, Plex returns
> "This channel is not responding". 8-(
>
> a) nmap doesn't see port 6544. If the plugin communicates on port 6544,
> shouldn't that port be open?
>
> b) The dk.schaumburg-it.plexapp.mythrecordings.log says the following.
> Any ideas?
>
> 2016-11-29 22:05:47,249 (7f2a48f9d700) : INFO (*init*:169) - MythTV
> recordings Started
>
> 2016-11-29 22:05:47,273 (7f2a48f9d700) : DEBUG (networking:166) -
> Requesting 'http://192.168.0.5:6544/Dvr/GetRecordedList?Count=1'
> <http://192.168.0.5:6544/Dvr/GetRecordedList?Count=1%27>
>
> 2016-11-29 22:05:47,276 (7f2a48f9d700) : CRITICAL (sandbox:303) -
> Exception when calling function 'Start' (most recent call last):
> File
> "/usr/lib/plexmediaserver/Resources/Plug-ins-1bef33a/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code/sandbox.py",
> line 294, in call_named_function
> result = f(*args, **kwargs)
> File "/var/lib/plexmediaserver/Library/Application Support/Plex Media
> Server/Plug-ins/MythRecordings.bundle/Contents/Code/__init__.py", line
> 170, in Start
> ValidatePrefs()
> File "/var/lib/plexmediaserver/Library/Application Support/Plex Media
> Server/Plug-ins/MythRecordings.bundle/Contents/Code/__init__.py", line
> 1012, in ValidatePrefs
> if major == 0 and minor < 27:
> UnboundLocalError: local variable 'major' referenced before assignment
>
> 2016-11-29 22:05:47,276 (7f2a48f9d700) : INFO (core:611) - Started plug-in
>
>
>>     _______________________________________________

Alan,  do you have a large-ish number of recordings, ie 1000 and above? And are you using Plex Web or one of the iOS / Android apps.

I had similar issues and eventually worked out that my Web browser (using Plex Web) was timing out after approx 10seconds whereas a year ago my recorded list was taking about 30sec to load.  You can test this by opening a Web browser and navigation to your backend IP address service status port then /Dvr/GetRecordedList

Ie something like:
192.168.1.xxx:6544/Dvr/GetRecordedList

I currently have over 11000 recordings so loading that for me in chrome crashes it with an out of memory error. But if it takes more than about 10sec to load in your browser then I think you are going to have trouble. Even with the iOS and Android apps which I think time out just as quick.

You can also try adding the following line after line 815 of MythRecordings.bundle/Contents/Code/__init__.py

url = url + "?Count=10&Descending=true"

 That will pull only 10 recordings which will be much quicker.  If that works then you probably have the same issue I have.

I never went any further with it so don't have a solution.

Otherwise barring the time out I was able to get both 0.27 and 0.28 to work tonight.  But 0.29 failed with some other issue that I didn't look into yet.

Re the major / minor versioning error,  I think that is caused by the browser caching data.  Try clearing your browser cache or try holding shift down while navigating the links in Plex Web.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20161204/9d73c8df/attachment.html>


More information about the mythtv-users mailing list