Jump to content

Script error when trying to view TV shows


cncb

Recommended Posts

I periodically get a script error and the following exception in my log when trying to view a "Folder" of my Library containing TV shows.  I can't see any obvious file or state causing this problem.  Also a restart of the server does not seem to resolve it.  Note that I can view my movie Folders with no problems while this error occurs.

09:50:26 T:140693699802880   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.IndexError'>
                                            Error Contents: list index out of range
                                            Traceback (most recent call last):
                                              File "/storage/.xbmc/addons/plugin.video.xbmb3c/default.py", line 2288, in <module>
                                                showParentContent(sys.argv[0], int(sys.argv[1]), params)
                                              File "/storage/.xbmc/addons/plugin.video.xbmb3c/default.py", line 2082, in showParentContent
                                                getContent(contentUrl)
                                              File "/storage/.xbmc/addons/plugin.video.xbmb3c/default.py", line 1211, in getContent
                                                dirItems = processDirectory(url, result, progress)
                                              File "/storage/.xbmc/addons/plugin.video.xbmb3c/default.py", line 1524, in processDirectory
                                                u = 'http://' + server + '/mediabrowser/Users/'+ userid + '/items?ParentId=' + seasons[0].get("Id") +'&Fields=' + detailsString + '&SortBy='+SortByTemp+'&IsVirtualUnAired=false&IsMissing=false&format=json'
                                            IndexError: list index out of range
                                            -->End of Python script error report<--
Link to comment
Share on other sites

xnappo

My guess is that you have sub-folders inside your TV series that are not actually seasons.  This is a corner-case that the code does not currently handle.

 

For a temporary fix, try turning off 'Auto Enter Single Season Series'.

 

I have a better way to handle this that I will implement.

 

xnappo

Link to comment
Share on other sites

For a temporary fix, try turning off 'Auto Enter Single Season Series'.

 

 

Yes, this does avoid the error.  Thanks.

Link to comment
Share on other sites

xnappo

@@im85288 @ @@marcelveldt @@elcabong

 

I just made a small change to how 'Auto Enter Single Seasons' works (null_pointer's much better suggestion), but I cut out a big chunk of legacy code in the process.  I am *fairly* sure it is okay, but please test.

 

xnappo

Link to comment
Share on other sites

im85288

Hi Marcel, their is a new version up there with the .content and the changes I mentioned in the dev forum. I updated the xbmb3c addon as it was needed for the equilibrium skin.

  • Like 1
Link to comment
Share on other sites

marcelveldt

Hi all,

 

I'll test the functionality. A few days ago I noticed a bug in the code from XBMB3C where some variables where used before they where assigned.

This solved the issue that "all movies" wasn't working, reported by several users.

Also I can report that the .content property for the dynamic loading of lists is working fine.

 

As the update of my skin relies on the improvements in XBMB3C my question is... Can there be a release of the XBMB3C plugin ?

Link to comment
Share on other sites

marcelveldt

@@im85288 @ @@marcelveldt @@elcabong

 

I just made a small change to how 'Auto Enter Single Seasons' works (null_pointer's much better suggestion), but I cut out a big chunk of legacy code in the process.  I am *fairly* sure it is okay, but please test.

 

xnappo

Guess something went wrong with that change.... item info isn't available now.

I have plot etc. when entering tv show with multiple seasons however it isn't there when I enter a single season tvshow.

I can confirm that the info is there when I turn off the "auto enter single.." option.

 

My best guess is (without looking at the code) is that the info of the season is provided to the item's content instead of the episodes...

  • Like 1
Link to comment
Share on other sites

xnappo

Yes - this will be a LOT faster going into TV.  Before we went in to every series and checked for single seasons at the show level.

 

We are also talking about setting up a beta channel - once that is done we can push stuff a lot more often.

 

xnappo

  • Like 1
Link to comment
Share on other sites

xnappo

Hi Marcel - thanks for testing.  To be clear do you mean the plot of the overall show or the episode plot?  Is this when browsing the list of shows, or the list of episodes?

 

Thanks,

xnappo

Link to comment
Share on other sites

xnappo

Nevermind - I see the problem - easy fix will fix when I get home.  URL substituted in the season code is missing the details string.

 

Thanks again,

xnappo

  • Like 1
Link to comment
Share on other sites

marcelveldt

Great! It had to be something simple ;-)

Other than that the "auto enter single folder" works fine, it seems to me that it's even faster now :-)

 

If we do some testing today, is there going to be a release ? Would be nice to have all the new features available :)  :)  :)

Link to comment
Share on other sites

I'm also getting script errors when I try to enter any on the TV Show "folders" from XBMBC3 plugin.

Movies seems to work fine and also music.

I've tried changing the "auto enter single folder" option, but it makes no difference.

 

Using the some of the XBMBC3 skins I can play episodes from the "recently added" "widgets".

I just can't seem to browse through my library.

 

I can browse and play via the web interface via win7 pc and android tablets.

 

server Version is 3.0.5340.21263 running on a win7 pc

and the XBMB3C plugin was install from the mediabrowser repo.

 

Thanks for any help.

Link to comment
Share on other sites

xnappo

Sounds like a different problem if 'Auto Enter' didn't fix it. 

 

Please post a log.

 

xnappo

Link to comment
Share on other sites

xnappo

Sorry - dropped the ball on this one.

 

Can't tell from that log.  Can you please go into the XBMB3C Advanced settings and change the log settings to '2' and try again.

 

xnappo

Link to comment
Share on other sites

marcelveldt

 

went to XBMB3C "TV Shows"   --->  had error

went toXBMB3C "All TV Shows"   ---> had error

 

 

To further investigate the issue, can you please tell me how your MB3 libraries are set-up ?

Did you add just one or more user-defined libraries to the server with TVshows ?

And in that library you have specified a path to the tv shows (UNC path).

 

Just to be clear; The path you've added is it's structure like this:

 

--PATH (something like "\\server\tvshows")

----tv show title (like "2 broke girls")

----------season 1

------------------episodes

----tv show title

----------season 1

----------season 2

etc. etc.

 

For testing purposes you can try to define another library in the MB3 server, and then just add one TVshow.

If you open up XBMB3C after that it should show that library.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...