Skip to content

Commit

Permalink
release: v1.19.0
Browse files Browse the repository at this point in the history
  • Loading branch information
newt-sc committed Feb 13, 2021
1 parent dfaa73c commit 9ed3616
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 11 deletions.
1 change: 0 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ ignore =
E704,
E722,
E731,
F812,
F401,
W503,
W504,
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
* [v1.19.0](https://github.com/newt-sc/a4kStreaming/releases/tag/plugin.video.a4kstreaming%2Fplugin.video.a4kstreaming-1.19.0):
* Fix PM browsing in KODI 18 - redefining variable from scope

* [v1.18.0](https://github.com/newt-sc/a4kStreaming/releases/tag/plugin.video.a4kstreaming%2Fplugin.video.a4kstreaming-1.18.0):
* Show only video files in Premiumize folder browsing by default - allows using "Play from here" KODI context menu to play the files sequentially
* New context menu:
Expand Down
2 changes: 1 addition & 1 deletion a4kStreaming/explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ def cloud(core, params):
filename_without_ext = core.os.path.splitext(file['name'])[0]
subfile_ext = ['srt', 'sub', 'ass', 'smi', 'ssa']
subfile_names = ['%s.%s' % (filename_without_ext, ext) for ext in subfile_ext]
subfiles = [file for file in files if any(subfile_name in file['name'] for subfile_name in subfile_names)]
subfiles = [f for f in files if any(subfile_name in f['name'] for subfile_name in subfile_names)]
subfile = next(iter(subfiles), None)

items.append({
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="plugin.video.a4kstreaming"
name="a4kStreaming"
version="1.18.0"
version="1.19.0"
provider-name="Unknown">
<requires>
<import addon="script.module.requests"/>
Expand Down Expand Up @@ -32,6 +32,9 @@ Designed for low-end devices and Estuary skin.
<screenshot>screenshot-06.jpg</screenshot>
</assets>
<news>
[v1.19.0]:
* Fix PM browsing in KODI 18 - redefining variable from scope

[v1.18.0]:
* Show only video files in Premiumize folder browsing by default - allows using "Play from here" KODI context menu to play the files sequentially
* New context menu:
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="plugin.video.a4kstreaming"
name="a4kStreaming"
version="1.18.0"
version="1.19.0"
provider-name="Unknown">
<requires>
<import addon="script.module.requests"/>
Expand Down Expand Up @@ -35,6 +35,9 @@ Designed for low-end devices and Estuary skin.
<screenshot>screenshot-06.jpg</screenshot>
</assets>
<news>
[v1.19.0]:
* Fix PM browsing in KODI 18 - redefining variable from scope

[v1.18.0]:
* Show only video files in Premiumize folder browsing by default - allows using "Play from here" KODI context menu to play the files sequentially
* New context menu:
Expand Down
2 changes: 1 addition & 1 deletion packages/addons.xml.crc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
44e8bf8f5ceb7ad6109d871a90da8210737c9af4
cd1c304f982531eba245be6140dc4f45f66c3a08
8 changes: 2 additions & 6 deletions tests/test_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,20 +418,16 @@ def test_premiumize_files():

assert len(fn.results) > 0

result = [result for result in fn.results if 'aws' in result['label'].lower()][0]
result = [r for r in fn.results if 'aws' in r['label'].lower()][0]
fn = __invoke(a4kstreaming_api, 'cloud', { 'type': 'premiumize_files', 'id': result['params']['id'] })

assert len(fn.results) > 0

result = [result for result in fn.results if 'aws' in result['label'].lower()][0]
result = [r for r in fn.results if 'aws' in r['label'].lower()][0]
fn = __invoke(a4kstreaming_api, 'cloud', { 'type': 'premiumize_files', 'id': result['params']['id'] })

assert len(fn.results) > 0

fn = __invoke(a4kstreaming_api, 'cloud', { 'type': 'premiumize_files', 'id': fn.results[0]['params']['id'] })

assert len(fn.results) > 0

def test_premiumize_transfers():
a4kstreaming_api = api.A4kStreamingApi({'kodi': True})

Expand Down

0 comments on commit 9ed3616

Please sign in to comment.