diff --git a/CHANGES.md b/CHANGES.md
index c9455fa7..402de4d3 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -18,6 +18,8 @@
* Fix Events shutdown (a manual start-up is required after updating to this fix)
* Add 'PB', 'EB', 'ZB', 'YB' to output size formats
* Fix save option display freespace
+* Fix load web dl types from db if url fetching fails
+* Change ManageSearches layout between collapsed Provider Failures tables from single to multi line
### 0.13.15 (2018-01-26 10:30:00 UTC)
diff --git a/gui/slick/interfaces/default/manage_manageSearches.tmpl b/gui/slick/interfaces/default/manage_manageSearches.tmpl
index 91809e52..636467c9 100644
--- a/gui/slick/interfaces/default/manage_manageSearches.tmpl
+++ b/gui/slick/interfaces/default/manage_manageSearches.tmpl
@@ -69,18 +69,21 @@
No current failures. Failure stats display here when appropriate.
#else
Some providers can be often down over periods, SickGear will back off then retry connecting at a later time
+ $prov['name']
#if $prov['active']
#if $prov['next_try']
#set nt = $str($prov['next_try']).split('.', 2)
- ... is blocked until $sbdatetime.sbdatetime.sbftime($sbdatetime.sbdatetime.now() + $prov['next_try'], markup=True) (in $nt[0])
+ ... is blocked until $sbdatetime.sbdatetime.sbftime($sbdatetime.sbdatetime.now() + $prov['next_try'], markup=True) (in $nt[0])
#end if
#else
- ... is not enabled
+ ... is not enabled
#end if
+
@@ -129,6 +132,7 @@
#end for
+
#end if
#end for
#end if
diff --git a/gui/slick/js/manageSearches.js b/gui/slick/js/manageSearches.js
index 266dc041..e0ae9f71 100644
--- a/gui/slick/js/manageSearches.js
+++ b/gui/slick/js/manageSearches.js
@@ -21,12 +21,16 @@ $(function(){
});
$('.shows-less').click(function(){
- $(this).nextAll('table:first').hide();
+ var table$ = $(this).nextAll('table:first');
+ table$ = table$.length ? table$ : $(this).parent().nextAll('table:first');
+ table$.hide();
$(this).hide();
$(this).prevAll('input:first').show();
});
$('.shows-more').click(function(){
- $(this).nextAll('table:first').show();
+ var table$ = $(this).nextAll('table:first');
+ table$ = table$.length ? table$ : $(this).parent().nextAll('table:first');
+ table$.show();
$(this).hide();
$(this).nextAll('input:first').show();
});
diff --git a/sickbeard/properFinder.py b/sickbeard/properFinder.py
index f97396ab..53d6a785 100644
--- a/sickbeard/properFinder.py
+++ b/sickbeard/properFinder.py
@@ -142,7 +142,12 @@ def load_webdl_types():
default_types = [('Amazon', r'AMZN|AMAZON'), ('Netflix', r'NETFLIX|NF'), ('Hulu', r'HULU')]
url = 'https://raw.githubusercontent.com/SickGear/sickgear.extdata/master/SickGear/webdl_types.txt'
url_data = helpers.getURL(url)
- if url_data:
+
+ my_db = db.DBConnection()
+ sql_results = my_db.select('SELECT * FROM webdl_types')
+ old_types = [(r['dname'], r['regex']) for r in sql_results]
+
+ if isinstance(url_data, basestring) and url_data.strip():
try:
for line in url_data.splitlines():
try:
@@ -155,9 +160,6 @@ def load_webdl_types():
except (IOError, OSError):
pass
- my_db = db.DBConnection()
- sql_results = my_db.select('SELECT * FROM webdl_types')
- old_types = [(r['dname'], r['regex']) for r in sql_results]
cl = []
for nt in new_types:
if nt not in old_types:
@@ -169,6 +171,8 @@ def load_webdl_types():
if cl:
my_db.mass_action(cl)
+ else:
+ new_types = old_types
sickbeard.WEBDL_TYPES = new_types + default_types