Broken Discovery Channels - Matrix version 2021.10.08 available
#11
(2016-03-12, 17:29)misty01 Wrote:
(2016-03-12, 16:55)NeelP Wrote: I'm getting this error.

carousel = BeautifulSoup(page,'html.parser').find_all("div",{"class":"carousel-wrapper"})[1]
IndexError: list index out of range

for all the channels

@MetalChris: Thanks for revamping the Discovery add-on back to life.

Same.

I changed line 88 in addon.py from:

Code:
carousel = BeautifulSoup(page,'html.parser').find_all("div",{"class":"carousel-wrapper"})[1]

to

carousel = BeautifulSoup(page,'html.parser').find_all("div",{"class":"carousel-wrapper"})[0]

Then it was working without errors, but not sure if working the way MetalChris intended.

Edit: Further observations...

I changed line 88 back to original [1], then only Discovery Kids was working without 'index out of range' error. Next I changed line 88 to [0] and all channels progress to the next menu, but some of the channels have another 'index out of range' error when clicking on further links. Sorry no time for logs or documenting more at the moment.

There are 3 instances of the carousel wrapper on each page, we're only interested in the second one since it contains the unlocked episodes. The first instance contains a list of Recently Added episodes, most of which are locked. The Discovery Kids channel is completely different than the other 9, so it shouldn't exhibit the same behaviour as the others.

I'm unable to reproduce the error on either my laptop or HTPC, but having just tried with my tablet I see it does throw the error. By any chance are both of you (@misty01 and @NeelP) using Android? If so, then I'm now pointed in the correct direction to work towards a fix. If not, please post a link to a debug log (wiki) so that I can investigate further.

For those of you who have tried the add-on and are region blocked I apologize. I don't think there's anything I can do about this that would be within the legal bounds of use.
Kodi Matrix on Dell Optiplex 980 Lubuntu 22.04 | Kodi Matrix on HTPC Lubuntu 20.04 | My Add-ons | Legacy Repo | Matrix Repo
>>>>> Newest MetalChris Addons: Local Now | Redbox | NEWSnet| NHL Radio | Weather Unlocked


Messages In This Thread
RE: Discovery Channels - by siuside - 2016-03-12, 03:18
RE: Discovery Channels - by Lunatixz - 2016-03-12, 03:19
RE: Discovery Channels - by Eye in the sky - 2016-03-12, 09:59
RE: Discovery Channels - by xalaros10 - 2016-03-12, 10:18
RE: Discovery Channels - by bry - 2016-03-12, 15:32
RE: Discovery Channels - by NeelP - 2016-03-12, 16:55
RE: Discovery Channels - by misty01 - 2016-03-12, 17:29
RE: Discovery Channels - by MetalChris - 2016-03-12, 19:01
RE: Discovery Channels - by Eye in the sky - 2016-03-13, 12:13
RE: Discovery Channels - by MetalChris - 2016-03-13, 18:42
RE: Discovery Channels - by PatK - 2016-03-13, 20:39
RE: Discovery Channels - by Eye in the sky - 2016-03-14, 09:51
RE: Discovery Channels - by MetalChris - 2016-03-14, 16:17
RE: Discovery Channels - by User 272336 - 2016-03-12, 18:01
RE: Discovery Channels - by PatK - 2016-03-12, 18:20
RE: Discovery Channels - by NeelP - 2016-03-12, 19:19
RE: Discovery Channels - by misty01 - 2016-03-12, 19:58
RE: Discovery Channels - by cd2022 - 2016-03-12, 20:52
RE: Discovery Channels - by MetalChris - 2016-03-12, 21:53
RE: Discovery Channels - by abrody - 2017-11-08, 23:38
RE: Discovery Channels - by xalaros10 - 2016-03-13, 21:38
RE: Discovery Channels - by cd2022 - 2016-03-14, 16:36
RE: Discovery Channels - by MetalChris - 2016-03-14, 19:55
RE: Discovery Channels - by NeelP - 2016-03-15, 00:03
RE: Discovery Channels - by MetalChris - 2016-03-15, 19:20
RE: Discovery Channels - by misty01 - 2016-03-15, 06:30
RE: Discovery Channels - by jbjdawg21 - 2016-03-16, 05:08
RE: Discovery Channels - by MetalChris - 2016-03-20, 20:06
Logout Mark Read Team Forum Stats Members Help
Discovery Channels - Matrix version 2021.10.08 available1