psyciknz / NextPVR.bundle

Plex Channel for viewing NextPVR content
29 stars 4 forks source link

Live Menu leads to plugin not repsonding #16

Open shqiperih opened 6 years ago

shqiperih commented 6 years ago

It seems that the live menu fails when nextpvr has a lot of channels setup. I believe this has something to do with a timeout. I thought it was at the urllib level so i included a timeout parameter there but to no avail. So i think the timeout comes from PLex, i had read that there is a hardcoded 20 second timeout in plex. Not sure of how to fix this. The channels load fine in group list. Also when selecting the channels from the group lists it seems to default to the first entry on the group not the channel one selected.

psyciknz commented 6 years ago

How many channels are we taking about?


From: shqiperih notifications@github.com Sent: Tuesday, April 17, 2018 11:19:03 AM To: psyciknz/NextPVR.bundle Cc: Subscribed Subject: [psyciknz/NextPVR.bundle] Live Menu leads to plugin not repsonding (#16)

It seems that the live menu fails when nextpvr has a lot of channels setup. I believe this has something to do with a timeout. I thought it was at the urllib level so i included a timeout parameter there but to no avail. So i think the timeout comes from PLex, i had read that there is a hardcoded 20 second timeout in plex. Not sure of how to fix this. The channels load fine in group list. Also when selecting the channels from the group lists it seems to default to the first entry on the group not the channel one selected.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/psyciknz/NextPVR.bundle/issues/16, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AFGkc3PB0H8dyiRP-Y-LrDx_72bh5-XDks5tpSbngaJpZM4TXZfP.

shqiperih commented 6 years ago

Almost 15000, Most of them being VOD links.

psyciknz commented 6 years ago

Oh right. I guess the only way to deal with it is paging.

Or use groups to further whittle the list down.

I doubt increasing the timeout is anything i Can control


From: shqiperih notifications@github.com Sent: Tuesday, April 17, 2018 11:40:36 AM To: psyciknz/NextPVR.bundle Cc: psyciknz; Comment Subject: Re: [psyciknz/NextPVR.bundle] Live Menu leads to plugin not repsonding (#16)

Almost 15000, Most of them being VOD links.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/psyciknz/NextPVR.bundle/issues/16#issuecomment-381783397, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AFGkc3-ySCVc47k2v07TjC9_hMFUwYO7ks5tpSv0gaJpZM4TXZfP.

shqiperih commented 6 years ago

That is what i think as well -- either a way for live menu to start with groups , or the groups menu to have the same functionality as live tv (including EPG data which the current group menu doesn't seem to have).

With that being said can you also check on why whenever you click on a channel to play the actual playing channel defaults to the first entry in the list and not the channel you clicked on.

I will try and see what i can do on the code but while i know some python i have no knowledge of any kind for plex api.

Let me know if i can help in any way.

thanks!

shqiperih commented 6 years ago

I tried to emulate the same code in the 'live' function in the 'channel list' one but i have had no luck. Any ideas?

psyciknz commented 6 years ago

I thought they pulled channel information from quite different nextpvr api calls, one being rest, the other being xml?

psyciknz commented 6 years ago

Yeah channel group is : url = PVR_URL + 'public/GuideService/Listing' live is url = PVR_URL + 'services?method=channel.listings.current&sid=plex&client=%s' % clientident

One is xml (live), the other is json.

So in the json, you'll have to find the epg data