Commit c1ec8ce1 authored by echel0n's avatar echel0n
Browse files

fixed issue with network timezones and search provider urls not being updated on first use of app

fixed issue with search provider newnab migration
parent ca8aaefd
......@@ -62,11 +62,6 @@ class TimeZoneUpdater(object):
IOLoop.current().call_later(5, self.update_network_timezones)
return
if sickrage.app.api.token_time_remaining < (int(sickrage.app.api.token['expires_in']) / 2):
if not sickrage.app.api.refresh_token():
IOLoop.current().call_later(5, self.update_network_timezones)
return
sickrage.app.log.debug('Updating network timezones')
session = sickrage.app.cache_db.session()
......
......@@ -1496,11 +1496,6 @@ class SearchProviders(dict):
IOLoop.current().call_later(5, self.update_urls)
return
if sickrage.app.api.token_time_remaining < (int(sickrage.app.api.token['expires_in']) / 2):
if not sickrage.app.api.refresh_token():
IOLoop.current().call_later(5, self.update_urls)
return
sickrage.app.log.debug('Updating search provider URLs')
for pID, pObj in self.all().items():
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment