From 7d6fea2dff5d909bb93ee93e4e58d7ba3e8d9bc4 Mon Sep 17 00:00:00 2001 From: Bezleputh Date: Tue, 12 Nov 2013 21:01:25 +0100 Subject: [PATCH] [Arte] fully fill Artevideo in get_video method in order to fix #1312 --- modules/arte/browser.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/arte/browser.py b/modules/arte/browser.py index f70ad063..f04b977e 100644 --- a/modules/arte/browser.py +++ b/modules/arte/browser.py @@ -58,8 +58,7 @@ class ArteBrowser(BaseBrowser): result = self.get_video_by_quality(url, self.quality) if video is None: - video = ArteVideo(result['video']['VID']) - + video = self.create_video(result['video']) try: video.url = u'%s' % result['video']['VSR'][0]['VUR'] except: @@ -136,7 +135,8 @@ class ArteBrowser(BaseBrowser): video.thumbnail = Thumbnail(u'%s' % item['programImage']) video.duration = datetime.timedelta(seconds=int(item['videoDurationSeconds'])) video.set_empty_fields(NotAvailable, ('url',)) - video.description = u'%s' % item['VDE'] + if 'VDE' in item: + video.description = u'%s' % item['VDE'] m = re.match('(\d{2})\s(\d{2})\s(\d{4})(.*?)', item['VDA']) if m: dd = int(m.group(1))