RainbowCookie32 / rusty-psn

A GUI/CLI tool for downloading PS3 and PS4 game updates
MIT License
379 stars 17 forks source link

Allow dashes in title id #233

Closed sarpt closed 3 months ago

sarpt commented 3 months ago

I'd like to suggest a tiny change - some sites and databases put a dash "-" between character and numeric parts of title ids, for example a lot of BLES/BCES/BCUS title ids on redump.org seem to include it. I've caught myself multiple times pasting a title id from redump with a dash and seeing an error that there are no available updates where I'd expect some to appear: image

A naive dash replacement to allow title ids with dashes produces expected results: image

It seems that the dash is only a matter of preference and stripping it from input title_id shouldn't lead to incorrect title id info being fetched.

RainbowCookie32 commented 3 months ago

LGTM!

Meant to take a look at this yesterday but completely passed out and forgot lol