Skip to content

Commit

Permalink
release: v1.39.0
Browse files Browse the repository at this point in the history
  • Loading branch information
newt-sc committed Apr 3, 2022
1 parent da5d671 commit ef36eee
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
* [v1.39.0](https://github.com/newt-sc/a4kStreaming/releases/tag/plugin.video.a4kstreaming%2Fplugin.video.a4kstreaming-1.39.0):
* Handle season browsing issue when IMDB returns start episode date after the end episode date
* Fix issue when searching with upper case first letter

* [v1.38.0](https://github.com/newt-sc/a4kStreaming/releases/tag/plugin.video.a4kstreaming%2Fplugin.video.a4kstreaming-1.38.0):
* Dolby Vision stream detection and filtering (DV sources disabled by default)

Expand Down
15 changes: 14 additions & 1 deletion a4kStreaming/explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ def search(core, params):

request = {
'method': 'GET',
'url': 'https://v2.sg.media-imdb.com/suggestion/%s/%s.json' % (query[:1], query),
'url': 'https://v2.sg.media-imdb.com/suggestion/%s/%s.json' % (query[:1].lower(), query),
}

response = core.request.execute(core, request)
Expand Down Expand Up @@ -1169,6 +1169,19 @@ def query(core, params):
if params.day_end:
releasedOnOrBefore['day'] = int(params.day_end)

try:
d1 = core.datetime(releasedOnOrAfter['year'], releasedOnOrAfter['month'], releasedOnOrAfter['day'])
d2 = core.datetime(releasedOnOrBefore['year'], releasedOnOrBefore['month'], releasedOnOrBefore['day'])
if d1 > d2:
releasedOnOrAfter['year'] = d2.year
releasedOnOrAfter['month'] = 1
releasedOnOrAfter['day'] = 1
releasedOnOrBefore['year'] = d1.year
releasedOnOrBefore['month'] = d1.month
releasedOnOrBefore['day'] = d1.day
except:
pass

page_size = core.kodi.get_int_setting('general.page_size')
lists_page_size = core.kodi.get_int_setting('general.lists_page_size')

Expand Down
2 changes: 1 addition & 1 deletion a4kStreaming/lib/kodi_mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def __get_addon_info(name):
elif name == 'path':
return os.path.join(os.path.dirname(__file__), '../..')
__addon.getAddonInfo = __get_addon_info
__addon.getSetting = lambda _: None
__addon.getSetting = lambda _: ''
xbmcaddon.Addon = lambda _: __addon

# xbmcplugin
Expand Down
6 changes: 5 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="plugin.video.a4kstreaming"
name="a4kStreaming"
version="1.38.0"
version="1.39.0"
provider-name="Unknown">
<requires>
<import addon="script.module.requests"/>
Expand Down Expand Up @@ -32,6 +32,10 @@ Designed for low-end devices and Estuary skin.
<screenshot>screenshot-06.jpg</screenshot>
</assets>
<news>
[v1.39.0]:
* Handle season browsing issue when IMDB returns start episode date after the end episode date
* Fix issue when searching with upper case first letter

[v1.38.0]:
* Dolby Vision stream detection and filtering (DV sources disabled by default)

Expand Down
6 changes: 5 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="plugin.video.a4kstreaming"
name="a4kStreaming"
version="1.38.0"
version="1.39.0"
provider-name="Unknown">
<requires>
<import addon="script.module.requests"/>
Expand Down Expand Up @@ -35,6 +35,10 @@ Designed for low-end devices and Estuary skin.
<screenshot>screenshot-06.jpg</screenshot>
</assets>
<news>
[v1.39.0]:
* Handle season browsing issue when IMDB returns start episode date after the end episode date
* Fix issue when searching with upper case first letter

[v1.38.0]:
* Dolby Vision stream detection and filtering (DV sources disabled by default)

Expand Down
2 changes: 1 addition & 1 deletion packages/addons.xml.crc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
186da629a1fb84c085a78ab2c0d55c7b84039b1b
16f97fb59c732dd9a38ff96419d84887f2d9aff0

0 comments on commit ef36eee

Please sign in to comment.