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)



- ronie - 2011-08-15 22:24

giftie Wrote:ronie - found two errors within the script.

first one:

line 190 in default.py reads as follows:

Code:
if not self.listing(): close("error listing")

should be:
Code:
if not self.listing(): self.close("error listing")

this is because the 'def close' is inside of the Class.

thanx giftie, will fix that one. :-)

giftie Wrote:Second error shows up if the user has the JSON RPC compact output turned off. This is done inside advancedsettings.xml(which I have set to false to make the output easier to read - for my own debugging Smile ) :

PHP Code:
<jsonrpc>
       <
compactoutput>false</compactoutput>
</
jsonrpc

Here is the output of the JSON RPC Query with Compact Output set to False: http://pastebin.com/82Rp3hiR
and set to True: http://pastebin.com/8Ur9jk78


This changes the format(adds a lot of tabs and spaces) which seems like the reg-ex fails to pick up the TV Show name. This also breaks TvTunes and Logo Downloader.

Having the JSON RPC set to Compact Output(which is default of course), everything works fine.

after struggling with regex for hours and hours i haven't been able to come up with a fix yet.
if you or anyone else has an idea, i'd certainly appreciate some help.


- ronie - 2011-08-15 22:51

ronie Wrote:thanx giftie, will fix that one. :-)
after struggling with regex for hours and hours i haven't been able to come up with a fix yet.
if you or anyone else has an idea, i'd certainly appreciate some help.

heh...as always...five minutes after you ask for help you figure it out yourself.


- giftie - 2011-08-16 02:28

ronie Wrote:heh...as always...five minutes after you ask for help you figure it out yourself.

It's always the case... It took me about two days to figure out the cause of the problem. Anyways I also got tired of regex and jsonrpc so I just use a module to convert the JSON RPC output to a Python DICT(http://forum.xbmc.org/showthread.php?tid=100598)


- ronie - 2011-08-16 02:38

giftie Wrote:It's always the case... It took me about two days to figure out the cause of the problem. Anyways I also got tired of regex and jsonrpc so I just use a module to convert the JSON RPC output to a Python DICT(http://forum.xbmc.org/showthread.php?tid=100598)

i'm aware and tried your solution some time ago :-)

the only downside is the time needed for the conversion.
it might not be a big deal for this script as it only does a single query,
but if your script makes several (the globalsearch script i did makes 7 queries)
you'll have to wait an additional 5 seconds or so before the results pop up.


- sergiocos - 2011-08-23 01:58

worked on a clean install (latest version and previous). somehow it doesn't work now, suddenly...
Quote:02:55:00 T:1796 NOTICE: -->Python Interpreter Initialized<--
02:55:01 T:1796 ERROR: Error Type: <type 'exceptions.NameError'>
02:55:01 T:1796 ERROR: Error Contents: global name 'close' is not defined
02:55:01 T:1796 ERROR: Traceback (most recent call last):
File "C:\Users\W7SP1x86FEB\AppData\Roaming\XBMC\addons\script.tv.show.next.aired\defau​lt.py", line 290, in <module>
NextAired()
File "C:\Users\W7SP1x86FEB\AppData\Roaming\XBMC\addons\script.tv.show.next.aired\defau​lt.py", line 71, in __init__
self.scan_info()
File "C:\Users\W7SP1x86FEB\AppData\Roaming\XBMC\addons\script.tv.show.next.aired\defau​lt.py", line 190, in scan_info
if not self.listing(): close("error listing")
NameError: global name 'close' is not defined



- ronie - 2011-08-23 09:53

sergiocos Wrote:worked on a clean install (latest version and previous). somehow it doesn't work now, suddenly...

full debug log please :-)


- sergiocos - 2011-08-23 10:10

sure Smile


- ronie - 2011-08-23 15:42

sergiocos Wrote:sure Smile

hmmm...i have no clue what is causing this sudden issue on your end.

it could be there is some problem with your video database.

the sript uses json-rpc to retrieve a list of your tv shows from the db, but it fails:
Quote:11:07:49 T:2512 DEBUG: ['"error":{"code":-32601,"message":"Method not found."']



- sergiocos - 2011-08-23 15:45

might be, i moved around several shows due to lack of space... i'll do a clean install later on. Thanks!


Not showing show name? - markswift - 2011-08-24 18:06

Hi guys,

I have seem to have a problem with the script displaying the show name (See attachment). This is using a nightly build from August 22nd on Windows 7. I am using the latest build available. It does this for all my shows.

Any help would be greatly appreciated!

Mark

[Image: 15yzqkh.jpg]