vdeku / xbmc-adult

Automatically exported from code.google.com/p/xbmc-adult
0 stars 0 forks source link

Unable to browse empty collections fantasti.cc plugin #70

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When a collection has single quotes in the title, the fantasti.cc plugin fails 
to read it.

The error can be reproduced when browsing collections but since they come and 
go, a more predictable way of testing is this:

1. use the un-implemented option described in #54 and add this line in the 
"collections" block in default.py
addDir('moonshadows', main_url+'user/moonshadows/collections/', mode, 
default_image)

2. Browse till the third page and try to go to the fourth
3. The addon will fail since it finds a collection that has the phrase 
"...60's/70's/80's/90's/00'S" which it identifies as "... 
60's/70's/80's/90's/00'S".

The logfile reports something along the lines of this:

...
ERROR: Error Type: <type 'exceptions.IndexError'>
ERROR: Error Contents: list index out of range
ERROR: Traceback (most recent call last):
...
 in INDEXCOLLECT
        addDir(name+' ('+num_of_vids+' vids)', realurl, mode, icons[0]) 
    IndexError: list index out of range
...

Original issue reported on code.google.com by leonmar...@gmail.com on 11 Aug 2013 at 9:00

GoogleCodeExporter commented 9 years ago
You are reading it wrong.
This is an IndexError, the only indexed access being done is icons[0]. The 
problem is some collections have no videos in them (regardless of the number 
reported in the listing) so there are no icons and icons[0] fails.

Original comment by mrdougqu...@gmail.com on 12 Aug 2013 at 11:40

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r258.

Original comment by mrdougqu...@gmail.com on 12 Aug 2013 at 11:46