[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

@ -17,9 +17,6 @@
# You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
import re
from weboob.capabilities.video import ICapVideo, BaseVideo

View file

@ -99,6 +99,5 @@ class CanalplusBrowser(BaseBrowser):
yield video
except IndexError:
raise CollectionNotFound(split_path)
else:
raise CollectionNotFound(split_path)

View file

@ -112,7 +112,7 @@ class VideoPage(BasePage):
def parse_video_channel(self, el):
_id = el[0].text
video = CanalplusVideo(_id)
video.title = el[2][3][0].text
video.title = u'%s' % el[2][5][0].text
video.date = datetime.now()
return video