Skip to content

Commit

Permalink
Fix error with tornado returning bytes for requests arguments causing…
Browse files Browse the repository at this point in the history
… nzbToMedia to fail. Fixes clinton-hall/nzbToMedia#1765 (comment)

Signed-off-by: miigotu <miigotu@gmail.com>
  • Loading branch information
miigotu committed Aug 15, 2020
1 parent 343c9d9 commit 1584229
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 59 deletions.
2 changes: 1 addition & 1 deletion sickchill/oldbeard/providers/kat.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def search(self, search_strings, age=0, ep_obj=None):
return results

def find_domain(self):
data = self.get_url("https://kickass.help")
data = self.get_url("https://kickass2.help")
if data:
with BS4Parser(data, "html5lib") as html:
mirrors = html(class_='domainLink')
Expand Down
6 changes: 3 additions & 3 deletions sickchill/views/api/webapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ def set_default_headers(self):
# self.set_header('Cache-Control', 'no-store, no-cache, must-revalidate, max-age=0')

def get(self, *args, **kwargs):
kwargs = self.request.arguments
# noinspection PyCompatibility
# kwargs = self.request.arguments
kwargs = urllib.parse.parse_qs(self.request.query)
for arg, value in kwargs.items():
if len(value) == 1:
kwargs[arg] = value[0]
Expand Down Expand Up @@ -145,7 +145,7 @@ def call_dispatcher(self, args, kwargs): # pylint:disable=too-many-branches

out_dict = {}
if commands:
commands = commands.decode().split("|")
commands = commands.split("|")
multi_commands = len(commands) > 1
for cmd in commands:
cur_args, cur_kwargs = self.filter_params(cmd, args, kwargs)
Expand Down
6 changes: 2 additions & 4 deletions sickchill/views/server_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,8 @@ def __init__(self, options=None):

# Static File Handlers
self.app.add_handlers(".*$", [
url(r'{0}/favicon.ico'.format(self.options['web_root']), StaticFileHandler,
{"path": os.path.join(self.options['data_root'], 'images/ico/favicon.ico')}, name='favicon'),
url(r'/favicon.ico', StaticFileHandler,
{"path": os.path.join(self.options['data_root'], 'images/ico/favicon.ico')}, name='favicon2'),
url(r'{0}/(favicon\.ico)'.format(self.options['web_root']), StaticFileHandler,
{"path": os.path.join(self.options['data_root'], 'images/ico')}, name='favicon'),

url(r'{0}/images/(.*)'.format(self.options['web_root']), StaticFileHandler,
{"path": os.path.join(self.options['data_root'], 'images')}, name='images'),
Expand Down
51 changes: 0 additions & 51 deletions sickchill/views/urls.py

This file was deleted.

0 comments on commit 1584229

Please sign in to comment.