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)



- bigbear77 - 2011-01-17

i really love this script. use it with the shade skin but have the problem: when i watch a movie or tvshow while the next aired scripts updates i get a freeze in my video window and about 200 drops then it works fine again when the script finishes.

im using an xs35gt (atom d510) with 2 gb ram and an ssd.

when i uninstall the script i dont get these errors.

so i think it would be sufficient to just let the script run when i start / resume the pc without any timer. how can i do that?

thanks for your help!


- ppic - 2011-01-17

how do you know that the script is updating?


- bigbear77 - 2011-01-19

sorry for the late answer. here is part of the log:

22:57:07 T:2373065584 M:1420800000 NOTICE: (VDPAU) Creating the video mixer
22:57:07 T:2373065584 M:1420484608 NOTICE: fps: 23.976000, pwidth: 1280, pheight: 696, dwidth: 1279, dheight: 696
22:57:07 T:2362575728 M:1419780096 WARNING: CALSADirectSound::GetSpace - get space failed. err: -32 (Broken pipe)
22:57:07 T:2373065584 M:1417773056 WARNING: CRenderManager::Configure - timeout waiting for previous frame
22:57:07 T:2373065584 M:1417646080 NOTICE: Display resolution DESKTOP : 1920x1080 @ 60.00 - Full Screen (12)
22:57:07 T:3079075712 M:1419026432 NOTICE: Using GL_TEXTURE_2D
22:57:07 T:3079075712 M:1419026432 NOTICE: GL: Using VDPAU render method
22:57:07 T:3079075712 M:1419026432 NOTICE: GL: NPOT texture support detected
22:57:07 T:3079075712 M:1419026432 NOTICE: GL: Using GL_ARB_pixel_buffer_object
22:57:07 T:2373065584 M:1417953280 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 3148, consumed: 0
22:57:07 T:3079075712 M:1417953280 NOTICE: Created m_glPixmapTexture (273)
23:39:25 T:2313907056 M:1423691776 NOTICE: -->Python Interpreter Initialized<--
23:39:25 T:2313907056 M:1423806464 NOTICE: ### TV-Show Next-Aired starting ...
23:39:25 T:2313907056 M:1423806464 NOTICE: ### author: Ppic, Frost
23:39:25 T:2313907056 M:1423806464 NOTICE: ### URL: http://code.google.com/p/passion-xbmc/
23:39:25 T:2313907056 M:1423806464 NOTICE: ### credits: Team Passion-XBMC, http://passion-xbmc.org/
23:39:25 T:2313907056 M:1423806464 NOTICE: ### date: 17-10-2010
23:39:25 T:2313907056 M:1423806464 NOTICE: ### version: 2.1.2
23:39:25 T:2313907056 M:1423806464 NOTICE: {'alarm': '99', 'silent': 'True'}
23:39:25 T:2313907056 M:1423806464 NOTICE: ###db old more than 24h, rescanning...
23:39:25 T:2313907056 M:1423806464 NOTICE: ### Load list: /home/bigbear/.xbmc/userdata/addon_data/script.tv.show.next.aired/canceled.db
23:39:26 T:2313907056 M:1423806464 NOTICE: ###canceled list: [....]
23:39:26 T:2313907056 M:1423806464 NOTICE: ###$#*! My Dad Says
23:39:26 T:2313907056 M:1423806464 NOTICE: ### get info $#*! My Dad Says
23:39:26 T:2313907056 M:1423806464 NOTICE: ### searching for $#*! My Dad Says
23:39:26 T:2313907056 M:1423806464 NOTICE: ###search url: http://services.tvrage.com/tools/quickinfo.php?show=%24%23%2A%21+My+Dad+Says
23:39:26 T:2313907056 M:1422073856 NOTICE: ### parse informations
23:39:26 T:2313907056 M:1422073856 NOTICE: {'Status': 'New Series', 'ep_img': '/mnt/media/Serien/S4/Serien4/US/Shit my dad says/folder.jpg', 'RFC3339': '2011-01-20T20:30:00-5:00', 'GMT+0 NODST': '1295569800', 'Network': 'CBS', 'Classification': 'Scripted', 'Started': 'Sep/23/2010', 'Show Name': '$#*! My Dad Says', 'Show URL': 'http://www.tvrage.com/Bleep_My_Dad_Says', 'Genres': 'Comedy | Family', 'Premiered': '2010', 'Airtime': 'Thursday at 08:30 pm', 'Ended': '', 'Country': 'USA', 'Show ID': '25755', 'path': '/mnt/media/Serien/S4/Serien4/US/Shit my dad says/', 'Next Episode': '01x14^Corn Star^Jan/20/2011', 'localname': '$#*! My Dad Says', 'Runtime': '30', 'Latest Episode': '01x13^The Better Father^Jan/13/2011'}
23:39:26 T:2313907056 M:1422073856 NOTICE: ###24
23:39:26 T:2313907056 M:1422073856 NOTICE: ### 24 canceled/Ended
23:39:26 T:2313907056 M:1422073856 NOTICE: ###30 Rock
23:39:26 T:2313907056 M:1422073856 NOTICE: ### get info 30 Rock
23:39:26 T:2313907056 M:1422073856 NOTICE: ### searching for 30 Rock
23:39:26 T:2313907056 M:1422073856 NOTICE: ###search url: http://services.tvrage.com/tools/quickinfo.php?show=30+Rock
23:39:26 T:2313907056 M:1422053376 NOTICE: ### parse informations
23:39:26 T:2313907056 M:1422053376 NOTICE: {'Status': 'Returning Series', 'ep_img': '/mnt/media/Serien/S4/Serien4/US/30 Rock/folder.jpg', 'RFC3339': '2011-01-20T22:00:00-5:00', 'GMT+0 NODST': '1295575200', 'Network': 'NBC', 'Classification': 'Scripted', 'Started': 'Oct/11/2006', 'Show Name': '30 Rock', 'Show URL': 'http://www.tvrage.com/30_Rock', 'Genres': 'Comedy', 'Premiered': '2006', 'Airtime': 'Thursday at 10:00 pm', 'Ended': '', 'Country': 'USA', 'Show ID': '11215', 'path': '/mnt/media/Serien/S4/Serien4/US/30 Rock/', 'Next Episode': '05x11^Mrs. Donaghy^Jan/20/2011', 'localname': '30 Rock', 'Runtime': '30', 'Latest Episode': '05x10^Christmas Attack Zone^Dec/09/2010'}
23:39:26 T:2313907056 M:1422053376 NOTICE: ###Aeon Flux
...

