[RELEASE] Nick Jr. (Video) Addon

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
nixa Offline
Skilled Python Coder
Posts: 210
Joined: Apr 2009
Reputation: 0
Location: Japan
Post: #46
Try to access the website from your location using normal browser. Anyone else with similar script error?

Edit: The line error shows you failed to get the list of nicktoons shows. At this point, there is no geo-restriction.
(This post was last modified: 2011-02-07 18:59 by nixa.)
find quote
fultotop Offline
Member
Posts: 58
Joined: Sep 2005
Reputation: 0
Post: #47
@Nixa

Tried accessing the page through a web browser.

http://nicktoons.nick.com/videos&mode=16...ktoons.com

Returns an error screenshot here.
find quote
handsomepete Offline
Senior Member
Posts: 161
Joined: Aug 2007
Reputation: 0
Location: Canada
Post: #48
errors here too accessing nick and nicktoons
already updated
NOTICE: -->Python Interpreter Initialized<--
18:04:34 T:2728364912 M:1590824960 NOTICE: Mode: 1
18:04:34 T:2728364912 M:1590824960 NOTICE: URL: http://www.nick.com/videos/
18:04:34 T:2728364912 M:1590824960 NOTICE: Name: nick.com
18:04:34 T:2728364912 M:1590824960 NOTICE: PAGE
18:04:34 T:2744101744 M:1590824960 NOTICE: Mode: None
18:04:34 T:2744101744 M:1590824960 NOTICE: URL: None
18:04:34 T:2744101744 M:1590824960 NOTICE: Name: None
18:04:34 T:2744101744 M:1590824960 NOTICE: categories
18:04:34 T:3056150400 M:1590824960 WARNING: GetLabel - Unknown nodetype requested 6
18:04:34 T:3056150400 M:1590824960 ERROR: GetDirectory - Error getting plugin://plugin.video.nickelodeon/?url=http%3A%2F%2Fwww.nick.com%2Fvideos%2F&mode=1&name=nick.com
18:04:34 T:3056150400 M:1590824960 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.nickelodeon/?url=http%3A%2F%2Fwww.nick.com%2Fvideos%2F&mode=1&name=nick.com) failed
18:04:34 T:3056150400 M:1590824960 WARNING: GetLabel - Unknown nodetype requested 6
18:04:35 T:2728364912 M:1590968320 ERROR: Error Type: exceptions.IndexError
18:04:35 T:2728364912 M:1590968320 ERROR: Error Contents: list index out of range
18:04:35 T:2728364912 M:1590968320 ERROR: Traceback (most recent call last):
File "/home/xbmc/.xbmc/addons/plugin.video.nickelodeon/default.py", line 457, in ?
NICKSHOWS(url)
File "/home/xbmc/.xbmc/addons/plugin.video.nickelodeon/default.py", line 209, in NICKSHOWS
match1=re.compile('<a href="/shows/(.+?)" style="background-image.+?http://nick.mtvnimages.com/nick-assets/navigation/shownav/(.+?).jpg.+?".+?title="(.+?)"').findall(all[0])
IndexError: list index out of range
18:04:38 T:2728364912 M:1591259136 NOTICE: -->Python Interpreter Initialized<--
18:04:41 T:2728364912 M:1591230464 NOTICE: Mode: 16
18:04:41 T:2728364912 M:1591230464 NOTICE: URL: http://nicktoons.nick.com/videos
18:04:41 T:2728364912 M:1591230464 NOTICE: Name: nicktoons.com
18:04:41 T:2728364912 M:1591230464 NOTICE: PAGE
18:04:42 T:2728364912 M:1591279616 ERROR: Error Type: exceptions.IndexError
18:04:42 T:2728364912 M:1591279616 ERROR: Error Contents: list index out of range
18:04:42 T:2728364912 M:1591279616 ERROR: Traceback (most recent call last):
File "/home/xbmc/.xbmc/addons/plugin.video.nickelodeon/default.py", line 505, in ?
SHOWSTOON(url)
File "/home/xbmc/.xbmc/addons/plugin.video.nickelodeon/default.py", line 46, in SHOWSTOON
match1=re.compile('<a href="/shows/(.+?)" style="background-image.+?http://nick.mtvnimages.com/nicktoons-assets/navigation/shownav/(.+?).jpg.+?".+?title="(.+?)"').findall(all[0])
IndexError: list index out of range
18:04:42 T:3056150400 M:1591152640 ERROR: GetDirectory - Error getting plugin://plugin.video.nickelodeon/?url=http%3A%2F%2Fnicktoons.nick.com%2Fvideos&mode=16&name=nicktoons.com
18:04:42 T:3056150400 M:1591152640 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.nickelodeon/?url=http%3A%2F%2Fnicktoons.nick.com%2Fvideos&mode=16&name=nicktoons.com) failed
18:04:42 T:3056150400 M:1591255040 WARNING: GetLabel - Unknown nodetype requested 6
18:04:44 T:3056150400
find quote
nixa Offline
Skilled Python Coder
Posts: 210
Joined: Apr 2009
Reputation: 0
Location: Japan
Post: #49
does it work before this, i mean after the integration with nick and nicktoons? Just try uninstall and install again. I could not reproduce your problem here.

