Skip to content

Commit

Permalink
[service.subtitles.napisy24pl] 3.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
CaTzil committed Feb 12, 2023
1 parent d560894 commit 53fc332
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion service.subtitles.napisy24pl/addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="service.subtitles.napisy24pl" name="Napisy24.pl" version="3.0.5" provider-name="CaTz">
<addon id="service.subtitles.napisy24pl" name="Napisy24.pl" version="3.0.6" provider-name="CaTz">
<requires>
<import addon="xbmc.python" version="3.0.0"/>
<import addon="script.module.beautifulsoup4" version="4.6.2"/>
Expand Down
6 changes: 2 additions & 4 deletions service.subtitles.napisy24pl/resources/lib/NapisyUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,7 @@ def _search_tvshow(self, item):
if search_result is None:
return results # return empty set

search_result = json.loads(search_result, encoding="utf-8")

results = []
search_result = json.loads(search_result)

for result in search_result:
html = bs4.BeautifulSoup(result["table"], "html.parser")
Expand Down Expand Up @@ -349,7 +347,7 @@ def request(self, url, query_string=None, data=None, ajax=False, referer=None, c
pass

if 'application/json' in response.headers.get('content-type', ''):
content = json.loads(content, encoding="utf-8")
content = json.loads(content)
elif 'text/html' in response.headers.get('content-type', ''):
content = content.decode('utf-8', 'replace')

Expand Down

0 comments on commit 53fc332

Please sign in to comment.