i took a look in the xbmc.log right after i got the hang in the video and here this info was. hope this helps. emptied the canceld list here for less long post.


- ppic - 2011-01-19

well, ok this can be due to the script, but is it really a problem? it's only update 1 time in 24h...


- bigbear77 - 2011-01-19

its only a problem if i just happen to watch a movie at exact that time Smile

can i disable the auto-update every 24 hours? and change it to "every time computer xmbc is started / resumed from standby"?

Or would the script update itself if i went to the next aired window in the shade skin? Than i could disable (where would i find it?) the auto update and when i wanna know when episodes air i just go in the next aired window.

One other thin as long as ive got you Smile Im playing around with the aeon nox skin which has no next aired support on its own. i made a custom program button displaying the next aired window, but its empty. do i have to do anything more?

thanks for your fast reply and help! much appreciated


- bigbear77 - 2011-01-19

heres what i get in my aoen nox trials:
13:21:45 T:4464 M:1797124096 NOTICE: -->Python Interpreter Initialized<--
13:21:45 T:4464 M:1796669440 NOTICE: ### TV-Show Next-Aired starting ...
13:21:45 T:4464 M:1796669440 NOTICE: ### author: Ppic, Frost
13:21:45 T:4464 M:1796669440 NOTICE: ### URL: http://code.google.com/p/passion-xbmc/
13:21:45 T:4464 M:1796669440 NOTICE: ### credits: Team Passion-XBMC, http://passion-xbmc.org/
13:21:45 T:4464 M:1796665344 NOTICE: ### date: 17-10-2010
13:21:45 T:4464 M:1796665344 NOTICE: ### version: 2.1.2
13:21:45 T:4464 M:1796665344 NOTICE: {}
13:21:45 T:4464 M:1796665344 NOTICE: ###db less than 24, fetch local data...
13:21:45 T:4464 M:1796665344 NOTICE: ### Load list: C:\Users\flo.jaeger1networks\AppData\Roaming\XBMC\userdata\addon_data\script.tv.show.next.aired\next_aired.db
13:21:45 T:4464 M:1796661248 NOTICE: ###data available
13:21:45 T:4464 M:1796661248 NOTICE: ### next list: 0 shows ### []
13:21:45 T:4464 M:1796661248 NOTICE: 2011-01-19
13:21:45 T:4464 M:1796661248 NOTICE: ###today show: 0 -
13:21:48 T:4356 M:1792294912 ERROR: CLocalizeStrings::ClearBlock: Trying to clear non existent block C:\Users\flo.jaeger1networks\AppData\Roaming\XBMC\addons\script.tv.show.next.aired

