handle read URL data failures
This commit is contained in:
parent
b720e851fa
commit
46f4de696e
2 changed files with 16 additions and 2 deletions
|
|
@ -75,7 +75,7 @@ class YoutubeBackend(BaseBackend, ICapVideo):
|
|||
video = self.browser.get_video(YoutubeVideo.id2url(video.id), video)
|
||||
if 'thumbnail' in fields:
|
||||
with self.browser:
|
||||
video.thumbnail.data = self.browser.openurl(video.thumbnail.url).read()
|
||||
video.thumbnail.data = self.browser.readurl(video.thumbnail.url)
|
||||
|
||||
return video
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue