Commit 45e44955 authored by ntome's avatar ntome

[peertube] fetch thumbnail

parent abe82503
Pipeline #1729 failed with stages
in 2 minutes and 18 seconds
......@@ -57,6 +57,8 @@ class PeertubeModule(Module, CapVideo):
def fill_video(self, obj, fields):
if set(('url', 'size')) & set(fields):
self.browser.get_video(obj.id, obj)
if 'thumbnail' in fields and obj.thumbnail:
obj.thumbnail.data = self.browser.open(obj.thumbnail.url).content
OBJECTS = {
BaseVideo: fill_video,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment