Skip to content

Commit

Permalink
release: v0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
newt-sc committed Jan 15, 2021
1 parent e44bd34 commit aa0c0ae
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 7 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,31 @@
* [v0.8.0](https://github.com/newt-sc/a4kStreaming/releases/tag/plugin.video.a4kstreaming%2Fplugin.video.a4kstreaming-0.8.0):
* Fix auto video selection in KODI 19

* [v0.7.0](https://github.com/newt-sc/a4kStreaming/releases/tag/plugin.video.a4kstreaming%2Fplugin.video.a4kstreaming-0.7.0):
* Fix KODI 19 Matrix support
* Speedup list items creation

* [v0.6.0](https://github.com/newt-sc/a4kStreaming/releases/tag/plugin.video.a4kstreaming%2Fplugin.video.a4kstreaming-0.6.0):
* Improve auto episode selection from packs

* [v0.5.0](https://github.com/newt-sc/a4kStreaming/releases/tag/plugin.video.a4kstreaming%2Fplugin.video.a4kstreaming-0.5.0):
* New context menu:
* More like this - Showing similar titles

* [v0.4.0](https://github.com/newt-sc/a4kStreaming/releases/tag/plugin.video.a4kstreaming%2Fplugin.video.a4kstreaming-0.4.0):
* Update description

* [v0.3.0](https://github.com/newt-sc/a4kStreaming/releases/tag/plugin.video.a4kstreaming%2Fplugin.video.a4kstreaming-0.3.0):
* Fix browsing shows which do not have any episodes with release dates
* Fix some titles being filtered out

* [v0.2.0](https://github.com/newt-sc/a4kStreaming/releases/tag/plugin.video.a4kstreaming%2Fplugin.video.a4kstreaming-0.2.0):
* Speedup loading by removing query for watchlist status
* Order lists by date added (desc)
* Add separate setting for lists page size
* Improve posters quality
* Improve cast for movies

* [v0.1.0](https://github.com/newt-sc/a4kStreaming/releases/tag/plugin.video.a4kstreaming%2Fplugin.video.a4kstreaming-0.1.0):
* IMDb:
* Authentication via cookie
Expand Down
2 changes: 1 addition & 1 deletion a4kStreaming/explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1563,7 +1563,7 @@ def sorter():
link = None
if response.status_code == 200:
parsed_response = core.json.loads(response.text)
video_ext = map(lambda v: '.%s' % v.upper(), core.utils.video_containers())
video_ext = list(map(lambda v: '.%s' % v.upper(), core.utils.video_containers()))
size = 1048576 * 200

files = parsed_response.get('content', [])
Expand Down
4 changes: 2 additions & 2 deletions a4kStreaming/lib/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

def __get_cache(filepath):
try:
with open(filepath, 'r') as f:
with utils.open_file_wrapper(filepath)() as f:
data = json.loads(f.read())
return utils.DictAsObject(data)
except:
Expand All @@ -21,7 +21,7 @@ def __get_cache(filepath):
def __save_cache(filepath, cache):
try:
json_data = json.dumps(cache, indent=2)
with open(filepath, 'w') as f:
with utils.open_file_wrapper(filepath, mode='w')() as f:
f.write(json_data)
except: pass

Expand Down
7 changes: 6 additions & 1 deletion a4kStreaming/lib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ def chunk(it, size):
it = iter(it)
return iter(lambda: tuple(islice(it, size)), ())

def open_file_wrapper(file, mode='r', encoding='utf-8'):
if py2:
return lambda: open(file, mode)
return lambda: open(file, mode, encoding=encoding)

def get_json(path, filename):
path = path if os.path.isdir(path) else os.path.dirname(path)
if not filename.endswith('.json'):
Expand All @@ -80,7 +85,7 @@ def get_json(path, filename):
if not os.path.exists(json_path):
return {}

with open(json_path) as json_result:
with open_file_wrapper(json_path)() as json_result:
return json.load(json_result)

def imdb_auth_request_props():
Expand Down
11 changes: 10 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="0.7.0"
version="0.8.0"
provider-name="Unknown">
<requires>
<import addon="script.module.requests"/>
Expand Down Expand Up @@ -32,25 +32,34 @@ Designed for low-end devices and Estuary skin.
<screenshot>screenshot-06.jpg</screenshot>
</assets>
<news>
[v0.8.0]:
* Fix auto video selection in KODI 19

[v0.7.0]:
* Fix KODI 19 Matrix support
* Speedup list items creation

[v0.6.0]:
* Improve auto episode selection from packs

[v0.5.0]:
* New context menu:
* More like this - Showing similar titles

[v0.4.0]:
* Update description

[v0.3.0]:
* Fix browsing shows which do not have any episodes with release dates
* Fix some titles being filtered out

[v0.2.0]:
* Speedup loading by removing query for watchlist status
* Order lists by date added (desc)
* Add separate setting for lists page size
* Improve posters quality
* Improve cast for movies

[v0.1.0]:
* IMDb:
* Authentication via cookie
Expand Down
11 changes: 10 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="0.7.0"
version="0.8.0"
provider-name="Unknown">
<requires>
<import addon="script.module.requests"/>
Expand Down Expand Up @@ -35,25 +35,34 @@ Designed for low-end devices and Estuary skin.
<screenshot>screenshot-06.jpg</screenshot>
</assets>
<news>
[v0.8.0]:
* Fix auto video selection in KODI 19

[v0.7.0]:
* Fix KODI 19 Matrix support
* Speedup list items creation

[v0.6.0]:
* Improve auto episode selection from packs

[v0.5.0]:
* New context menu:
* More like this - Showing similar titles

[v0.4.0]:
* Update description

[v0.3.0]:
* Fix browsing shows which do not have any episodes with release dates
* Fix some titles being filtered out

[v0.2.0]:
* Speedup loading by removing query for watchlist status
* Order lists by date added (desc)
* Add separate setting for lists page size
* Improve posters quality
* Improve cast for movies

[v0.1.0]:
* IMDb:
* Authentication via cookie
Expand Down
2 changes: 1 addition & 1 deletion packages/addons.xml.crc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6b70df446a5c529ca59d54efae70fc940246fb8c
537186339ab1f01128d64254bd2fd5423488d1a1

0 comments on commit aa0c0ae

Please sign in to comment.