Skip to content

Commit

Permalink
fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
labrys committed Mar 2, 2016
1 parent dc03bec commit 2c52a68
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sickbeard/providers/rarbg.py
Expand Up @@ -23,7 +23,8 @@
import datetime
import time

from sickbeard import logger, tvcache, CPU_PRESET
import sickbeard
from sickbeard import logger, tvcache
from sickbeard.common import cpu_presets
from sickbeard.indexers.indexer_config import INDEXER_TVDB

Expand Down Expand Up @@ -65,7 +66,7 @@ def login(self):
}

# Maximum requests allowed are 1req/2sec
time.sleep(max(2, cpu_presets[CPU_PRESET]))
time.sleep(max(2, cpu_presets[sickbeard.CPU_PRESET]))

response = self.get_url(self.urls["api"], params=login_params, timeout=30, returns="json")
if not response:
Expand Down

0 comments on commit 2c52a68

Please sign in to comment.