Commit 7e3baa8f authored by echel0n's avatar echel0n
Browse files

Disabled warning for when no nzb/torrent provider is picked if no nzb/torrent client enabled.

Disabled search column for display show view if no nzb/torrent is picked.
parent 9969a0b3
# Changelog
- * f1b4113 - 2018-10-28: Added function to strip accents to encoding functions
- * 30d75a7 - 2018-10-28: Disabled warning for when no nzb/torrent provider is picked if no nzb/torrent client enabled. Disabled search column for display show view if no nzb/torrent is picked.
- * 9969a0b - 2018-10-28: Added function to strip accents to encoding functions
- * bf93454 - 2018-10-27: Release v9.4.1
- * 3dbd257 - 2018-10-27: Release v9.3.100
- * 479d80e - 2018-10-27: Removed app_id and replaced with app_sub. App now links its self to SSO user via userid instead of appid. SSL cert and key now stored/retrieved from data folder.
......
......@@ -128,6 +128,9 @@ class SearchQueue(srQueue):
return length
def put(self, item, *args, **kwargs):
if all([not sickrage.app.config.use_nzbs, not sickrage.app.config.use_torrents]):
return
if not len(sickrage.app.search_providers.enabled()):
sickrage.app.log.warning("Search Failed, No NZB/Torrent providers enabled")
return
......
......@@ -317,10 +317,6 @@ def searchProviders(show, episodes, manualSearch=False, downCurQuality=False, up
:return: results for search
"""
if not len(sickrage.app.search_providers.enabled()):
sickrage.app.log.warning("No NZB/Torrent providers enabled. Please check your settings.")
return
# build name cache for show
sickrage.app.name_cache.build(show)
......
......@@ -552,7 +552,9 @@
<th data-sorter="false" ${("class=\"col-ep columnSelector-false\"", "class=\"col-ep\"")[bool(sickrage.app.config.download_url)]}>${_('Download')}</th>
<th data-sorter="false" ${("class=\"col-ep columnSelector-false\"", "class=\"col-ep\"")[bool(sickrage.app.config.use_subtitles)]}>${_('Subtitles')}</th>
<th data-sorter="false" class="col-status">${_('Status')}</th>
% if len(sickrage.app.search_providers.enabled()):
<th data-sorter="false" class="col-search">${_('Search')}</th>
% endif
</tr>
</thead>
......@@ -686,6 +688,7 @@
<td class="table-fit text-nowrap col-status">${statusStrings[curStatus]}</td>
% endif
% if len(sickrage.app.search_providers.enabled()):
<td class="table-fit col-search">
% if int(epResult["season"]) != 0:
% if ( int(epResult["status"]) in Quality.SNATCHED + Quality.DOWNLOADED ):
......@@ -711,6 +714,7 @@
</a>
% endif
</td>
% endif
</tr>
% endfor
</tbody>
......
Supports Markdown
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