Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Folder structure may cause false duplicates #50

Open
Helvio88 opened this issue Oct 6, 2023 · 1 comment
Open

Folder structure may cause false duplicates #50

Helvio88 opened this issue Oct 6, 2023 · 1 comment

Comments

@Helvio88
Copy link
Contributor

Helvio88 commented Oct 6, 2023

I noticed that if I organize my files in a specific structure:

/games/Game Name [12345TITLEID0000]/Game Name [12345TITLEID0000][v0].nsz (Base)
/games/Game Name [12345TITLEID0000]/Game Name [12345TITLEID1000][v65536].nsz (Update)
/games/Game Name [12345TITLEID0000]/Game Name (DLC)[12345TITLEID0001][v0].nsz (DLC)

Then the Title ID in the folder name makes all files be recognized as duplicates.
Perhaps the folder path should be ignored in this comparison:

return strings.Contains(gameList[index].URL, file.GameID)

Removing the [TITLE_ID] from the Folder fixed the duplication issue.

@DblK
Copy link
Owner

DblK commented Oct 23, 2023

Hi, Good catch.
I will try to make a fix soon for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants