diff --git a/src/prep.py b/src/prep.py index 4aef62b..48e8cef 100644 --- a/src/prep.py +++ b/src/prep.py @@ -1982,8 +1982,14 @@ def get_tag(self, video, meta): try: tag = guessit(video)['release_group'] tag = f"-{tag}" - except Exception: + except: tag = "" + + # Adjust to only keep the last part after the last dash + if tag.startswith("-"): + parts = tag[1:].split('-') + tag = f"-{parts[-1]}" # Keep only the last part + if tag == "-": tag = "" if tag[1:].lower() in ["nogroup", 'nogrp']: