diff --git a/CHANGES.md b/CHANGES.md index 4ec76cfd..a0df6e4f 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -16,6 +16,7 @@ * Fix normal tv show regex (port from midgetspy/sickbeard) * Fix anime regex (port from lad1337/sickbeard) * Add pull request checkout option to General Config/Advanced Settings +* Fix anime searches on BTN provider [develop changelog] diff --git a/sickbeard/providers/btn.py b/sickbeard/providers/btn.py index 8a60192e..0a9d7049 100644 --- a/sickbeard/providers/btn.py +++ b/sickbeard/providers/btn.py @@ -201,8 +201,6 @@ class BTNProvider(generic.TorrentProvider): if ep_obj.show.air_by_date or ep_obj.show.sports: # Search for the year of the air by date show current_params['name'] = str(ep_obj.airdate).split('-')[0] - elif ep_obj.show.is_anime: - current_params['name'] = "%d" % ep_obj.scene_absolute_number else: current_params['name'] = 'Season ' + str(ep_obj.scene_season) @@ -238,8 +236,6 @@ class BTNProvider(generic.TorrentProvider): # BTN uses dots in dates, we just search for the date since that # combined with the series identifier should result in just one episode search_params['name'] = date_str.replace('-', '.') - elif ep_obj.show.anime: - search_params['name'] = "%i" % int(ep_obj.scene_absolute_number) else: # Do a general name search for the episode, formatted like SXXEYY search_params['name'] = "S%02dE%02d" % (ep_obj.scene_season, ep_obj.scene_episode)