Skip to content

Commit

Permalink
release: v1.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
newt-sc committed Feb 3, 2021
1 parent 89d27c9 commit 0479c26
Show file tree
Hide file tree
Showing 6 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.8.0](https://github.com/newt-sc/a4kStreaming/releases/tag/plugin.video.a4kstreaming%2Fplugin.video.a4kstreaming-1.8.0):
* Ignore sample videos in RD's resolve files selection

* [v1.7.0](https://github.com/newt-sc/a4kStreaming/releases/tag/plugin.video.a4kstreaming%2Fplugin.video.a4kstreaming-1.7.0):
* Speedup source searching for episodes from still airing seasons

Expand Down
6 changes: 5 additions & 1 deletion a4kStreaming/explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2219,9 +2219,13 @@ def resolve_rd():
files = []
try:
file_ids = []
title_name = provider_params.title.title.lower()
for file_id in result['debrid_files'].keys():
file = result['debrid_files'][file_id]
if core.os.path.splitext(file['filename'])[1].upper() in video_ext and int(file['filesize']) > size:
is_video = core.os.path.splitext(file['filename'])[1].upper() in video_ext
is_enough_size = int(file['filesize']) > size
is_sample = 'sample' not in title_name and 'sample' in file['filename'].lower()
if is_video and is_enough_size and not is_sample:
file_ids.append(file_id)

request = core.debrid.realdebrid_select(auth, id, files=','.join(file_ids))
Expand Down
2 changes: 1 addition & 1 deletion a4kStreaming/lib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def video_containers():
return ['3GP', '3G2', 'ASF', 'WMV', 'AVI', 'DIVX', 'EVO', 'F4V', 'FLV', 'MKV', 'MK3D', 'MP4', 'M4V', 'MPG', 'MPEG', 'M2P', 'PS', 'TS', 'M2TS', 'MXF', 'OGG', 'OGV', 'OGX', 'MOV', 'QT', 'RMVB', 'VOB', 'WEBM']

def clean_release_title(title):
return re.sub(r'\s+', ' ', re.sub(r'\-|\_|\.', ' ', title))
return re.sub(r'\s+', ' ', re.sub(r'\-|\_|\.|\,|\?|\!|\[|\]|\{|\}|\(|\)|\||\'|\"|\|\\|\/|\`|\~|\^|\<|\>', ' ', title))

def cleanup_result(result, no_meta=False):
title = result['release_title'].upper()
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.7.0"
version="1.8.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.8.0]:
* Ignore sample videos in RD's resolve files selection

[v1.7.0]:
* Speedup source searching for episodes from still airing seasons

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.7.0"
version="1.8.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.8.0]:
* Ignore sample videos in RD's resolve files selection

[v1.7.0]:
* Speedup source searching for episodes from still airing seasons

Expand Down
2 changes: 1 addition & 1 deletion packages/addons.xml.crc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6ba309b34a0d03be2fe655f120db7b49b73bdf6c
56c4f14870169ca974255af3b10da732a35af10b

0 comments on commit 0479c26

Please sign in to comment.