2021-03-25, 23:23
(2021-03-25, 22:50)Botster Wrote:(2021-03-25, 20:29)Botster Wrote: I don't know how tech savvy you are, but you can fix it on your local copy to get it working if you want.
The issue is in scraper.py. It is found in the Kodi working folder (on Linux its ~/.kodi) under addons/plugin.video.fox.news/resources/lib.
You'll need to replace lines 113-121 (9 lines total):
Do not change that file just yet. It appears to cause an issue playing "Latest" episodes. I'm still looking into it.
Got it. This is what those 9 lines need to be replaced with:
Quote: if type(a["media-group"]["media-content"]) is list: # Latest
for b in a["media-group"]["media-content"]:
if( b["@attributes"]["type"] == 'video/mp4') and (b["media-category"]["@attributes"]["label"] == "PDL_HD"):
url = b["@attributes"]["url"]
break
if url == '':
for b in a["media-group"]["media-content"]:
if( b["@attributes"]["type"] == 'application/x-mpegURL'):
url = b["@attributes"]["url"]
break
else: # Full Episodes
b = a["media-group"]["media-content"]
if (b["@attributes"]["type"] == 'video/mp4') and (b["media-category"]["@attributes"]["label"] == "PDL_HD"):
url = b["@attributes"]["url"]
if url == '' and (b["@attributes"]["type"] == 'application/x-mpegURL'):
url = b["@attributes"]["url"]