Compare commits
2 Commits
3f5d2bdc26
...
e47a3c187b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e47a3c187b | ||
|
|
2f2cb45947 |
|
|
@ -54,8 +54,7 @@ for filename in os.listdir(folder_path):
|
|||
with open(os.path.join(folder_path, filename), 'rb') as f:
|
||||
video.file.save(filename, f)
|
||||
|
||||
filepath = find_image_file("V"+str(id), folder_path)
|
||||
if filepath and os.path.exists(filepath):
|
||||
#filepath = find_image_file("V"+str(id), folder_path)
|
||||
with open(filepath, 'rb') as f:
|
||||
video.thumbnail.save(filename, f)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user