Skip to content

Commit

Permalink
release: v1.35.0
Browse files Browse the repository at this point in the history
  • Loading branch information
newt-sc committed Nov 29, 2021
1 parent 9f96399 commit 3f525e7
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
* [v1.35.0](https://github.com/newt-sc/a4kStreaming/releases/tag/plugin.video.a4kstreaming%2Fplugin.video.a4kstreaming-1.35.0):
* Improve title result size calculation

* [v1.34.0](https://github.com/newt-sc/a4kStreaming/releases/tag/plugin.video.a4kstreaming%2Fplugin.video.a4kstreaming-1.34.0):
* Add movie results max size filter

Expand Down
8 changes: 6 additions & 2 deletions a4kStreaming/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,12 @@ def sanitize_results(check, debrid):
result['ref'] = params.title

size = 0
if check['filesize']:
size = float(check['filesize'][i]) / 1024 / 1024 / 1024
if not use_recommended and status and check['filesize']:
tmpsize = float(check['filesize'][i]) / 1024 / 1024 / 1024
if result['package'] == 'single':
size = tmpsize
elif check['files'] and check['files'][i]:
size = tmpsize / len(check['files'][i])
if size <= 0:
size = float(result['size']) / 1024
result['size'] = round(size, 1)
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.34.0"
version="1.35.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.35.0]:
* Improve title result size calculation

[v1.34.0]:
* Add movie results max size filter

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.34.0"
version="1.35.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.35.0]:
* Improve title result size calculation

[v1.34.0]:
* Add movie results max size filter

Expand Down
2 changes: 1 addition & 1 deletion packages/addons.xml.crc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0133a8a6f1b2c51403ffc52ed28ffa88819d2fa0
3b146c14efc081a97fef923789649c39a892c4d3

0 comments on commit 3f525e7

Please sign in to comment.