Commit 135d8685 authored by echel0n's avatar echel0n

Fixed AttributeError for gktorrent provider.

Refactored log messages for rss cache updater to debug.
parent 045620bf
# Changelog
- * 24af3a5 - 2019-02-24: Release v9.4.73
- * 98e7330 - 2019-02-24: Fixed AttributeError for gktorrent provider. Refactored log messages for rss cache updater to debug.
- * ffd8fa4 - 2019-02-24: Release v9.4.73
- * 47572b6 - 2019-02-24: Release v9.4.72
- * b86d9d2 - 2019-02-23: Release v9.4.71
- * 342b1de - 2019-02-23: Added ability to save `add_show_year` as a default option when adding new shows.
......
......@@ -20,10 +20,10 @@ class RSSCacheUpdater(object):
for providerID, providerObj in sickrage.app.search_providers.sort().items():
if providerObj.isEnabled:
sickrage.app.log.info("Updating RSS cache for provider: [{}]".format(providerObj.name))
sickrage.app.log.debug("Updating RSS cache for provider: [{}]".format(providerObj.name))
threading.currentThread().setName(self.name + "::[" + providerObj.name + "]")
providerObj.cache.update(force)
threading.currentThread().setName(self.name)
sickrage.app.log.info("Updated RSS cache for provider: [{}]".format(providerObj.name))
sickrage.app.log.debug("Updated RSS cache for provider: [{}]".format(providerObj.name))
self.amActive = False
......@@ -95,10 +95,11 @@ class GKTorrentProvider(TorrentProvider):
continue
try:
title = download_url = None
info_cell = cells[0].a
title = info_cell.get_text()
download_url = self._get_download_link(urljoin(self.urls['base_url'], info_cell.get('href')))
if info_cell:
title = info_cell.get_text()
download_url = self._get_download_link(urljoin(self.urls['base_url'], info_cell.get('href')))
if not all([title, download_url]):
continue
......
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