Skip to content

Commit

Permalink
fix: if there was no release group defined the title could sometimes …
Browse files Browse the repository at this point in the history
…end in '-'
  • Loading branch information
jesterr0 committed Dec 27, 2024
1 parent adc0152 commit f0ab037
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/frontend/wizards/rename_encode.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,10 @@ def _release_group_validation(self) -> bool:
)
is QMessageBox.StandardButton.Yes
):
self.output_entry.setText(
f"{input_text.replace(detect_group.group(1), '')}{saved_release_group}"
)
new_name = f"{input_text.replace(detect_group.group(1), '')}{saved_release_group}"
if new_name.endswith("-"):
new_name = new_name[:-1]
self.output_entry.setText(new_name)
return False
elif not detect_group and saved_release_group:
if (
Expand Down

0 comments on commit f0ab037

Please sign in to comment.