Remove: redundant file hash check for video thumb
This commit is contained in:
parent
61780cb8ba
commit
98dd8ade8b
1 changed files with 0 additions and 2 deletions
|
@ -114,8 +114,6 @@ def generate_video_thumbnail(
|
||||||
|
|
||||||
thumbnail_hash_blake3 = compute_file_hash_blake3(thumbnail_file_path)
|
thumbnail_hash_blake3 = compute_file_hash_blake3(thumbnail_file_path)
|
||||||
|
|
||||||
if pstfile.thumbnail_hash_blake3 == thumbnail_hash_blake3:
|
|
||||||
return "Thumbnail already exists for this video file."
|
|
||||||
|
|
||||||
# Update the PostFileModel's thumbnail field with the new file
|
# Update the PostFileModel's thumbnail field with the new file
|
||||||
with open(thumbnail_file_path, "rb") as file:
|
with open(thumbnail_file_path, "rb") as file:
|
||||||
|
|
Loading…
Add table
Reference in a new issue