Skip to content

Commit

Permalink
Fix parsing release group in Animebytes results (pymedusa#11648)
Browse files Browse the repository at this point in the history
  • Loading branch information
k0mmsussert0d committed Mar 17, 2024
1 parent 99953d9 commit ed5de87
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions medusa/providers/torrent/json/animebytes.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,15 +177,14 @@ def is_season_exception(series_name):
{'properties': properties_string, 'error': error})
continue

release_group = ""
for i in [-1, -2]:
last_field = re.match(r'(.*)\((.*)\)', properties[i])
if last_field:
release_group = '-{0}'.format(last_field.group(2))
break
else:
last_field = ""

# subs = last_field.group(1) if last_field else ''
release_group = '-{0}'.format(last_field.group(2)) if last_field else ''

release_type = OTHER
season = None
Expand Down

0 comments on commit ed5de87

Please sign in to comment.