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