oskameDEV / NHKworld.bundle

Plex channel plugin for NHK World News (LIVE & Video On Demand)
7 stars 0 forks source link

Watch Live Now - Spinning when trying to play #4

Open uberfunk opened 5 years ago

uberfunk commented 5 years ago

Watch Live Now doesn't seem to work for the past few days. I just get a spinning wheel when trying to play it through the Plex client. So i checked both Mac and Windows and it is the same - spinning wheel.

On Windows, it doesn't show an error message but on Mac it shows "Conversion failed. The transcoder exited due to an error". Did NHK change something or is this a server-side issue?

oskameDEV commented 5 years ago

Just got back from a short vacation. I have the same problem here. Will write a better bit of code to offer some mirrors for the livestream perhaps. Try to do it this weekend.

oskameDEV commented 5 years ago

As of yet I have no clue what's wrong. I checked the log but the error that shows up has always been there and never stopped things from working. Also any stream I try that plays fine in the browser results in the same error inside Plex's channel.

2019-04-24 12:49:16,428 (700009750000) :  DEBUG (runtime:814) - Found route matching /video/nhk_world/stream
2019-04-24 12:49:16,430 (700009750000) :  DEBUG (services:603) - No service found for URL 'https://b-nhkwtvglobal-i.akamaihd.net/hls/live/263941-b/nhkwtvglobal/index_2100.m3u8'
2019-04-24 12:49:16,431 (700009750000) :  DEBUG (services:618) - No matching services found for 'https://b-nhkwtvglobal-i.akamaihd.net/hls/live/263941-b/nhkwtvglobal/index_2100.m3u8'
uberfunk commented 5 years ago

After a little sniffing, seems the URL is now this...? https://nhkwlive-xjp.akamaized.net/hls/live/2003458/nhkwlive-xjp/index_1180.m3u8

uberfunk commented 5 years ago

FYI, to get it working again, I changed the liveURL in the init.py file to:

# ADD LIVE STREAM OBJECT FIRST
item = Dict['channels'][0]
# SET URL
# IF USER WANTS HD
liveURL = item['url']
if force_HD:
    liveURL = 'https://nhkwlive-xjp.akamaized.net/hls/live/2003458/nhkwlive-xjp/index_2100.m3u8'
oskameDEV commented 5 years ago

I had forgotten I hard coded that HD stream. I'll have to remove that.

Channels in Plex are probably going away pretty soon, the AppleTV/other TVs Beta no longer have Channels/Plugins in the menu, unless they hide that deep in some menu I haven't come across. Sigh.

Will update in a short while to fix this for other users too.