emmercm / igir

🕹 A zero-setup ROM collection manager that sorts, filters, extracts or archives, patches, and reports on collections of any size on any OS.
https://igir.io/
GNU General Public License v3.0
364 stars 18 forks source link

--prefer-revision-newer doesn't always work #725

Closed jmf626 closed 12 months ago

jmf626 commented 1 year ago

Paste the command

igir copy --dat "C:\Backup\Recalbox\Workshop\igir-2.0.2-Windows-x64\clonelists\Nintendo - Nintendo Entertainment System (Headered) (Parent-Clone) (20230917-161006).dat" --input "C:\Backup\Recalbox\JuegosRetro\romsets\No-Intro\nes" --output "C:\Backup\Recalbox\JuegosRetro\roms\nes" --no-bios --no-device --no-unlicensed --only-retail --no-debug --no-demo --no-beta --no-sample --no-prototype --no-test-roms --no-aftermarket --no-homebrew --no-bad --single --prefer-language En,Es --prefer-region USA,WORLD,EUR,JPN --prefer-revision-newer

igir copy --dat "C:\Backup\Recalbox\Workshop\igir-2.0.2-Windows-x64\clonelists\Nintendo - Super Nintendo Entertainment System (Parent-Clone) (20230903-114031).dat" --input "C:\Backup\Recalbox\JuegosRetro\romsets\No-Intro\snes" --output "C:\Backup\Recalbox\JuegosRetro\roms\snes" --no-bios --no-device --no-unlicensed --only-retail --no-debug --no-demo --no-beta --no-sample --no-prototype --no-test-roms --no-aftermarket --no-homebrew --no-bad --single --prefer-language En,Es --prefer-region USA,WORLD,EUR,JPN --prefer-revision-newer

Describe the bug

--prefer-revision-newer doesn't seems to work in certain cases. For example, this happens with nes games:

And with snes games:

In those cases the latest revisions are not obtained. Maybe (en) tag is interfering with the evaluation of revisions?

Expected behavior

Debug logs

igirnes.zip igirsnes.zip

DAT(s) used

https://datomatic.nointro.org/

igir version

2.0.2

Node.js version

N/A

Operating system

win10

Additional context

No response

emmercm commented 12 months ago

@jmf626 could you do me a favor and double-check the bug still exists in v2.0.4? I'm wondering if https://github.com/emmercm/igir/pull/723 accidentally solved this.

jmf626 commented 12 months ago

@emmercm Hi! I just tried version 2.0.4 and I still get the same results.

emmercm commented 12 months ago

I found the bug, it's because igir prefers to get a game's language from its region (i.e. Japan->Ja) vs. using languages in the game title. The examples you provided were very helpful, and somewhat surprising that they were released like that. I'll work on a fix.

jmf626 commented 12 months ago

I see, so that's what's going on. Congratulations on finding the cause! You're the best!

github-actions[bot] commented 11 months ago

:lock: Inactive issue lock

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Comment generated by the GitHub Lock Issues workflow.