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 13, 2024
1 parent 101dd20 commit b95013f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions medusa/providers/torrent/json/animebytes.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,10 @@ def is_season_exception(series_name):
{'properties': properties_string, 'error': error})
continue

last_field = re.match(r'(.*)\((.*)\)', properties[-1])
sub_group_field = re.match(r'(.*)\((.*)\)', properties[-2])

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

release_type = OTHER
season = None
Expand Down

0 comments on commit b95013f

Please sign in to comment.