Skip to content

Commit

Permalink
removed add whole seasons
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexis Durand committed Aug 24, 2017
1 parent 2dfb368 commit e04e855
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions mii_rss/logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ def already_exists(db_name, title):
return True
else:
return False
matched = re.match('.*%s.*S(\d\d)' % db_name, title)
if matched:
return True
return False


Expand Down
2 changes: 1 addition & 1 deletion tests/test_mii_rss.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def test_episode_already_exists(self):
def test_season_does_not_exist(self):
db_name = 'Saitama'
title = 'Saitama.S01.rar'
assert not already_exists(db_name, title)
assert already_exists(db_name, title)

def test_get_or_create_downloading_object_episode_create(self):
db_name = 'Saitama'
Expand Down

0 comments on commit e04e855

Please sign in to comment.