Commit 8279ecea authored by echel0n's avatar echel0n
Browse files

Fixed quality badge for manual searches

parent 7530eece
# Changelog
- * ba44b3c - 2018-08-24: Release v9.3.59
- * bc6ba65 - 2018-08-24: Fixed quality badge for manual searches
- * fb31d87 - 2018-08-24: Release v9.3.59
- * 2a1d2ce - 2018-08-24: Pre-Release v9.3.59.dev3
- * b18bd58 - 2018-08-24: Misc improvements made to websockets code
- * a1cc57d - 2018-08-24: Pre-Release v9.3.59.dev2
......
......@@ -44,10 +44,9 @@
cssClass = "Custom"
qualityString = "Custom"
if overrideClass is None:
cssClass = "badge " + cssClass
else:
cssClass = "badge text-white " + cssClass
if overrideClass:
cssClass = overrideClass
%>
<span ${title} class="${cssClass} text-white">${qualityString}</span>
<span ${title} class="${cssClass}">${qualityString}</span>
</%def>
......@@ -26,7 +26,7 @@ from .util import _getLogger
def interface_addresses(family=socket.AF_INET):
try:
for fam, _, _, _, sockaddr in socket.getaddrinfo('', None):
for fam, __, __, __, sockaddr in socket.getaddrinfo('', None):
if family == fam:
yield sockaddr[0]
except socket.gaierror:
......
......@@ -467,7 +467,7 @@ class Action(object):
# Marshall the response to python data types
out = {}
for name, statevar in self.argsdef_out:
_, value = marshal_value(statevar['datatype'], soap_response[name])
__, value = marshal_value(statevar['datatype'], soap_response[name])
out[name] = value
return out
......
......@@ -561,7 +561,7 @@ $(document).ready(function ($) {
// Update Status and Quality
rSearchTerm = /(\w+)\s\((.+?)\)/;
htmlContent = ep.status.replace(rSearchTerm, "$1" + ' <span class="quality ' + ep.quality + '">' + "$2" + '</span>');
htmlContent = ep.status.replace(rSearchTerm, "$1" + ' <span class="badge text-white ' + ep.quality + '">' + "$2" + '</span>');
parent.closest('tr').prop("class", ep.overview + " season-" + ep.season + " seasonstyle font-weight-bold text-dark");
}
// update the status column if it exists
......@@ -632,7 +632,7 @@ $(document).ready(function ($) {
}
// applying the quality class
var rSearchTerm = /(\w+)\s\((.+?)\)/;
htmlContent = data.result.replace(rSearchTerm, "$1" + ' <span class="quality ' + data.quality + '">' + "$2" + '</span>');
htmlContent = data.result.replace(rSearchTerm, "$1" + ' <span class="badge text-white ' + data.quality + '">' + "$2" + '</span>');
// update the status column if it exists
parent.siblings('.col-status').html(htmlContent);
// Only if the queuing was successful, disable the onClick event of the loading image
......
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