jsavargas / telethon_downloader

GNU General Public License v3.0
131 stars 35 forks source link

Problems with files with the same name #28

Open firkerword opened 1 year ago

firkerword commented 1 year ago

Thank you for your hard work. This project is great, but I don't know anything about Python. I have some problems.

firkerword commented 1 year ago

Problems with files with the same name:

  1. When the cache has the same name, only the first file in the cache folder can be downloaded successfully, and the second file after it has a download progress, but an error will be reported after the download: ERROR: FileNotFoundError downloading : [Errno 2] No such file or directory: '/download/tmp/xxxx
  2. The existing file with the same name will be overwritten.
jsavargas commented 1 year ago

Hello, I could add the id of the message in the name of the file, while it is downloading, and then when I copy it to the final folder, evaluate if they are the same or if it is another, based on the md5 of the file, it would take a couple of days to work it out

firkerword commented 1 year ago

Hello, I could add the id of the message in the name of the file, while it is downloading, and then when I copy it to the final folder, evaluate if they are the same or if it is another, based on the md5 of the file, it would take a couple of days to work it out

Thank you very much.