2010-10-22, 13:15
Hi VictorV!
I'm pretty new to XBMC, and plugins to it, but i do have some knowklade in Python
the addon do accualy work pretty well, "Channels" and "Radio" seems like is working
Podcasts too, but there is a litle bug there, i get an error if the rss feed is empty, so, i'm wondring where the contents of videocasts.xml is from ('hardcoded' or from a website?)
Programs is however broken, the script dosnt parse the videos right, but i can accualy watch some of it... eh.. but it isn't exactly the one i clicked.
i havn't lookd that much on it yet, but that's what i have found out
edit: 23. 10. 2010 04:17
okey, so i have had another look at it, and it looks like it's the website structure itself on nrk.no that has changed
i think most of the changes has to be done in api_nrk.py
http://oddstr13.openshell.no/paste/OHd6ZW5qdXFwMQ i have added a few comments, with URL examples i think lead to the right pages, but i don't know if it's the right ones
edit2: 24.10. 2010 00:00
VictorV: yes, a breakdown of what the regexes does would be werry helpfull, and maybe a litle pointer on what's supos'd to show up on the difrent pages (get_all_shows, get_live_shows, get_shows_by_theme and so on)
edit3: 24.10. 2010 17:52
i think this dos the trick of getting the items from http://www.nrk.no/nett-tv/bokstav/@/
but i'm not 100% sure what results extract.catalog is supos'd to return
http://oddstr13.openshell.no/paste/dWV3cGJubzl4aw
I'm pretty new to XBMC, and plugins to it, but i do have some knowklade in Python
the addon do accualy work pretty well, "Channels" and "Radio" seems like is working
Podcasts too, but there is a litle bug there, i get an error if the rss feed is empty, so, i'm wondring where the contents of videocasts.xml is from ('hardcoded' or from a website?)
Programs is however broken, the script dosnt parse the videos right, but i can accualy watch some of it... eh.. but it isn't exactly the one i clicked.
i havn't lookd that much on it yet, but that's what i have found out
Code:
06:54:06 T:4444 M:2028183552 NOTICE: "exceptions.UnboundLocalError in parse_feed at line 114 in file","plugin://NRK_API/xbmcplugin_podcast.py"," local variable 'ok' referenced before assignment"
edit: 23. 10. 2010 04:17
okey, so i have had another look at it, and it looks like it's the website structure itself on nrk.no that has changed
i think most of the changes has to be done in api_nrk.py
http://oddstr13.openshell.no/paste/OHd6ZW5qdXFwMQ i have added a few comments, with URL examples i think lead to the right pages, but i don't know if it's the right ones
edit2: 24.10. 2010 00:00
VictorV: yes, a breakdown of what the regexes does would be werry helpfull, and maybe a litle pointer on what's supos'd to show up on the difrent pages (get_all_shows, get_live_shows, get_shows_by_theme and so on)
edit3: 24.10. 2010 17:52
i think this dos the trick of getting the items from http://www.nrk.no/nett-tv/bokstav/@/
but i'm not 100% sure what results extract.catalog is supos'd to return
http://oddstr13.openshell.no/paste/dWV3cGJubzl4aw