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

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: [RELEASE] TV Show Next Aired (Script) Addon (/showthread.php?tid=79493)



- ronie - 2011-11-05

Machine-Sanctum Wrote:@ronie

My log is filled with errors from the script.


http://pastebin.com/U0u6tFc7

it's not really an error, it only means the connection to tvrage timed-out.
the script will try 5 times before giving up.

Machine-Sanctum Wrote:Also very often when i try to open the tvguide it starts to download and takes forever.
tvrage.com is slow, nothing to do about that...

we'll fetch data at startup and at a set 24 hour interval
so ideally it shouldn't be needed to fetch data when you open the tv guide.

Machine-Sanctum Wrote:Also cancelling the script takes some time. Maybe add a cancel detection somewhere in the while loop.

the socket timeout is set to 10 secs, so even if you add a cancel check there
it can take up to 10 seconds before the script exits.

and since the download part is done outside of our main class,
it might not be easy to add a check there without a bunch of code changes.

patch welcome :-)


- ronie - 2011-11-05

ErlendSB Wrote:One wish though:
I like the way the calendar skin is laid out, but I think the logos are a bit too small in contrast with the dates and time (which could be disabled maybe). In Aeon MQ3 it looks like this

we didn't make that, it was done by the Aeon MQ3 skin creator.
therefore, layout requests should be made in the Aeon thread.


- Martijn - 2011-11-05

ronie Wrote:we'll fetch data at startup and at a set 24 hour interval
so ideally it shouldn't be needed to fetch data when you open the tv guide.
It regularly does. Will see what the problem can be.

Quote:the socket timeout is set to 10 secs, so even if you add a cancel check there
it can take up to 10 seconds before the script exits.

and since the download part is done outside of our main class,
it might not be easy to add a check there without a bunch of code changes.

patch welcome :-)

We added a bunch of error catching in our script so these 'errors' are just displayed in the log as socket timeout etc.... Will see if i can patch it up.

Offtopic:
Do you know an easy way to get the total number of seasons per tvshow using JSON?


- ronie - 2011-11-05

Machine-Sanctum Wrote:It regularly does. Will see what the problem can be.

cheers :-)


Machine-Sanctum Wrote:We added a bunch of error catching in our script so these 'errors' are just displayed in the log as socket timeout etc.... Will see if i can patch it up.

we catch those as well, but choose to log the actual error message instead of providing our own.

check the code and you'll see what i mean. :-)

Machine-Sanctum Wrote:Offtopic:
Do you know an easy way to get the total number of seasons per tvshow using JSON?

use the VideoLibrary.GetSeasons method, the total number of season will be in the json response:
Quote:{"id":1,"jsonrpc":"2.0","result":{"limits":{"end":7,"start":0,"total":7},"seasons":[{....

here's a piece of code that should do the trick:
http://pastebin.com/uKBfmd8z


- ErlendSB - 2011-11-05

ronie Wrote:we didn't make that, it was done by the Aeon MQ3 skin creator.
therefore, layout requests should be made in the Aeon thread.

I used the screenshot from Aeon to show how the bigger logos could look.
I should have added a screenshot of your skin as well for comparison, but I´m lazy.Blush

I prefer to use the skin embedded in the addon because of the orientation of the days, the 7 day limit and the upgrades.


Pre-Eden look in Dharma? - dinosaurjr - 2011-11-06

Is there any way to use the Pre-Eden look in Dharma?


- ronie - 2011-11-06

dinosaurjr Wrote:Is there any way to use the Pre-Eden look in Dharma?

depends on the skin you're using.
several skins out there include a tv guide of some sort.


- dinosaurjr - 2011-11-06

Oh, oke thanks!
I will look into it.

BTW. I use cirrus extended v2 skin.


- GregKael - 2011-11-15

Is there anyway to turn off the localization? I find it quite annoying.

And a possibly related issue, I'm not seeing anything that airs on a Saturday or Sunday (US time). Running a early October Eden release and 4.1.1 of the script.


- ronie - 2011-11-15

GregKael Wrote:Is there anyway to turn off the localization? I find it quite annoying.
nope, the script converts all US times to local time.
it can't be disabled.

GregKael Wrote:And a possibly related issue, I'm not seeing anything that airs on a Saturday or Sunday (US time). Running a early October Eden release and 4.1.1 of the script.

do you have any shows in your library that are airing this weekend (local time)?


- Lunatixz - 2011-11-17

I have a custom next aired skin, and would like to add the ability to click on the tvshow logo and launch that given shows library folder for video access...something like
<onclick>ActivateWindow(MyVideoLibrary,tvshowtitles,return)</onclick>
what would be the easiest way to add this to the below code?

http://pastebin.com/td9i13V9 <-- skin code


- ronie - 2011-11-17

Lunatixz Wrote:I have a custom next aired skin, and would like to add the ability to click on the tvshow logo and launch that given shows library folder for video access...something like
<onclick>ActivateWindow(MyVideoLibrary,tvshowtitles,return)</onclick>
what would be the easiest way to add this to the below code?

http://pastebin.com/td9i13V9 <-- skin code

the script doesn't expose the db path to the skin,
so it's not possible.


- Lunatixz - 2011-11-18

ronie Wrote:the script doesn't expose the db path to the skin,
so it's not possible.

How hard would it be to implement this feature?


- ronie - 2011-11-18

Lunatixz Wrote:How hard would it be to implement this feature?

i just tried and it's fairly easy.
will be in the next version ;-)


- Lunatixz - 2011-11-18

ronie Wrote:i just tried and it's fairly easy.
will be in the next version ;-)

ohhh, can't wait...thanks
any eta?