Duplicate inner file detection for same subjects #547
Sometimes badly constructed nzbs include duplicate files. In such case the same inner file (such as archive part) is listed twice in nzb. This may happen if some files were not uploaded correctly and were reposted. NZBGet detects such duplicates and takes only the file with biggest size.
I've got an example nzb where all included files have the same name. That name wasn't obviously the actual file name. Real files names were stored in article bodies and read by nzbget during downloading. The duplicate detection however considered the files to be duplicates to each other and removed all except one.
This needs to be improved. Duplicate check should count files with the same name and consider them duplicates only if two files have same name but not more than two. This will cover both use cases.