Skip to content

Commit 96be958

Browse files
v2.00.3
1 parent 1c0f21e commit 96be958

File tree

5 files changed

+26
-7
lines changed

5 files changed

+26
-7
lines changed

docs/includes/file.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[retool-2.00.2-win-x86-64.zip](https://unexpectedpanda.github.io/files/retool-2.00.2-win-x86-64.zip)
1+
[retool-2.00.3-win-x86-64.zip](https://unexpectedpanda.github.io/files/retool-2.00.3-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-
ff56f5d742c1f80c57f8085cd6931997d3f67c1c68008a1ad82522e54251fe5e
1+
9b5d4d4de577e52c90c8409355c7ae2be068e1df00b7ded46e1add705570abef

modules/chooseparent.py

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def length_check() -> None:
234234

235235
if report_on_match_compilations: TraceTools.trace_title('REF0067', [group], title_comparison_set, keep_remove=False)
236236

237-
# Filter by preproduction
237+
# Filter by preproduction and pirate
238238
group_titles = ParentTools.remove_preprod_bad(title_comparison_set, config)
239239

240240
if report_on_match_compilations: TraceTools.trace_title('REF0092', [group], group_titles, keep_remove=False)
@@ -1503,6 +1503,7 @@ def remove_preprod_bad(title_set: set[DatNode], config: Config) -> set[DatNode]:
15031503

15041504
pattern_list: list[Pattern[str]] = list(config.regex.preproduction)
15051505
pattern_list.append(config.regex.bad)
1506+
pattern_list.append(config.regex.pirate)
15061507

15071508
for regex_pattern in pattern_list:
15081509
if (
@@ -1745,7 +1746,7 @@ def choose_parent_process(config: Config, potential_parents: dict[str, set[DatNo
17451746
short_name_titles: dict[str, list[DatNode]] = {}
17461747
short_name_top_languages: set[tuple[str, int, str]] = set()
17471748

1748-
# Filter out bad dumps and preproduction titles
1749+
# Filter out bad dumps, pirate, and preproduction titles
17491750
for short_name in short_names:
17501751
for title in title_set:
17511752
if (
@@ -1757,6 +1758,9 @@ def choose_parent_process(config: Config, potential_parents: dict[str, set[DatNo
17571758
if re.search(regex_pattern, title.full_name):
17581759
regex_match = True
17591760

1761+
if re.search(config.regex.pirate, title.full_name):
1762+
regex_match = True
1763+
17601764
if not regex_match:
17611765
if short_name not in short_name_titles:
17621766
short_name_titles[short_name] = []
@@ -1774,6 +1778,16 @@ def choose_parent_process(config: Config, potential_parents: dict[str, set[DatNo
17741778
if title not in short_name_titles[short_name]:
17751779
short_name_titles[short_name].append(title)
17761780

1781+
# Add pirate titles back in if they are the only ones in the set
1782+
if not short_name_titles:
1783+
for title in title_set:
1784+
if title.short_name == short_name:
1785+
if re.search(config.regex.pirate, title.full_name):
1786+
if short_name not in short_name_titles:
1787+
short_name_titles[short_name] = []
1788+
if title not in short_name_titles[short_name]:
1789+
short_name_titles[short_name].append(title)
1790+
17771791
# Add bad dumps back in if they are the only ones in the set
17781792
if not short_name_titles:
17791793
for title in title_set:
@@ -1811,7 +1825,7 @@ def choose_parent_process(config: Config, potential_parents: dict[str, set[DatNo
18111825
if report_on_match: eprint(f'\n{Font.subheading}Region: {region}{Font.end}')
18121826
if report_on_match: TraceTools.trace_title('REF0001', [group_name], parent_titles, keep_remove=False)
18131827

1814-
# 1) Clean up preproduction/bad/mixed version-revision titles
1828+
# 1) Clean up preproduction/bad/pirate/mixed version-revision titles
18151829
if len(parent_titles) > 1: parent_titles = ParentTools.remove_preprod_bad(parent_titles, config)
18161830

18171831
if report_on_match: TraceTools.trace_title('REF0003', [group_name], parent_titles, keep_remove=False)
@@ -2056,6 +2070,7 @@ def choose_parent_process(config: Config, potential_parents: dict[str, set[DatNo
20562070
pattern_list: list[Pattern[str]] = list(config.regex.preproduction)
20572071

20582072
pattern_list.append(config.regex.bad)
2073+
pattern_list.append(config.regex.pirate)
20592074

20602075
if not config.user_input.modern:
20612076
pattern_list.extend(config.tags_modern_editions)
@@ -2095,6 +2110,10 @@ def choose_parent_process(config: Config, potential_parents: dict[str, set[DatNo
20952110
if re.search(config.regex.bad, original_title.full_name):
20962111
bad_match = True
20972112

2113+
# Candidate is a pirate title
2114+
if re.search(config.regex.pirate, original_title.full_name):
2115+
bad_match = True
2116+
20982117
# Tags match
20992118
if pattern == second_pattern:
21002119
bad_match = True

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 = '2'
3+
VERSION_MINOR: str = '3'
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1288,7 +1288,7 @@ def trace_title(trace_reference: str, variable: list[str] = [], title_set: set[D
12881288
message: str = ''
12891289
if trace_reference == 'REF0001': message = f'{Font.bold}[{variable[0]}]{Font.end} Original unmodified group:'
12901290
if trace_reference == 'REF0002': message = f'{Font.bold}[{variable[0]}]{Font.end} Group after taking clone list priorities into account:'
1291-
if trace_reference == 'REF0003': message = f'{Font.bold}[{variable[0]}]{Font.end} Group after cleaning up preproduction/bad/mixed version-revision titles:'
1291+
if trace_reference == 'REF0003': message = f'{Font.bold}[{variable[0]}]{Font.end} Group after cleaning up preproduction/bad/pirate/mixed version-revision titles:'
12921292
if trace_reference == 'REF0004': message = f'{Font.bold}[{variable[0]}]{Font.end} Group after handling modern title rips:'
12931293
if trace_reference == 'REF0005': message = f'{Font.bold}[{variable[0]}]{Font.end} [First pass] Group after filtering by user language order:'
12941294
if trace_reference == 'REF0006': message = f'{Font.bold}[{variable[0]}]{Font.end} Group after handling special editions:'

0 commit comments

Comments
 (0)