[arte] fix bug id was not well filled in info command and title was not filled
This commit is contained in:
parent
0d9f2cfc6c
commit
d7c483922a
2 changed files with 6 additions and 3 deletions
|
|
@ -96,6 +96,9 @@ class ArteBrowser(Browser):
|
||||||
result = simplejson.loads(response.read(), self.ENCODING)
|
result = simplejson.loads(response.read(), self.ENCODING)
|
||||||
|
|
||||||
quality = None
|
quality = None
|
||||||
|
if 'VTI' in result['videoJsonPlayer']:
|
||||||
|
video.title = u'%s' % result['videoJsonPlayer']['VTI']
|
||||||
|
|
||||||
if 'VSR' in result['videoJsonPlayer']:
|
if 'VSR' in result['videoJsonPlayer']:
|
||||||
for item in result['videoJsonPlayer']['VSR']:
|
for item in result['videoJsonPlayer']['VSR']:
|
||||||
if self.quality[0] in item:
|
if self.quality[0] in item:
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ from .video import ArteLiveVideo
|
||||||
class ArteLiveVideoPage(Page):
|
class ArteLiveVideoPage(Page):
|
||||||
def get_video(self, video=None):
|
def get_video(self, video=None):
|
||||||
if not video:
|
if not video:
|
||||||
video = ArteLiveVideo(self.group_dict['id'])
|
video = ArteLiveVideo('/%s' % self.group_dict['id'])
|
||||||
|
|
||||||
div = self.document.xpath('//div[@class="bloc-presentation"]')[0]
|
div = self.document.xpath('//div[@class="bloc-presentation"]')[0]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue