Skip to content

Commit

Permalink
Merge a0896f9 into 1520ab8
Browse files Browse the repository at this point in the history
  • Loading branch information
newt-sc committed Dec 31, 2023
2 parents 1520ab8 + a0896f9 commit a308c89
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 13 deletions.
9 changes: 6 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
* [v3.10.0](https://github.com/newt-sc/a4kSubtitles/releases/tag/service.subtitles.a4ksubtitles%2Fservice.subtitles.a4ksubtitles-3.10.0):
* Small fix in SDH vs Forced flags checking.

* [v3.9.0](https://github.com/newt-sc/a4kSubtitles/releases/tag/service.subtitles.a4ksubtitles%2Fservice.subtitles.a4ksubtitles-3.9.0):
* Improve SDH and forced preferences handling.
* Improve SDH and Forced preferences handling.

* [v3.8.0](https://github.com/newt-sc/a4kSubtitles/releases/tag/service.subtitles.a4ksubtitles%2Fservice.subtitles.a4ksubtitles-3.8.0):
* Switch to new OpenSubtitles API.
Note: username and password are now mandatory for using OpenSubtitles.
* Fixes for Brazilian Portuguese language codes handling.

* [v3.7.0](https://github.com/newt-sc/a4kSubtitles/releases/tag/service.subtitles.a4ksubtitles%2Fservice.subtitles.a4ksubtitles-3.7.0):
* New option to auto select and enable embedded subtitles (was previously always enabled)
* New option to prefer forced subtitles on auto selection (was previously always enabled)
* New option to auto-select and enable embedded subtitles (was previously always enabled)
* New option to prefer Forced subtitles on auto selection (was previously always enabled)
* New option to prefer SDH subtitles on auto selection

* [v3.6.0](https://github.com/newt-sc/a4kSubtitles/releases/tag/service.subtitles.a4ksubtitles%2Fservice.subtitles.a4ksubtitles-3.6.0):
Expand Down
2 changes: 1 addition & 1 deletion a4kSubtitles/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def update_sub_stream():

player_props = core.kodi.get_kodi_player_subtitles()
prefer_sdh = core.kodi.get_bool_setting('general', 'prefer_sdh')
prefer_forced = core.kodi.get_bool_setting('general', 'prefer_forced')
prefer_forced = not prefer_sdh and core.kodi.get_bool_setting('general', 'prefer_forced')

preferredlang_code = core.utils.get_lang_id(preferredlang, core.kodi.xbmc.ISO_639_2)
sub_langs = [core.utils.get_lang_id(s, core.kodi.xbmc.ISO_639_2) for s in core.kodi.xbmc.Player().getAvailableSubtitleStreams()]
Expand Down
11 changes: 7 additions & 4 deletions 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="3.9.0"
version="3.10.0"
provider-name="Unknown">
<requires>
<import addon="script.module.requests"/>
Expand All @@ -27,17 +27,20 @@ Supports: OpenSubtitles, BSPlayer, Podnadpisi.NET, Subscene, Addic7ed
<screenshot>screenshot-03.png</screenshot>
</assets>
<news>
[v3.10.0]:
* Small fix in SDH vs Forced flags checking.

[v3.9.0]:
* Improve SDH and forced preferences handling.
* Improve SDH and Forced preferences handling.

[v3.8.0]:
* Switch to new OpenSubtitles API.
Note: username and password are now mandatory for using OpenSubtitles.
* Fixes for Brazilian Portuguese language codes handling.

[v3.7.0]:
* New option to auto select and enable embedded subtitles (was previously always enabled)
* New option to prefer forced subtitles on auto selection (was previously always enabled)
* New option to auto-select and enable embedded subtitles (was previously always enabled)
* New option to prefer Forced subtitles on auto selection (was previously always enabled)
* New option to prefer SDH subtitles on auto selection

[v3.6.0]:
Expand Down
11 changes: 7 additions & 4 deletions 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="3.9.0"
version="3.10.0"
provider-name="Unknown">
<requires>
<import addon="script.module.requests"/>
Expand All @@ -30,17 +30,20 @@ Supports: OpenSubtitles, BSPlayer, Podnadpisi.NET, Subscene, Addic7ed
<screenshot>screenshot-03.png</screenshot>
</assets>
<news>
[v3.10.0]:
* Small fix in SDH vs Forced flags checking.

[v3.9.0]:
* Improve SDH and forced preferences handling.
* Improve SDH and Forced preferences handling.

[v3.8.0]:
* Switch to new OpenSubtitles API.
Note: username and password are now mandatory for using OpenSubtitles.
* Fixes for Brazilian Portuguese language codes handling.

[v3.7.0]:
* New option to auto select and enable embedded subtitles (was previously always enabled)
* New option to prefer forced subtitles on auto selection (was previously always enabled)
* New option to auto-select and enable embedded subtitles (was previously always enabled)
* New option to prefer Forced subtitles on auto selection (was previously always enabled)
* New option to prefer SDH subtitles on auto selection

[v3.6.0]:
Expand Down
2 changes: 1 addition & 1 deletion packages/addons.xml.crc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6582014433a07252903058d4001b3c47fc848b8b
ca69f2639d18af6217c1ba22a035da181608040c

0 comments on commit a308c89

Please sign in to comment.