Skip to content

Commit

Permalink
(Fix) category in contents
Browse files Browse the repository at this point in the history
  • Loading branch information
31December99 committed Oct 2, 2024
1 parent 851c413 commit 9a3d229
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions unit3dup/contents.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,9 @@ def __post_init__(self):
f"{self.__class__.__name__} Set to default value {tracker_data.resolution['altro']}"
)
self.resolution = tracker_data.resolution["altro"]
# Game
self.resolution = tracker_data.resolution["altro"]
else:
# Game
self.resolution = tracker_data.resolution["altro"]


@dataclass
Expand Down Expand Up @@ -217,15 +218,15 @@ def __post_init__(self):

# Get the crew name only if the substr is at end of the string
crew_regex = (
r"\b(" + "|".join(re.escape(pattern) for pattern in crew_patterns) + r")\b$"
r"\b(" + "|".join(re.escape(pattern) for pattern in crew_patterns) + r")\b$"
)
self.crew_list = re.findall(crew_regex, self.filename_sanitized, re.IGNORECASE)

# Get the platform name
platform_regex = (
r"\b("
+ "|".join(re.escape(pattern) for pattern in platform_patterns)
+ r")\b"
r"\b("
+ "|".join(re.escape(pattern) for pattern in platform_patterns)
+ r")\b"
)
self.platform_list = re.findall(
platform_regex, self.filename_sanitized, re.IGNORECASE
Expand Down

0 comments on commit 9a3d229

Please sign in to comment.