From 3f525e7d44ff974061c036f56a0cf7cefdf6a153 Mon Sep 17 00:00:00 2001 From: newt-sc <47229722+newt-sc@users.noreply.github.com> Date: Tue, 30 Nov 2021 00:36:54 +0200 Subject: [PATCH] release: v1.35.0 --- CHANGELOG.md | 3 +++ a4kStreaming/provider.py | 8 ++++++-- addon.xml | 5 ++++- packages/addons.xml | 5 ++++- packages/addons.xml.crc | 2 +- 5 files changed, 18 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 95e2e95..97e89f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/a4kStreaming/provider.py b/a4kStreaming/provider.py index 473eda1..a444450 100644 --- a/a4kStreaming/provider.py +++ b/a4kStreaming/provider.py @@ -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) diff --git a/addon.xml b/addon.xml index 4b9b507..5eeafe3 100644 --- a/addon.xml +++ b/addon.xml @@ -1,7 +1,7 @@ @@ -32,6 +32,9 @@ Designed for low-end devices and Estuary skin. screenshot-06.jpg +[v1.35.0]: + * Improve title result size calculation + [v1.34.0]: * Add movie results max size filter diff --git a/packages/addons.xml b/packages/addons.xml index be645c9..ebd60b2 100644 --- a/packages/addons.xml +++ b/packages/addons.xml @@ -4,7 +4,7 @@ @@ -35,6 +35,9 @@ Designed for low-end devices and Estuary skin. screenshot-06.jpg +[v1.35.0]: + * Improve title result size calculation + [v1.34.0]: * Add movie results max size filter diff --git a/packages/addons.xml.crc b/packages/addons.xml.crc index d7f0e3f..11eac73 100644 --- a/packages/addons.xml.crc +++ b/packages/addons.xml.crc @@ -1 +1 @@ -0133a8a6f1b2c51403ffc52ed28ffa88819d2fa0 \ No newline at end of file +3b146c14efc081a97fef923789649c39a892c4d3 \ No newline at end of file