Skip to content

Commit

Permalink
release: v3.18.3
Browse files Browse the repository at this point in the history
  • Loading branch information
xZetsubou authored Nov 16, 2024
1 parent 9ffe07c commit 5bd1780
Show file tree
Hide file tree
Showing 6 changed files with 16 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 @@
* [v3.18.3](https://github.com/newt-sc/a4kSubtitles/releases/tag/service.subtitles.a4ksubtitles%2Fservice.subtitles.a4ksubtitles-3.18.3):
* Auto Download: Fix selecting incorrect episode in archive file

* [v3.18.2](https://github.com/newt-sc/a4kSubtitles/releases/tag/service.subtitles.a4ksubtitles%2Fservice.subtitles.a4ksubtitles-3.18.2):
* SubSource: Fix foreign languages

Expand Down
2 changes: 1 addition & 1 deletion a4kSubtitles/download.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
subtitles_exts = ['.srt', '.sub']
subtitles_exts_secondary = ['.smi', '.ssa', '.aqt', '.jss', '.ass', '.rt', '.txt']
subtitles_exts_secondary = ['.smi', '.ssa', '.aqt', '.jss', '.ass', '.rt']
subtitles_exts_all = subtitles_exts + subtitles_exts_secondary

def __download(core, filepath, request):
Expand Down
4 changes: 3 additions & 1 deletion a4kSubtitles/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ def __add_results(core, results, meta): # pragma: no cover
for item in results:
listitem = core.kodi.create_listitem(item)

item['action_args'].setdefault("episodeid", meta.episode.zfill(3) if meta.episode else "")
action_args = core.utils.quote_plus(core.json.dumps(item['action_args']))

core.kodi.xbmcplugin.addDirectoryItem(
Expand Down Expand Up @@ -256,6 +255,9 @@ def sorter(x):
name = x['name'].lower()
nameparts = core.re.split(regexsplitwords, name)

# Add episode number to action_args to detect the desired episode later during sub extraction.
x['action_args'].setdefault("episodeid", meta.episode.zfill(3) if meta.episode else "")

cleaned_nameparts = list(filter(len, map(_filter_name, nameparts)))
cleaned_file_nameparts = list(filter(len, map(_filter_name, meta_nameparts)))
matching_offset = 0
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="service.subtitles.a4ksubtitles"
name="a4kSubtitles"
version="3.18.2"
version="3.18.3"
provider-name="Unknown">
<requires>
<import addon="script.module.requests"/>
Expand All @@ -27,6 +27,9 @@ Supports: OpenSubtitles, BSPlayer, Podnadpisi.NET, SubDL, Addic7ed
<screenshot>screenshot-03.png</screenshot>
</assets>
<news>
[v3.18.3]:
* Auto Download: Fix selecting incorrect episode in archive file

[v3.18.2]:
* SubSource: Fix foreign languages

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="3.18.2"
version="3.18.3"
provider-name="Unknown">
<requires>
<import addon="script.module.requests"/>
Expand All @@ -30,6 +30,9 @@ Supports: OpenSubtitles, BSPlayer, Podnadpisi.NET, SubDL, Addic7ed
<screenshot>screenshot-03.png</screenshot>
</assets>
<news>
[v3.18.3]:
* Auto Download: Fix selecting incorrect episode in archive file

[v3.18.2]:
* SubSource: Fix foreign languages

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

0 comments on commit 5bd1780

Please sign in to comment.