fix fillobj() on videos without thumbnails
This commit is contained in:
parent
923c2ffc84
commit
203d540163
7 changed files with 8 additions and 8 deletions
|
|
@ -59,7 +59,7 @@ class CanalplusBackend(BaseBackend, ICapVideo, ICapCollection):
|
|||
# if we don't want only the thumbnail, we probably want also every fields
|
||||
with self.browser:
|
||||
video = self.browser.get_video(CanalplusVideo.id2url(video.id), video)
|
||||
if 'thumbnail' in fields:
|
||||
if 'thumbnail' in fields and video.thumbnail:
|
||||
with self.browser:
|
||||
video.thumbnail.data = self.browser.readurl(video.thumbnail.url)
|
||||
return video
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue