Skip to content

Commit

Permalink
release: v0.0.26
Browse files Browse the repository at this point in the history
  • Loading branch information
newt-sc committed May 9, 2020
1 parent b8c13ec commit dcd4185
Show file tree
Hide file tree
Showing 24 changed files with 6,141 additions and 96 deletions.
2 changes: 2 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ show-source = True

ignore =
E126,
E128,
E131,
E302,
E305,
E306,
E402,
E701,
E704,
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
* [v0.0.26](https://github.com/newt-sc/a4kSubtitles/releases/tag/service.subtitles.a4ksubtitles%2Fservice.subtitles.a4ksubtitles-0.0.26):
* Support for Addic7ed
* Improve cache of the last results
* Don't show progress when showing results from cache

* [v0.0.25](https://github.com/newt-sc/a4kSubtitles/releases/tag/service.subtitles.a4ksubtitles%2Fservice.subtitles.a4ksubtitles-0.0.25):
* Fix cancellation thread exit

Expand Down
5 changes: 4 additions & 1 deletion a4kSubtitles/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
from .services import services
from .search import search
from .download import download
from .data import data

core = sys.modules[__name__]
api_mode_enabled = True
Expand All @@ -39,7 +40,9 @@ def main(handle, paramstring): # pragma: no cover
core.handle = handle

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

Expand Down
10 changes: 10 additions & 0 deletions a4kSubtitles/data/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# -*- coding: utf-8 -*-

import importlib
from a4kSubtitles.lib import utils

__all = utils.get_all_relative_entries(__file__, ext='')

data = {}
for service_name in __all:
data[service_name] = importlib.import_module('a4kSubtitles.data.%s' % service_name)
6 changes: 6 additions & 0 deletions a4kSubtitles/data/addic7ed/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# -*- coding: utf-8 -*-

from a4kSubtitles.lib import utils

languages = utils.get_relative_json(__file__, 'languages')
tvshows = utils.get_relative_json(__file__, 'tvshows')
66 changes: 66 additions & 0 deletions a4kSubtitles/data/addic7ed/languages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"All": "0",
"Albanian": "52",
"Arabic": "38",
"Armenian": "50",
"Azerbaijani": "48",
"Bengali": "47",
"Bosnian": "44",
"Bulgarian": "35",
"Cantonese": "64",
"Català": "12",
"Chinese (Simplified)": "41",
"Chinese (Traditional)": "24",
"Croatian": "31",
"Czech": "14",
"Danish": "30",
"Dutch": "17",
"English": "1",
"Estonian": "54",
"Euskera": "13",
"Finnish": "28",
"French": "8",
"French (Canadian)": "53",
"Galego": "15",
"German": "11",
"Greek": "27",
"Hebrew": "23",
"Hindi": "55",
"Hungarian": "20",
"Icelandic": "56",
"Indonesian": "37",
"Italian": "7",
"Japanese": "32",
"Kannada": "66",
"Klingon": "61",
"Korean": "42",
"Latvian": "57",
"Lithuanian": "58",
"Macedonian": "49",
"Malay": "40",
"Malayalam": "67",
"Marathi": "62",
"Norwegian": "29",
"Persian": "43",
"Polish": "21",
"Portuguese": "9",
"Portuguese (Brazilian)": "10",
"Romanian": "26",
"Russian": "19",
"Serbian (Cyrillic)": "39",
"Serbian (Latin)": "36",
"Sinhala": "60",
"Slovak": "25",
"Slovenian": "22",
"Spanish": "4",
"Spanish (Latin America)": "6",
"Spanish (Spain)": "5",
"Swedish": "18",
"Tamil": "59",
"Telugu": "63",
"Thai": "46",
"Turkish": "16",
"Ukrainian": "51",
"Vietnamese": "45",
"Welsh": "65"
}
Loading

0 comments on commit dcd4185

Please sign in to comment.