Commit 031b555f authored by echel0n's avatar echel0n

Disabled loading provider URLs from SR API, needs to be fixed.

parent bf5a7731
......@@ -104,6 +104,12 @@ class ContextSession(sqlalchemy.orm.Session):
if close:
self.close()
def __enter__(self):
return self
def __exit__(self, exc_type, exc_val, exc_tb):
self.close()
class SRDatabaseBase(object):
def as_dict(self):
......
......@@ -104,12 +104,12 @@ class GenericProvider(object):
@property
def urls(self):
try:
resp = sickrage.app.api.provider.get_urls(self.id)
if resp and 'data' in resp:
return json.loads(resp['data']['urls'])
except (JSONDecodeError, APIError) as e:
pass
# try:
# resp = sickrage.app.api.provider.get_urls(self.id)
# if resp and 'data' in resp:
# return json.loads(resp['data']['urls'])
# except (JSONDecodeError, APIError) as e:
# pass
return self._urls
......
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