reuse absolute path flag

This commit is contained in:
Simon 2025-12-25 15:53:23 +07:00
parent 8309dc4fec
commit 939def5120
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ class ThumbManager(ThumbManagerBase):
file_path = os.path.join(self.MEDIA_DIR, json_data["media_url"])
video = MP4(file_path)
thumb_path = os.path.join(self.CACHE_DIR, self.vid_thumb_path())
thumb_path = self.vid_thumb_path(absolute=True)
if os.path.exists(thumb_path):
with open(thumb_path, "rb") as f:
cover_data = f.read()