[arte] correct bug when video is not yet available in arte7Plus
This commit is contained in:
parent
75521d1198
commit
be0044662e
1 changed files with 4 additions and 1 deletions
|
|
@ -62,7 +62,10 @@ class ArteBrowser(BaseBrowser):
|
|||
result = simplejson.loads(response.read(), self.ENCODING)
|
||||
if video is None:
|
||||
video = ArteVideo(result['video']['VID'])
|
||||
video.url = u'%s' % result['video']['VSR'][0]['VUR']
|
||||
try:
|
||||
video.url = u'%s' % result['video']['VSR'][0]['VUR']
|
||||
except:
|
||||
video.url = NotAvailable
|
||||
return video
|
||||
|
||||
@id2url(ArteLiveVideo.id2url)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue