[canalplus] fix browsing categories
This commit is contained in:
parent
47c634e90c
commit
99be5d9e13
3 changed files with 2 additions and 6 deletions
|
|
@ -17,9 +17,6 @@
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from weboob.capabilities.video import ICapVideo, BaseVideo
|
from weboob.capabilities.video import ICapVideo, BaseVideo
|
||||||
|
|
|
||||||
|
|
@ -99,6 +99,5 @@ class CanalplusBrowser(BaseBrowser):
|
||||||
yield video
|
yield video
|
||||||
except IndexError:
|
except IndexError:
|
||||||
raise CollectionNotFound(split_path)
|
raise CollectionNotFound(split_path)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
raise CollectionNotFound(split_path)
|
raise CollectionNotFound(split_path)
|
||||||
|
|
|
||||||
|
|
@ -112,7 +112,7 @@ class VideoPage(BasePage):
|
||||||
def parse_video_channel(self, el):
|
def parse_video_channel(self, el):
|
||||||
_id = el[0].text
|
_id = el[0].text
|
||||||
video = CanalplusVideo(_id)
|
video = CanalplusVideo(_id)
|
||||||
video.title = el[2][3][0].text
|
video.title = u'%s' % el[2][5][0].text
|
||||||
video.date = datetime.now()
|
video.date = datetime.now()
|
||||||
return video
|
return video
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue