Skip to content

Commit

Permalink
Clean up category selection code
Browse files Browse the repository at this point in the history
  • Loading branch information
heyhippari committed Nov 10, 2018
1 parent 736e536 commit c5152ca
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions medusa/providers/torrent/rss/nyaa.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,9 @@ def search(self, search_strings, age=0, ep_obj=None, **kwargs):
results = []

# Search Params
if ep_obj:
category = '1_0' if ep_obj.series.is_anime else '4_0', # All Anime if is_anime, else All Live Action
else:
# If ep_obj is None, assume we want anime
category = '1_0'
category = '1_0'
if ep_obj and not ep_obj.series.is_anime:
category = '4_0'

search_params = {
'page': 'rss',
Expand Down

0 comments on commit c5152ca

Please sign in to comment.