View Single Post
  #840  
Old 06.07.2019, 16:59
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
Default

Quote:
Originally Posted by dankmemer View Post
I tried searching but I don't think my specific case was discussed here!

I am downloading files that sometimes have the same file name, however they are not the same file. Sometimes they are, but sometimes they're not. I think this was a website that did poor CDN practices early on, but later changed their file name system when they grew.

Anyways, what the script would have to check for is both the file name AND the size of the file. If both are the same, then the file is a duplicate, otherwise download the file by renaming the new file.

The files are all within folder, example:
Folder > Folder1 > 67575675.jpg
Folder > Folder1 > 67575675.jpg (duplicate)


There are other folders, so in that example imagine Folder2, etc. BUT this script only needs to check the folder it's saving within.
Quote:
Originally Posted by Jiaz View Post
@dankmemer: this option tells JDownloader to compare file sizes as well. so different filesize -> different file
Looks like the user's requirement is similar to the one in this thread.
Reply With Quote