fultotop: The correct link should be this http://nicktoons.nick.com/videos. Try access it and report back to me.
(This post was last modified: 2011-02-07 21:16 by nixa.)
find quote
fultotop Offline
Member
Posts: 58
Joined: Sep 2005
Reputation: 0
Post: #50
I don't think the script is at fault in anyway, the web server is always redirecting me to nick.co.uk as it won't show me the US version of website.

Maybe it's done when the web server picks up my IP.

I'm sure Nicktoons & Nick.com won't work at the moment in the UK as everyone will get redirected to uk versions

PS. Nick Jr goes to the US website.
(This post was last modified: 2011-02-07 21:20 by fultotop.)
find quote
nixa Offline
Skilled Python Coder
Posts: 210
Joined: Apr 2009
Reputation: 0
Location: Japan
Post: #51
I see. I will try to implement USA proxy settings when I have time.
(This post was last modified: 2011-02-07 21:44 by nixa.)
find quote
fultotop Offline
Member
Posts: 58
Joined: Sep 2005
Reputation: 0
Post: #52
I changed the def CAT for nick.com to google cache and it worked.

It maybe better to use google cache as a source as no proxy was needed.

Code:
def CATS():
        addDir('nick.com','http://webcache.googleusercontent.com/search?q=cache:mQEpLUmaN1oJ:www.nick.com/videos/+nickelodeon+videos&cd=2&hl=en&ct=clnk&gl=uk&source=www.google.co.uk',1,'','')

This may also work for other sites as well!
(This post was last modified: 2011-02-07 21:54 by fultotop.)
find quote
nixa Offline
Skilled Python Coder
Posts: 210
Joined: Apr 2009
Reputation: 0
Location: Japan
Post: #53
Wow! i dont expect to be that difficult to access the US based nickelodeon. And with this trick, you can go down till the videos dir and play it?
find quote
handsomepete Offline
Senior Member
Posts: 161
Joined: Aug 2007
Reputation: 0
Location: Canada
Post: #54
fultotop can you post your changed default.py?
find quote
nixa Offline
Skilled Python Coder
Posts: 210
Joined: Apr 2009
Reputation: 0
Location: Japan
Post: #55
I just made a quick insertion of proxy settings just to get the list of nicktoon shows. Would you mind downloading the modified plugin and let me know if its working?. Get it at my google code page. Please let me know ASAP

Edit: The use of US based proxy is much reliable if its working.
(This post was last modified: 2011-02-07 22:09 by nixa.)
find quote
fultotop Offline
Member
Posts: 58
Joined: Sep 2005
Reputation: 0
Post: #56
I'm watching a spongebob episode at the moment, but i'm not sure it would work for every video as the cache may be a bit out of date.

So you would need to always pull the lastest copy of the cache from google when the script is run, so a bit of work would be needed to implement that first.
find quote
fultotop Offline
Member
Posts: 58
Joined: Sep 2005
Reputation: 0
Post: #57
@nixa

It failed error below.

