[imgur] use hash when title not present

This commit is contained in:
Mort Yao 2017-05-13 15:00:31 +02:00
parent 303922f9d4
commit d3d9e0f5c0
No known key found for this signature in database
GPG Key ID: 07DA00CB78203251

View File

@ -65,7 +65,7 @@ class Imgur(VideoExtractor):
'container': 'jpg' 'container': 'jpg'
} }
} }
self.title = image['title'] self.title = image['title'] or image['hash']
def extract(self, **kwargs): def extract(self, **kwargs):
if 'stream_id' in kwargs and kwargs['stream_id']: if 'stream_id' in kwargs and kwargs['stream_id']: