Skip to content

Commit

Permalink
release: v1.18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
newt-sc committed Feb 13, 2021
1 parent 8078313 commit dfaa73c
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 10 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
* [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:
* Premiumize: All Files - available on PM folders, allows browsing without filters

* [v1.17.0](https://github.com/newt-sc/a4kStreaming/releases/tag/plugin.video.a4kstreaming%2Fplugin.video.a4kstreaming-1.17.0):
* Support subtitles from Premiumize files browsing if located next to video file with same name

Expand Down
17 changes: 10 additions & 7 deletions a4kStreaming/explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -814,12 +814,14 @@ def cloud(core, params):
isvideo = core.os.path.splitext(file['name'])[1].upper() in video_ext
subfile = None

if isvideo:
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)]
subfile = next(iter(subfiles), None)
if not isvideo and not params.force_allfiles:
continue

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)]
subfile = next(iter(subfiles), None)

items.append({
'label': file['name'],
Expand All @@ -841,7 +843,8 @@ def cloud(core, params):
'id': file['id'],
},
'contextmenu': {
'Premiumize: Delete': 'RunPlugin(plugin://plugin.video.a4kstreaming/?action=cloud&type=premiumize_folder_delete&id=%s)' % file['id']
'Premiumize: All Files': 'ActivateWindow(Videos,plugin://plugin.video.a4kstreaming/?action=cloud&type=premiumize_files&id=%s&force_allfiles=true,return)' % file['id'],
'Premiumize: Delete': 'RunPlugin(plugin://plugin.video.a4kstreaming/?action=cloud&type=premiumize_folder_delete&id=%s)' % file['id'],
}
})

Expand Down
7 changes: 6 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.17.0"
version="1.18.0"
provider-name="Unknown">
<requires>
<import addon="script.module.requests"/>
Expand Down Expand Up @@ -32,6 +32,11 @@ Designed for low-end devices and Estuary skin.
<screenshot>screenshot-06.jpg</screenshot>
</assets>
<news>
[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:
* Premiumize: All Files - available on PM folders, allows browsing without filters

[v1.17.0]:
* Support subtitles from Premiumize files browsing if located next to video file with same name

Expand Down
7 changes: 6 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.17.0"
version="1.18.0"
provider-name="Unknown">
<requires>
<import addon="script.module.requests"/>
Expand Down Expand Up @@ -35,6 +35,11 @@ Designed for low-end devices and Estuary skin.
<screenshot>screenshot-06.jpg</screenshot>
</assets>
<news>
[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:
* Premiumize: All Files - available on PM folders, allows browsing without filters

[v1.17.0]:
* Support subtitles from Premiumize files browsing if located next to video file with same name

Expand Down
2 changes: 1 addition & 1 deletion packages/addons.xml.crc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0f2147345dd20d599bbe349266cbd04b2baa80ea
44e8bf8f5ceb7ad6109d871a90da8210737c9af4

0 comments on commit dfaa73c

Please sign in to comment.