mirror of
https://github.com/SabreTools/MPF.git
synced 2026-02-04 05:35:52 +00:00
[Problem] MPF misattributes issue numbers as Disc Title #598
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @CookiePLMonster on GitHub (Aug 30, 2023).
Originally assigned to: @mnadareski on GitHub.
If all of those fail, then continue...
Version
What version are you using?
6baaf132a7)Build
What runtime version are you using?
Describe the issue
Many covermounts have their issue numbers written in parenthesis as part of the Title. When pre-filling
!submissioninfo.txtwith verification data from Redump, MPF (and MPF.Check) misattributes this part of the Title as Disc Title.My test case is Kaczor Donald 51-52/2006 (581): http://redump.org/disc/47147/
Its current datname is
Kaczor Donald 51-52-2006 (581) (Poland), because(581)is part of the Title. However, with MPF moving it to the Disc Title, a submission processed exactly as MPF suggests would be datted asKaczor Donald 51-52-2006 (Poland) (581).This has been pointed out on Redump when a fix was being processed.
To Reproduce
MPF.Checkon the dump, or dump it again viaMPF.581) has been pre-filled as Disc Title:Expected behavior
The issue number should stay part of the Title.
@mnadareski commented on GitHub (Aug 30, 2023):
There's literally no way to tell since they're formatted identically. I can't fix this.
@CookiePLMonster commented on GitHub (Aug 30, 2023):
Do you parse those from datnames or other data? If it is datnames, then a rule that Disc Letter and/or Disc Title must be after the Region might help resolve this.
@mnadareski commented on GitHub (Aug 30, 2023):
Everything it parses is direct from the page, so not the name in the DAT, unfortunately.
@CookiePLMonster commented on GitHub (Aug 30, 2023):
I see, so you effectively receive what is equivalent to Redump's display name, e.g.
Kaczor Donald 52-53/2005 (529). I can see that being problematic indeed, with the only idea being maybe to filter out Disc Titles that are numeric only not to be treated as Disc Titles.@mnadareski commented on GitHub (Aug 30, 2023):
I cannot guarantee that a disc title would not be purely numeric at any point.
@CookiePLMonster commented on GitHub (Aug 30, 2023):
True - but you are trading off a relatively frequent false positive (issue number treated as a Disc Title) into a much more uncommon false negative (Disc Title treated as a part of the Title). It's still a win.
@mnadareski commented on GitHub (Aug 30, 2023):
I'll consider it.