mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00:00
Fix anime searches on BTN provider
This commit is contained in:
parent
4930a69798
commit
7b969b334b
2 changed files with 1 additions and 4 deletions
|
@ -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]
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue