Skip to content

Commit

Permalink
Change subtitle limits
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandog committed Feb 27, 2016
1 parent d5b5da7 commit ab3e924
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sickbeard/subtitles.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,10 +528,10 @@ def dhm(td):
if not force:
now = datetime.datetime.now()
days = int(ep_to_sub['age'])
delay_time = datetime.timedelta(hours=8 if days < 10 else 7 * 24 if days < 30 else 30 * 24)
delay_time = datetime.timedelta(hours=1 if days <= 10 else 8 if days <= 30 else 30 * 24)

# Search every hour for the first 24 hours since aired, then every 8 hours until 10 days passes
# After 10 days, search every 7 days, after 30 days search once a month
# Search every hour until 10 days passes
# After 10 days, search every 8 hours, after 30 days search once a month
# Will always try an episode regardless of age at least 2 times
if lastsearched + delay_time > now and int(ep_to_sub['searchcount']) > 2 and days:
logger.log(u'Subtitle search for {} {} delayed for {}'.format
Expand Down

0 comments on commit ab3e924

Please sign in to comment.