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-12-15

Buadhai Wrote:After cleaning the database I no longer see that error in the log, but I still get an on-screen script error

could you go to the tv show next aired addon settings
and do a 'rescan tv guide data'.


- Buadhai - 2011-12-15

ronie Wrote:could you go to the tv show next aired addon settings
and do a 'rescan tv guide data'.

Done. Same error message appeared at 3% of scan.

http://pastebin.com/B3e22PT9


- Buadhai - 2011-12-16

The script chokes when scanning this directory:

Code:
bleach:Agatha Christie's Poirot mnewman$ pwd
/Volumes/Media/TV/Agatha Christie's Poirot
bleach:Agatha Christie's Poirot mnewman$ tree
.
├── Season\ 08
│** ├── Poirot\ -\ S08E01\ -\ Evil\ Under\ the\ Sun.avi
│** ├── Poirot\ -\ S08E02\ -\ Murder\ in\ Mesopotamia.avi
│** └── Poirot\ -\ S08E03\ -\ Murder\ in\ Mesopotamia.avi
├── Season\ 09
│** ├── Poirot\ -\ S09E01\ -\ Five\ Little\ Pigs.avi
│** ├── Poirot\ -\ S09E02\ -\ Sad\ Cypress.avi
│** ├── Poirot\ -\ S09E03\ -\ Death\ on\ the\ Nile.avi
│** └── Poirot\ -\ S09e04\ -\ The\ Hollow.avi
├── Season\ 10
│** ├── Poirot.S10E01The.Mystery.of.the.Blue.Train.avi
│** ├── Poirot.S10E02Cards.on.the.Table.avi
│** ├── Poirot.S10E03After.the.Funeral.avi
│** └── Poirot.S10E04Taken.at.the.Flood.avi
├── Season\ 11
│** ├── PoirotS11E02.avi.unpacked.avi
│** ├── PoirotS11E03.avi
│** └── PoirotS11E04.avi.unpacked.avi
├── Season\ 12
│** ├── Poirot.S12E01.avi
│** ├── Poirot.S12E02.avi
│** ├── Poirot.S12E04.Murder\ on\ the\ Orient\ Express.avi
│** └── Poirot.S12e03\ -\ Halloween\ Party.avi
├── banner.jpg
└── logo.png

It happens on all three of my XBMC installations: Mac, ATV1 and ATV2. All three now running the 20111210-f1ae0b6 nightly.


- ronie - 2011-12-17

Buadhai Wrote:Done. Same error message appeared at 3% of scan.

http://pastebin.com/B3e22PT9

it errors on converting the airdate for Agatha Christie's Poirot.
the show is aired on sunday evening, which would be monday morning local time.

it not too familiar with this part of the code,
maybe `Black will have an idea...


- Buadhai - 2011-12-17

ronie Wrote:it errors on converting the airdate for Agatha Christie's Poirot.
the show is aired on sunday evening, which would be monday morning local time.

it not too familiar with this part of the code,
maybe `Black will have an idea...

Interesting. I last added a "Poirot" to the library at least a year ago, but the error only showed up within the last few weeks.


- `Black - 2011-12-17

Problem is caused by wrong airday informations, show is airing on monday and not sunday hence the index error. But this problem could also occur for correct informations if a show has multiple airdays... a fix for this is in the svn.


- morsedl - 2011-12-17

@Ronie: Gotcha. Thanks!


- Henkske - 2011-12-20

Hello Ronie,

I have a question regarding this plugin.

Im using xbmc pre-eden (19dec) and the latest T! (SVN). When i enable this and TVtunes my Cinema Experience script doesn't work anymore ( xbmc freezes on selection). When i disable them the script (CE) works fine.

Do you know this problem and do you maybe now how to fix it?

Thanx in advance

p.s i will add a debug log tonight


- ronie - 2011-12-20

Henkske Wrote:When i enable this and TVtunes my Cinema Experience script doesn't work anymore ( xbmc freezes on selection). When i disable them the script (CE) works fine.

thanx for reporting the issue.
if xbmc freezes when multiple addons are running, please create a ticket on trac.

it's most like a bug in xbmc.


- _Mikie_ - 2011-12-22

Can this addon be added to favorites so I can view the schedule from favorites instead of the sub menu of tv shows?


- ronie - 2011-12-22

_Mikie_ Wrote:Can this addon be added to favorites so I can view the schedule from favorites instead of the sub menu of tv shows?

sure, that shouldn't be a problem at all.


- _Mikie_ - 2011-12-22

ronie Wrote:sure, that shouldn't be a problem at all.

How would I do this? I did it with a previous addon but now I can't seem to do it with this on. Normally clicking 'c' (windows) brings up the menu to add to favorites but there isn't that option. What am I missing?

Thanks


- _Mikie_ - 2011-12-22

ronie Wrote:sure, that shouldn't be a problem at all.

_Mikie_ Wrote:How would I do this? I did it with a previous addon but now I can't seem to do it with this on. Normally clicking 'c' (windows) brings up the menu to add to favorites but there isn't that option. What am I missing?

Thanks

Never mind. I wanted to show it on the main menu so needed it in favorites to use another plugin to do it only to realize that I have the option which is built in disabled.


- keibertz - 2011-12-26

Addon does not work right with Eden Beta1
00:04:23 T:4020 ERROR: Traceback (most recent call last):
00:04:23 T:4020 ERROR: File "C:\Users\xbmc\AppData\Roaming\XBMC\addons\script.tv.show.next.aired\default.py", line 47, in get_html_source
00:04:23 T:4020 ERROR: sock = urllib.urlopen(url)
00:04:23 T:4020 ERROR: File "C:\XBMC11\system\python\Lib\urllib.py", line 86, in urlopen
00:04:23 T:4020 ERROR: return opener.open(url)
00:04:23 T:4020 ERROR: File "C:\XBMC11\system\python\Lib\urllib.py", line 207, in open
00:04:23 T:4020 ERROR: return getattr(self, name)(url)
00:04:23 T:4020 ERROR: File "C:\XBMC11\system\python\Lib\urllib.py", line 346, in open_http
00:04:23 T:4020 ERROR: h.endheaders()
00:04:23 T:4020 ERROR: File "C:\XBMC11\system\python\Lib\httplib.py", line 908, in endheaders
00:04:23 T:4020 ERROR: self._send_output()
00:04:23 T:4020 ERROR: File "C:\XBMC11\system\python\Lib\httplib.py", line 780, in _send_output
00:04:23 T:4020 ERROR: self.send(msg)
00:04:23 T:4020 ERROR: File "C:\XBMC11\system\python\Lib\httplib.py", line 739, in send
00:04:23 T:4020 ERROR: self.connect()
00:04:23 T:4020 ERROR: File "C:\XBMC11\system\python\Lib\httplib.py", line 720, in connect
00:04:23 T:4020 ERROR: self.timeout)
00:04:23 T:4020 ERROR: File "C:\XBMC11\system\python\Lib\socket.py", line 561, in create_connection
00:04:23 T:4020 ERROR: raise error, msg
00:04:23 T:4020 ERROR: IOError: [Errno socket error] timed out


- ronie - 2011-12-26

keibertz Wrote:Addon does not work right with Eden Beta1

that's just a timeout when trying to fetch info from tvrage.com, you can ignore those.
the script will retry a couple of times, and if it still fails, it'll move on to fetching data for the next tv show.