Skip to content

Commit

Permalink
release: v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
newt-sc committed May 23, 2020
1 parent 7aeb636 commit a7afa7a
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
* [v1.1.0](https://github.com/newt-sc/a4kSubtitles/releases/tag/service.subtitles.a4ksubtitles%2Fservice.subtitles.a4ksubtitles-1.1.0):
* Improve imdb id scraping

* [v1.0.1](https://github.com/newt-sc/a4kSubtitles/releases/tag/service.subtitles.a4ksubtitles%2Fservice.subtitles.a4ksubtitles-1.0.1):
* Add screenshots

Expand Down
4 changes: 4 additions & 0 deletions a4kSubtitles/lib/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ def __scrape_imdb_id(core, meta):

def filter_movie_results(result):
year_start = result.get('y', None)
result_type = result.get('q', None)
return (
result_type is not None and result_type in ['feature', 'TV movie'] and
result['l'].lower() == title and
(year_start is not None and year_start == year)
)
Expand All @@ -149,7 +151,9 @@ def filter_movie_results(result):
def filter_tvshow_results(result):
year_start = result.get('y', None)
year_end = result.get('yr', '-').split('-')[1]
result_type = result.get('q', None)
return (
result_type is not None and result_type in ['TV series', 'TV mini-series'] and
result['l'].lower() == show_title and
(year_start is not None and year_start <= episode_year) and
(year_end == '' or int(year_end) >= episode_year)
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="1.0.1"
version="1.1.0"
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, Addic7ed
<screenshot>screenshot-03.png</screenshot>
</assets>
<news>
[v1.1.0]:
* Improve imdb id scraping

[v1.0.1]:
* Add screenshots

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="1.0.1"
version="1.1.0"
provider-name="Unknown">
<requires>
<import addon="xbmc.python" version="2.25.0"/>
Expand All @@ -30,6 +30,9 @@ Supports: OpenSubtitles, BSPlayer, Podnadpisi.NET, SubDB, Subscene, Addic7ed
<screenshot>screenshot-03.png</screenshot>
</assets>
<news>
[v1.1.0]:
* Improve imdb id scraping

[v1.0.1]:
* Add screenshots

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

0 comments on commit a7afa7a

Please sign in to comment.