mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-23 13:36:35 +00:00
Use the default argument
This commit is contained in:
parent
281268772a
commit
65f86b1161
@ -1202,9 +1202,8 @@ class Media(models.Model):
|
||||
|
||||
@property
|
||||
def thumbnail(self):
|
||||
if not self.has_metadata:
|
||||
return f'https://i.ytimg.com/vi/{self.key}/maxresdefault.jpg'
|
||||
return self.get_metadata_first_value('thumbnail', '')
|
||||
default = f'https://i.ytimg.com/vi/{self.key}/maxresdefault.jpg'
|
||||
return self.get_metadata_first_value('thumbnail', default)
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
|
Loading…
Reference in New Issue
Block a user