diff --git a/package.json b/package.json index 9009d550bd..d44b0a55a7 100644 --- a/package.json +++ b/package.json @@ -97,7 +97,9 @@ "space": 4, "rules": { "unicorn/filename-case": "off", - "unicorn/prefer-node-append": "off" + "unicorn/prefer-node-append": "off", + "unicorn/prefer-global-this": "off", + "unicorn/expiring-todo-comments": "off" }, "esnext": true, "envs": [ diff --git a/sickchill/gui/slick/js/core.js b/sickchill/gui/slick/js/core.js index 238e417d6c..c72e996283 100644 --- a/sickchill/gui/slick/js/core.js +++ b/sickchill/gui/slick/js/core.js @@ -815,7 +815,7 @@ const SICKCHILL = { $('#testNMJv2-result').html(loading); nmjv2.host = $('#nmjv2_host').val(); nmjv2.dbloc = ''; - const radios = document.getElementsByName('nmjv2_dbloc'); + const radios = document.querySelectorAll('nmjv2_dbloc'); for (const element of radios) { if (element.checked) { nmjv2.dbloc = element.value; diff --git a/sickchill/helper/common.py b/sickchill/helper/common.py index 3f1122c8e6..9d51c0e9a7 100644 --- a/sickchill/helper/common.py +++ b/sickchill/helper/common.py @@ -1,7 +1,7 @@ +import os import platform import re import uuid -import os from fnmatch import fnmatch from os import PathLike from pathlib import Path