Skip to content

Commit

Permalink
release: v1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
newt-sc committed Feb 1, 2021
1 parent 9bcbc1d commit 2311074
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
* [v1.2.0](https://github.com/newt-sc/a4kStreaming/releases/tag/plugin.video.a4kstreaming%2Fplugin.video.a4kstreaming-1.2.0):
* Prompt for episode selection for uncomplete packs with single video

* [v1.1.0](https://github.com/newt-sc/a4kStreaming/releases/tag/plugin.video.a4kstreaming%2Fplugin.video.a4kstreaming-1.1.0):
* Fix episode auto selection being skipped for some results

Expand Down
4 changes: 3 additions & 1 deletion a4kStreaming/explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2301,6 +2301,7 @@ def delete_magnet():
if len(video_files) > 0:
files = video_files

filtered = False
try:
if len(files) > 1 and result['ref'].mediatype == 'episode':
season_zfill = str(result['ref'].season).zfill(2)
Expand All @@ -2320,10 +2321,11 @@ def delete_magnet():
episodes = list(filter(lambda v: any(match in v['path'] for match in matches), files))
if len(episodes) == 1:
files = episodes
filtered = True
except Exception as e:
core.logger.notice(e)

if len(files) > 1:
if len(files) > 1 or (len(files) == 1 and not filtered and result['package'] in ['show', 'season']):
file_results = {}
for file in files:
file_result = {
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.1.0"
version="1.2.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.2.0]:
* Prompt for episode selection for uncomplete packs with single video

[v1.1.0]:
* Fix episode auto selection being skipped for some results

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.1.0"
version="1.2.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.2.0]:
* Prompt for episode selection for uncomplete packs with single video

[v1.1.0]:
* Fix episode auto selection being skipped for some results

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

0 comments on commit 2311074

Please sign in to comment.