Skip to content

Commit

Permalink
release: v1.25.0
Browse files Browse the repository at this point in the history
  • Loading branch information
newt-sc committed Mar 30, 2021
1 parent a4a0004 commit 96d3e18
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
* [v1.25.0](https://github.com/newt-sc/a4kStreaming/releases/tag/plugin.video.a4kstreaming%2Fplugin.video.a4kstreaming-1.25.0):
* Additional requests error handling

* [v1.24.0](https://github.com/newt-sc/a4kStreaming/releases/tag/plugin.video.a4kstreaming%2Fplugin.video.a4kstreaming-1.24.0):
* Improve Actor/Actress/Director titles browsing

Expand Down
12 changes: 10 additions & 2 deletions a4kStreaming/explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@ def __get_episode_title(core, season, episode, title):
return 'S%sE%s. %s' % (season_zfill, episode_zfill, title)
return '%s' % title

def __handle_request_error(core, params, response):
def __handle_request_error(core, params, response=None):
if not params.silent:
core.kodi.notification('Something went wrong. Check logs')
core.logger.notice(response.text)
if response:
core.logger.notice(response.text)

def __check_imdb_auth_config(core, params):
if core.kodi.get_setting('imdb.at-main') == '':
Expand Down Expand Up @@ -1581,6 +1582,13 @@ def query(core, params):
return []

data = core.utils.sanitize_response(data)
if data is None:
if not params.retry:
params.retry = True
return query(core, params)
else:
__handle_request_error(core, params)
return []

if params.type in ['status', 'listid', 'ratings']:
return data
Expand Down
5 changes: 4 additions & 1 deletion addon.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.a4kstreaming"
name="a4kStreaming"
version="1.24.0"
version="1.25.0"
provider-name="Unknown">
<requires>
<import addon="script.module.requests"/>
Expand Down Expand Up @@ -32,6 +32,9 @@ Designed for low-end devices and Estuary skin.
<screenshot>screenshot-06.jpg</screenshot>
</assets>
<news>
[v1.25.0]:
* Additional requests error handling

[v1.24.0]:
* Improve Actor/Actress/Director titles browsing

Expand Down
5 changes: 4 additions & 1 deletion packages/addons.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<addons>
<addon id="plugin.video.a4kstreaming"
name="a4kStreaming"
version="1.24.0"
version="1.25.0"
provider-name="Unknown">
<requires>
<import addon="script.module.requests"/>
Expand Down Expand Up @@ -35,6 +35,9 @@ Designed for low-end devices and Estuary skin.
<screenshot>screenshot-06.jpg</screenshot>
</assets>
<news>
[v1.25.0]:
* Additional requests error handling

[v1.24.0]:
* Improve Actor/Actress/Director titles browsing

Expand Down
2 changes: 1 addition & 1 deletion packages/addons.xml.crc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
a2d83bb0df4b8f24cb3a8f0403f66f9166fc9a0e
639143a1abcefdb87ac6940b28da1f257fac88cd

0 comments on commit 96d3e18

Please sign in to comment.