that happens when i include the code from odt_x and also when i open the next aired window via custom program. When i delete the 2 db-files and start xbmc again, it works. but only this one time.
at the next start. same error messages Sad


- ppic - 2011-01-19

bigbear77:there's no error there...


- ppic - 2011-01-19

bigbear77 Wrote:its only a problem if i just happen to watch a movie at exact that time Smile

can i disable the auto-update every 24 hours? and change it to "every time computer XBMC is started / resumed from standby"?

Or would the script update itself if i went to the next aired window in the shade skin? Than i could disable (where would i find it?) the auto update and when i wanna know when episodes air i just go in the next aired window.

One other thin as long as ive got you Smile Im playing around with the aeon nox skin which has no next aired support on its own. i made a custom program button displaying the next aired window, but its empty. do i have to do anything more?

thanks for your fast reply and help! much appreciated

you can remove the alarm parameter in the xml that launch the script.

the list may be empty, if there no data for your show.


- bigbear77 - 2011-01-19

thanks ppic. changed skin to aeon nox so no alarm there (as far as i know). i played around a bit more and now i also get the information refreshed in the nox skin (starting next aired via the custom program shortcut).

Dont really know why it wouldnt work before, but its running now and thats what counts!


- odt_x - 2011-01-24

I seem to be having an issue that the DB is not refreshing itself. So even if the date has changed to Jan/24 it still shows Next Episode: Jan/23.

So in the log I see stuff like:

Code:
(2009)', 'Runtime': '60', 'Latest Episode': '02x03^Laid Bare^Jan/18/2011'}]
10:14:33 T:2940 M:2611666944  NOTICE: 2011-01-24
10:14:33 T:2940 M:2611666944  NOTICE: ################
10:14:33 T:2940 M:2611666944  NOTICE: ###American Dad!
10:14:33 T:2940 M:2611666944  NOTICE: ###06x10^Stanny Boy and Frantastic^Jan/23/2011
10:14:33 T:2940 M:2611666944  NOTICE: ###2011-01-23T19:30:00-5:00
10:14:33 T:2940 M:2611666944  NOTICE: 2011-01-23
10:14:33 T:2940 M:2611666944  NOTICE: ################
10:14:33 T:2940 M:2611666944  NOTICE: ###The Simpsons
10:14:33 T:2940 M:2611666944  NOTICE: ###22x12^Homer The Father^Jan/23/2011
10:14:33 T:2940 M:2611666944  NOTICE: ###2011-01-23T20:00:00-5:00
10:14:33 T:2940 M:2611666944  NOTICE: 2011-01-23


It will update fine after i remove the addons_data\script.tv.show.next.aired\next_aired.db and re-launch xbmc.


- ppic - 2011-01-24

24h cache.


- odt_x - 2011-01-24

ppic Wrote:24h cache.

After reading some previous posts after posting this I figured that much. Would be cool if the cache would be discarded on next date, not by the hour count. Just an idea Wink


- ppic - 2011-01-24

no, it won't i don't want to rescrap each time a show is diffused, your seeing this on your side, but my view is also server side, and i don't want to bomb the site that provide me the information.


- odt_x - 2011-01-25

ppic Wrote:no, it won't i don't want to rescrap each time a show is diffused, your seeing this on your side, but my view is also server side, and i don't want to bomb the site that provide me the information.

OK, so the scanning is always for all shows, not the ones with next episode in the past?


- ppic - 2011-01-25

yes, it's a one time work.