XBMC Community Forum
[RELEASE] TV Show Next Aired (Script) Addon - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (/forumdisplay.php?fid=151)
+---- Thread: [RELEASE] TV Show Next Aired (Script) Addon (/showthread.php?tid=79493)



- Montellese - 2011-09-06 16:29

I didn't read through this whole thread (so maybe this has already been reported) but the script (version 3.0.2) didn't work for me on latest nightly in Aeon Nox so I took a look at the jsonrpc parsing and found the problem. The following lines are wrong in default.py:

Line 269:
PHP Code:
findtvshowname re.search'"label":"(.*?)","'tvshowitem 

Line 272:
PHP Code:
findpath re.search'"file":"(.*?)","'tvshowitem 

Line 275:
PHP Code:
findthumbnail re.search'"thumbnail":"(.*?)","'tvshowitem 

All of these regular expressions assume that there is no space between the ":" and the next double quote (") which is wrong. Furthermore they assume that the double quote from the next property-name follows right after the comma delimiting the different properties which is wrong as well. The second problem can simply be fixed by removing the last double quote in the regex. The first problem can either be fixed by adding a space between : and " (which is not idiot-proof) or by anticipating that there may or may not be a space in between : and " by changing the regex to
Code:
"label":[ ]?"(.*?)",

So in the end the jsonrpc parsing should look like this:
PHP Code:
for tvshowitem in json_response:
            
logtvshowitem )
            
findtvshowname re.search'"label":[ ]?"(.*?)",'tvshowitem )
            if 
findtvshowname:
                
tvshowname = ( findtvshowname.group(1) )
                
findpath re.search'"file":[ ]?"(.*?)",'tvshowitem )
                if 
findpath:
                    
path = (findpath.group(1))
                
findthumbnail re.search'"thumbnail":[ ]?"(.*?)",'tvshowitem )
                if 
findthumbnail:
                    
thumbnail = (findthumbnail.group(1))
                else:
                    
thumbnail ''
                
self.TVlist.append( ( tvshowname paththumbnail ) ) 

Hope this helps you guys to update the Eden-pre version of this addon.


- ronie - 2011-09-06 22:29

Montellese Wrote:I didn't read through this whole thread (so maybe this has already been reported).

yup, giftie mentioned it a few weeks ago:
http://forum.xbmc.org/showpost.php?p=862311&postcount=272

the issue will be addressed in the next release :-)


- eddiem - 2011-09-07 00:10

Next Aired not displaying, no script error on screen.
XBMCSetup-20110906-5e50c25-master

Pastebin log

Thank You,
Eddie.


- ronie - 2011-09-07 00:37

eddiem Wrote:Next Aired not displaying, no script error on screen.
XBMCSetup-20110906-5e50c25-master

Pastebin log

Thank You,
Eddie.

you need to give the script some time,
it's still busy fetching data online.

once it's finished, the info will show up in the skin.


- Eddage - 2011-09-08 15:10

For some reason this wont return information for Franklin & Bash?!

It's on the website and I have it named the same ("Franklin & Bash", rather than "Franklin and Bash") but it still wont pull the information.

Has anyone got it to work with this show?


- frellAn - 2011-09-08 17:59

How do you launch this at startup without the whole interface freezing up?


- Big_Noid - 2011-09-08 20:26

frellAn Wrote:How do you launch this at startup without the whole interface freezing up?

Code:
XBMC.RunScript(script.tv.show.next.aired,silent=True)

This shouldn't give problems, unless you are also running a few other scripts at start up also. If that is the case you can delay the next aired like this (10 sec example):
Code:
XBMC.AlarmClock(NextAired,XBMC.RunScript(script.tv.show.next.aired,silent=True),​00:00:10,true)



- DR9x - 2011-09-11 16:22

warlion Wrote:im having problem with this addon im using dharma 10.1 and skin neon any one is having problem with this addon i just love it and i really use it

Wanted to comment, I have the same issue with Neon and nightly build.

I click refresh and I get a error.


- samzstein - 2011-09-20 07:52

all of the logos and posters have stopped displaying....please help
pastetbin...
http://pastebin.com/WFfx5mQ1


- ronie - 2011-09-20 09:08

samzstein Wrote:all of the logos and posters have stopped displaying....please help
pastetbin...
http://pastebin.com/WFfx5mQ1

debug log please.