mirror of
https://github.com/Dineshkarthik/telegram_media_downloader.git
synced 2024-11-10 08:52:53 +08:00
upd: return valid file path
This commit is contained in:
parent
0d28704910
commit
cf4d90621e
1 changed files with 2 additions and 1 deletions
|
@ -36,4 +36,5 @@ def manage_duplicate_file(file_path: str):
|
|||
old_file_md5: str = md5(open(old_file_path, "rb").read()).hexdigest()
|
||||
if current_file_md5 == old_file_md5:
|
||||
os.remove(file_path)
|
||||
break
|
||||
return old_file_path
|
||||
return file_path
|
||||
|
|
Loading…
Reference in a new issue