Skip to content

Commit

Permalink
release: v0.0.24
Browse files Browse the repository at this point in the history
  • Loading branch information
newt-sc committed May 8, 2020
1 parent 62fd43b commit 86e4ce1
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
* [v0.0.24](https://github.com/newt-sc/a4kSubtitles/releases/tag/service.subtitles.a4ksubtitles%2Fservice.subtitles.a4ksubtitles-0.0.24):
* Show progress dialog only for search

* [v0.0.23](https://github.com/newt-sc/a4kSubtitles/releases/tag/service.subtitles.a4ksubtitles%2Fservice.subtitles.a4ksubtitles-0.0.23):
* Add progress dialog
* Support cancellation
Expand Down
12 changes: 7 additions & 5 deletions a4kSubtitles/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,18 @@ def main(handle, paramstring): # pragma: no cover
core.api_mode_enabled = False
core.handle = handle

core.progress_dialog = kodi.get_progress_dialog()
core.progress_text = ''

params = dict(utils.parse_qsl(paramstring))
if params['action'] in ('search', 'manualsearch'):
core.progress_text = ''
core.progress_dialog = kodi.get_progress_dialog()

search(core, params)

core.progress_dialog.close()
core.progress_dialog = None

elif params['action'] == 'download':
params['action_args'] = json.loads(params['action_args'])
download(core, params)

core.progress_dialog.close()
core.progress_dialog = None
kodi.xbmcplugin.endOfDirectory(handle)
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="service.subtitles.a4ksubtitles"
name="a4kSubtitles"
version="0.0.23"
version="0.0.24"
provider-name="Unknown">
<requires>
<import addon="xbmc.python" version="2.25.0"/>
Expand All @@ -24,6 +24,9 @@ Supports: OpenSubtitles, BSPlayer, Podnadpisi.NET, SubDB, Subscene
<icon>icon.png</icon>
</assets>
<news>
[v0.0.24]:
* Show progress dialog only for search

[v0.0.23]:
* Add progress dialog
* Support cancellation
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="service.subtitles.a4ksubtitles"
name="a4kSubtitles"
version="0.0.23"
version="0.0.24"
provider-name="Unknown">
<requires>
<import addon="xbmc.python" version="2.25.0"/>
Expand All @@ -27,6 +27,9 @@ Supports: OpenSubtitles, BSPlayer, Podnadpisi.NET, SubDB, Subscene
<icon>icon.png</icon>
</assets>
<news>
[v0.0.24]:
* Show progress dialog only for search

[v0.0.23]:
* Add progress dialog
* Support cancellation
Expand Down
2 changes: 1 addition & 1 deletion packages/addons.xml.crc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
553d2e41de6d23d6a36ddb6d5eac0f083ba861f1
bde756a15604614e4047d6525816b3577f1cb7b8

0 comments on commit 86e4ce1

Please sign in to comment.