Skip to content

Commit 11eca3b

Browse files
v2 final
1 parent 74360c8 commit 11eca3b

File tree

9 files changed

+39
-20
lines changed

9 files changed

+39
-20
lines changed

changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# 2.00.0
2+
3+
* Fixed grouping of titles with oddly-named video standards in the filename.
4+
5+
16
# 2.00.0 Beta 9
27

38
* Fixed conditional override priorities not working.

docs/changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ hide:
55

66
# Changelog
77

8+
# 2.00.0
9+
10+
* Fixed grouping of titles with oddly-named video standards in the filename.
11+
812

913
# 2.00.0 Beta 9
1014

docs/contribute-clone-lists.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,5 +1050,5 @@ The SHA256 hashes in that file are then compared against the clone lists on the
10501050
disk. If a clone list hash doesn't match, then a new version of that file is downloaded
10511051
from the same location as listed above.
10521052

1053-
When submitting PRs for clone lists, make sure to also update the appropriate `hash.json`
1054-
file with the SHA256 hash of the updated or new clone list.
1053+
After your PR has been merged, the `hash.json` is updated by unexpectedpanda with the
1054+
SHA256 hash of the updated or new clone lists.

docs/includes/file.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[retool-2.00.0-beta-9-win-x86-64.zip](https://unexpectedpanda.github.io/files/retool-2.00.0-beta-9-win-x86-64.zip)
1+
[retool-2.00.0-win-x86-64.zip](https://unexpectedpanda.github.io/files/retool-2.00.0-win-x86-64.zip)

docs/includes/sha256.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3da9506dcc2225593dc36dfbb2a746a1642e1ed3a080ae0b1e216cd6be80cf08
1+
9848f744e29f856217e1614b04e83c770b3eec5610cb5b7101473b64085fd7d6

mkdocs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,11 @@ nav:
5656
- download.md
5757
- changelog.md
5858
- Understanding Retool:
59+
- terminology.md
5960
- retool-1g1r.md
6061
- clone-lists.md
62+
- what-qualifies-as-a-clone.md
6163
- dat-support.md
62-
- terminology.md
6364
- How to use Retool:
6465
- 'Retool GUI': how-to-use-retool-gui.md
6566
- 'Retool CLI': how-to-use-retool-cli.md

modules/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Set the user files and options
22
VERSION_MAJOR: str = '2.00'
3-
VERSION_MINOR: str = '0 Beta 9'
3+
VERSION_MINOR: str = '0'
44
CLONE_LIST_METADATA_DOWNLOAD_LOCATION: str = 'https://raw.githubusercontent.com/unexpectedpanda/retool-clonelists-metadata/main'
55
CLONE_LIST_METADATA_DOWNLOAD_LOCATION_KEY: str = 'cloneListMetadataUrl'
66
PROGRAM_DOWNLOAD_LOCATION: str = 'https://raw.githubusercontent.com/unexpectedpanda/retool/main'

modules/titletools.py

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -644,14 +644,14 @@ def __init__(self, LANGUAGES: str) -> None:
644644
self.sega_panasonic_ring_code: Pattern[str] = re.compile('\\((?:(?:[0-9]{1,2}[ABCMRS],? ?)*|R[E]?[-]?[0-9]*)\\)')
645645

646646
# Video standards
647-
self.mpal_1: Pattern[str] = re.compile('( -)?[( ]MPAL[ \\)]')
648-
self.ntsc_1: Pattern[str] = re.compile('( -)?[( ]NTSC[ \\)]')
647+
self.mpal_1: Pattern[str] = re.compile('(?:-)?[( ]MPAL\\)?')
648+
self.ntsc_1: Pattern[str] = re.compile('(?:-)?[( ]NTSC\\)?')
649649
self.ntsc_2: Pattern[str] = re.compile('\\[(.*)?NTSC(.*)?\\]')
650650
self.ntsc_pal: Pattern[str] = re.compile('[( ]NTSC-PAL(\\))?')
651-
self.pal_1: Pattern[str] = re.compile('( -)?[( ]PAL(?: [a-zA-Z]+| 50Hz)?(?:\\)| (?=\\())')
651+
self.pal_1: Pattern[str] = re.compile('( -)?[( ]PAL(?: [a-zA-Z]+| 50[Hh]z)?(?:\\)?| (?=\\())')
652652
self.pal_2: Pattern[str] = re.compile('\\[(.*)?PAL(?!P)(.*)?\\]')
653-
self.pal_60: Pattern[str] = re.compile('\\(PAL 60Hz\\)')
654-
self.secam_1: Pattern[str] = re.compile('( -)?[( ]SECAM[ \\)]')
653+
self.pal_60: Pattern[str] = re.compile('\\(PAL 60[Hh]z\\)')
654+
self.secam_1: Pattern[str] = re.compile('(?:-)?[( ]SECAM\\)?')
655655
self.secam_2: Pattern[str] = re.compile('\\[(.*)?SECAM(.*)?\\]')
656656

657657
# Other tags
@@ -1112,6 +1112,23 @@ def get_group_name(name: str, config: Config) -> str:
11121112
if re.search(config.regex.version_non_parens, name):
11131113
name = re.sub(config.regex.version_non_parens, '', name)
11141114

1115+
# Video standard compensation
1116+
for pattern in config.regex.ntsc:
1117+
if re.search(pattern, name):
1118+
name = re.sub(pattern, '', name)
1119+
1120+
for pattern in config.regex.pal:
1121+
if re.search(pattern, name):
1122+
name = re.sub(pattern, '', name)
1123+
1124+
for pattern in config.regex.pal_60hz:
1125+
if re.search(pattern, name):
1126+
name = re.sub(pattern, '', name)
1127+
1128+
for pattern in config.regex.secam:
1129+
if re.search(pattern, name):
1130+
name = re.sub(pattern, '', name)
1131+
11151132
return name.lower().replace(' ', ' ').strip()
11161133

11171134

@@ -1277,7 +1294,7 @@ def trace_title(trace_reference: str, variable: list[str] = [], title_set: set[D
12771294
if trace_reference == 'REF0006': message = f'{Font.bold}[{variable[0]}]{Font.end} Group after handling special editions:'
12781295
if trace_reference == 'REF0007': message = f'{Font.bold}[{variable[0]}]{Font.end} Group after handling versions and revisions:'
12791296
if trace_reference == 'REF0008': message = f'{Font.bold}[{variable[0]}]{Font.end} Group after handling modern title rips:'
1280-
if trace_reference == 'REF0009': message = f'{Font.bold}[{variable[0]}]{Font.end} Group after choosing dates:'
1297+
if trace_reference == 'REF0009': message = f'{Font.bold}[{variable[0]}]{Font.end} Group after choosing video standard:'
12811298
if trace_reference == 'REF0010': message = f'{Font.bold}[{variable[0]}]{Font.end} Group after choosing good, original versions over alternatives:'
12821299
if trace_reference == 'REF0011': message = f'{Font.bold}[{variable[0]}]{Font.end} Group after handling promotions and demotions:'
12831300
if trace_reference == 'REF0012': message = f'{Font.bold}[{variable[0]}]{Font.end} Group after handling "Made in" titles:'

readme.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
# Retool
22

3-
> **:mega: Retool v2 is now available**
4-
>
5-
> Retool v2 is much faster, with several new features and better accuracy.
6-
>
7-
> A working version of Retool v1 is still available for download from the [v1 branch](https://github.com/unexpectedpanda/retool/tree/v1),
8-
however it's unsupported and issues should only be filed for v2. Clone lists and metadata
9-
are only being updated for v2.
10-
113
**This is the source repository for Retool. For downloads, installation instructions, and
124
documentation, see the [website](https://unexpectedpanda.github.io/retool/).**
135

0 commit comments

Comments
 (0)