This weekend our forum will be unavailable for a few hours due to maintenance.

Deprecated uEPG - Universal EPG Framework
#41
(2020-03-12, 02:32)Lunatixz Wrote:
(2020-03-12, 01:34)Tony5856 Wrote:
(2020-03-11, 21:16)Lunatixz Wrote: I think I spotted your issue... you're converting your "dict" into a "list"? missed that before; in the examples you are reviewing (pluto.tv) I'm serializing a generator object. If your sudo code is the actual item then its a dict and should not be converted into a list.

change:
xbmc.executebuiltin("RunScript(script.module.uepg,json=%s&refresh_path=%s&refresh_interval=%s)"%(urllib.quote(json.dumps(list(Guide_Data))),(sys.argv[0]+"?mode=1"),("7200")))
to:
xbmc.executebuiltin("RunScript(script.module.uepg,json=%s&refresh_path=%s&refresh_interval=%s)"%(urllib.quote(json.dumps([Guide_Data])),(sys.argv[0]+"?mode=1"),("7200")))

PS, I also added the urllib.quote before the refresh path.    
Sounds like you're running an older version of uEPG the current is  v.1.0.6b 
I just updated to v.1.0.6b but still needed to urllib.quote the refresh path.
I don't mean to be a pain, but what is the format for multiple channels?
I am trying this, but it only displays Test Channel 2

Guide_Data ={ 
"channelname": "Test Channel 1", 
"channelnumber": 14, 
"channellogo": "", 
"isfavorite": False, 
"guidedata": [{
    "url": "", 
    "starttime": 1583807560, 
    "endtime": 0, 
    "runtime": 3600, 
    "label": "Test show 1", 
    "label2": "HD", 
    "art": {
        "thumb": ""}, 
    "streamdetails": {
        "video": ""}
    }],
"channelname": "Test Channel 2", 
"channelnumber": 15, 
"channellogo": "", 
"isfavorite": False, 
"guidedata": [{
    "url": "", 
    "starttime": 1583807560, 
    "endtime": 0, 
    "runtime": 3600, 
    "label": "Test show 2", 
    "label2": "HD", 
    "art": {
        "thumb": ""}, 
    "streamdetails": {
        "video": ""}
    }]
}
Reply


Messages In This Thread
uEPG - Universal EPG Framework - by Lunatixz - 2017-09-08, 19:50
RE: uEPG - Universal EPG Module - by Lunatixz - 2017-09-08, 19:50
RE: uEPG - Universal EPG Module - by zoomin - 2020-04-18, 12:42
RE: uEPG - Universal EPG Framework - by Tony5856 - 2020-03-12, 03:27
RE: uEPG - Universal EPG Framework - by umiki - 2020-03-09, 22:35
RE: uEPG - Universal EPG Framework - by umiki - 2020-03-10, 19:21


Logout Mark Read Team Forum Stats Members Help
uEPG - Universal EPG Framework1
This forum uses Lukasz Tkacz MyBB addons.