Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release: v0.0.24 #26

Merged
merged 1 commit into from
May 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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