cncb 24 Posted August 11, 2014 Posted August 11, 2014 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<--
xnappo 1605 Posted August 11, 2014 Posted August 11, 2014 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
xnappo 1605 Posted August 11, 2014 Posted August 11, 2014 Ticket: https://github.com/MediaBrowser/MediaBrowser.XBMC/issues/83
cncb 24 Posted August 11, 2014 Author Posted August 11, 2014 For a temporary fix, try turning off 'Auto Enter Single Season Series'. Yes, this does avoid the error. Thanks.
xnappo 1605 Posted August 15, 2014 Posted August 15, 2014 @@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
im85288 1493 Posted August 15, 2014 Posted August 15, 2014 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. 1
marcelveldt 736 Posted August 15, 2014 Posted August 15, 2014 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 ?
marcelveldt 736 Posted August 15, 2014 Posted August 15, 2014 @@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... 1
xnappo 1605 Posted August 15, 2014 Posted August 15, 2014 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 1
xnappo 1605 Posted August 16, 2014 Posted August 16, 2014 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
xnappo 1605 Posted August 16, 2014 Posted August 16, 2014 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 1
marcelveldt 736 Posted August 16, 2014 Posted August 16, 2014 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
xnappo 1605 Posted August 16, 2014 Posted August 16, 2014 @@marcelveldt - can you test again? I fixed the URL but am still not 100% sure we were talking about the same thing. Thanks, xnappo
pstar 0 Posted August 18, 2014 Posted August 18, 2014 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.
xnappo 1605 Posted August 18, 2014 Posted August 18, 2014 Sounds like a different problem if 'Auto Enter' didn't fix it. Please post a log. xnappo
pstar 0 Posted August 18, 2014 Posted August 18, 2014 Not a problem. If you can point me to the location of where I can find the logs. I'll post it. Cheers
xnappo 1605 Posted August 18, 2014 Posted August 18, 2014 Here you go: http://wiki.xbmc.org/index.php?title=Log_file/Advanced#Location For now, delete the log file, then recreate the problem and post the log file. I may ask you to turn on a higher debug level if it is not obvious from the error. xnappo
pstar 0 Posted August 18, 2014 Posted August 18, 2014 I'll get on it after work. Thanks for the super quick replies.
pstar 0 Posted August 19, 2014 Posted August 19, 2014 (edited) Is this what you need? http://pastebin.com/Rj6KkPwT Edited August 19, 2014 by pstar
xnappo 1605 Posted August 21, 2014 Posted August 21, 2014 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
pstar 0 Posted August 23, 2014 Posted August 23, 2014 OK here's a new log. https://mega.co.nz/#!dh4CwRIB!keVw96AtLEkWb7ufMmfKBhK9n_q3YgA12uf9wJYyhT8 Changed XBMB3C to debug rebooted openelec went to XBMB3C "TV Shows" ---> had error went toXBMB3C "All TV Shows" ---> had error result is a 10MB log file All other options in XBMB3C "seem" to work fine. Cheers
marcelveldt 736 Posted August 23, 2014 Posted August 23, 2014 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.
Recommended Posts