mirror of
https://github.com/tropicoo/yt-dlp-bot.git
synced 2025-03-03 10:12:58 +08:00
Fix
This commit is contained in:
parent
3be8ded7ea
commit
2570ea1b92
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ class Video(RealBaseModel):
|
||||||
@root_validator(pre=False)
|
@root_validator(pre=False)
|
||||||
def _set_fields(cls, values: dict) -> dict:
|
def _set_fields(cls, values: dict) -> dict:
|
||||||
if not values['thumb_name']:
|
if not values['thumb_name']:
|
||||||
values['thumb_name'] = f'{values["name"]}-thumb.jpg'
|
values['thumb_name'] = f'{values["filename"]}-thumb.jpg'
|
||||||
return values
|
return values
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue