[canalplus] fix browsing categories

This commit is contained in:
Bezleputh 2014-05-14 21:51:54 +02:00 committed by Florent
commit 99be5d9e13
3 changed files with 2 additions and 6 deletions

View file

@ -92,13 +92,12 @@ class CanalplusBrowser(BaseBrowser):
subchannels = self.iter_resources(split_path[0:1])
try:
channel = [subchannel for subchannel in subchannels
if split_path == subchannel.split_path][0]
if split_path == subchannel.split_path][0]
self.location("http://service.canal-plus.com/video/rest/getMEAs/cplus/%s" % channel._link_id)
assert self.is_on_page(VideoPage)
for video in self.page.iter_channel():
yield video
except IndexError:
raise CollectionNotFound(split_path)
else:
raise CollectionNotFound(split_path)