Skip to content

Commit

Permalink
Merge pull request #23 from edge20200/PullUpdates
Browse files Browse the repository at this point in the history
Tag Fixes
  • Loading branch information
edge20200 authored Sep 22, 2024
2 parents f12bd28 + 8024676 commit 38645f5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']:
Expand Down

0 comments on commit 38645f5

Please sign in to comment.