Code:
20:09:27 T:4672 M:4294967295  NOTICE: -->Python Interpreter Initialized<--
20:09:27 T:4672 M:4294967295  NOTICE: Mode: 16
20:09:27 T:4672 M:4294967295  NOTICE: URL: http://nicktoons.nick.com/videos
20:09:27 T:4672 M:4294967295  NOTICE: Name: nicktoons.com
20:09:27 T:4672 M:4294967295  NOTICE: PAGE
20:09:27 T:4672 M:4294967295  NOTICE: Using Proxy --> :: url = http://nicktoons.nick.com/videos
20:09:39 T:1244 M:4294967295   ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.nickelodeon/?url=http%3A%2F%2Fnicktoons.nick.com%2Fvideos&mode=16&name=nicktoons.com
20:09:39 T:1244 M:4294967295   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.nickelodeon/?url=http%3A%2F%2Fnicktoons.nick.com%2Fvideos&mode=16&name=nicktoons.com) failed
20:09:39 T:916 M:4294967295  NOTICE: -->Python Interpreter Initialized<--
20:09:39 T:916 M:4294967295  NOTICE: Mode: None
20:09:39 T:916 M:4294967295  NOTICE: URL: None
20:09:39 T:916 M:4294967295  NOTICE: Name: None
20:09:39 T:916 M:4294967295  NOTICE: categories
20:09:39 T:1244 M:4294967295 WARNING: XFILE::CVideoDatabaseDirectory::GetLabel - Unknown nodetype requested 6
find quote
nixa Offline
Skilled Python Coder
Posts: 210
Joined: Apr 2009
Reputation: 0
Location: Japan
Post: #58
thanks.
find quote
handsomepete Offline
Senior Member
Posts: 161
Joined: Aug 2007
Reputation: 0
Location: Canada
Post: #59
Heres mine:
Code:
-->Python Interpreter Initialized<--
20:10:07 T:2733607792 M:1543004160  NOTICE: Mode: 16
20:10:07 T:2733607792 M:1543004160  NOTICE: URL: http://nicktoons.nick.com/videos
20:10:07 T:2733607792 M:1543004160  NOTICE: Name: nicktoons.com
20:10:07 T:2733607792 M:1543131136  NOTICE: PAGE
20:10:07 T:2733607792 M:1543258112  NOTICE: Using Proxy --> :: url = http://nicktoons.nick.com/videos
20:10:28 T:2733607792 M:1545195520   ERROR: Error Type: urllib2.URLError
20:10:28 T:2733607792 M:1545195520   ERROR: Error Contents: <urlopen error (110, 'Connection timed out')>
20:10:28 T:2733607792 M:1545256960   ERROR: Traceback (most recent call last):
                                              File "/home/xbmc/.xbmc/addons/plugin.video.nickelodeon/default.py", line 511, in ?
                                                SHOWSTOON(url)
                                              File "/home/xbmc/.xbmc/addons/plugin.video.nickelodeon/default.py", line 49, in SHOWSTOON
                                                page = urllib2.urlopen(req)
                                              File "/usr/lib/xbmc/system/python/python24.zip/urllib2.py", line 130, in urlopen
                                                return _opener.open(url, data)
                                              File "/usr/lib/xbmc/system/python/python24.zip/urllib2.py", line 358, in open
                                                response = self._open(req, data)
                                              File "/usr/lib/xbmc/system/python/python24.zip/urllib2.py", line 376, in _open
                                                '_open', req)
                                              File "/usr/lib/xbmc/system/python/python24.zip/urllib2.py", line 337, in _call_chain
                                                result = func(*args)
                                              File "/usr/lib/xbmc/system/python/python24.zip/urllib2.py", line 1021, in http_open
                                                return self.do_open(httplib.HTTPConnection, req)
                                              File "/usr/lib/xbmc/system/python/python24.zip/urllib2.py", line 996, in do_open
                                                raise URLError(err)
                                            URLError: <urlopen error (110, 'Connection timed out')>
20:10:28 T:3056150400 M:1544605696   ERROR: GetDirectory - Error getting plugin://plugin.video.nickelodeon/?url=http%3A%2F%2Fnicktoons.nick.com%2Fvideos&mode=16&name=nicktoons.com
20:10:28 T:3056150400 M:1544605696   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.nickelodeon/?url=http%3A%2F%2Fnicktoons.nick.com%2Fvideos&mode=16&name=nicktoons.com) failed
20:10:28 T:3056150400 M:1544704000 WARNING: GetLabel - Unknown nodetype requested 6
20:10:32 T:2733607792 M:1546973184  NOTICE: -->Python Interpreter Initialized<--
20:10:36 T:2733607792 M:1545019392  NOTICE: Mode: 1
20:10:36 T:2733607792 M:1545019392  NOTICE: URL: http://www.nick.com/videos/
20:10:36 T:2733607792 M:1545019392  NOTICE: Name: nick.com
20:10:36 T:2733607792 M:1545019392  NOTICE: PAGE
20:10:38 T:2733607792 M:1545187328   ERROR: Error Type: exceptions.IndexError
20:10:38 T:2733607792 M:1545187328   ERROR: Error Contents: list index out of range
20:10:38 T:2733607792 M:1545187328   ERROR: Traceback (most recent call last):
                                              File "/home/xbmc/.xbmc/addons/plugin.video.nickelodeon/default.py", line 463, in ?
                                                NICKSHOWS(url)
                                              File "/home/xbmc/.xbmc/addons/plugin.video.nickelodeon/default.py", line 215, in NICKSHOWS
                                                match1=re.compile('<a href="/shows/(.+?)" style="background-image.+?http://nick.mtvnimages.com/nick-assets/navigation/shownav/(.+?).jpg.+?".+?title="(.+?)"').findall(all[0])
                                            IndexError: list index out of range
20:10:38 T:3056150400 M:1545302016   ERROR: GetDirectory - Error getting plugin://plugin.video.nickelodeon/?url=http%3A%2F%2Fwww.nick.com%2Fvideos%2F&mode=1&name=nick.com
20:10:38 T:3056150400 M:1545302016   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.nickelodeon/?url=http%3A%2F%2Fwww.nick.com%2Fvideos%2F&mode=1&name=nick.com) failed
20:10:38 T:3056150400 M:1545302016 WARNING: GetLabel - Unknown nodetype requested
find quote
fultotop Offline
Member
Posts: 58
Joined: Sep 2005
Reputation: 0
Post: #60
I would say a working proxy is the way to go, as the google cache doesn't seem to work with Nicktoons & and after further testing the google cache is just not reliable because it's 5 days out of date already.
find quote
Post Reply