From 929209cf1dd2e83a495ce8af663bc0081d6cf902 Mon Sep 17 00:00:00 2001 From: newt-sc <47229722+newt-sc@users.noreply.github.com> Date: Wed, 3 Mar 2021 01:14:03 +0200 Subject: [PATCH] release: v1.23.0 --- CHANGELOG.md | 3 +++ a4kStreaming/explorer.py | 20 ++++++++++---------- addon.xml | 5 ++++- packages/addons.xml | 5 ++++- packages/addons.xml.crc | 2 +- 5 files changed, 22 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 45e6b00..2a674bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +* [v1.23.0](https://github.com/newt-sc/a4kStreaming/releases/tag/plugin.video.a4kstreaming%2Fplugin.video.a4kstreaming-1.23.0): + * Fix force select context menu + * [v1.22.0](https://github.com/newt-sc/a4kStreaming/releases/tag/plugin.video.a4kstreaming%2Fplugin.video.a4kstreaming-1.22.0): * Improve episode thumbnail meta diff --git a/a4kStreaming/explorer.py b/a4kStreaming/explorer.py index 0507b5d..cb5de8c 100644 --- a/a4kStreaming/explorer.py +++ b/a4kStreaming/explorer.py @@ -62,8 +62,8 @@ def __set_title_contextmenu(core, title, list_item): tvseries = titleType == 'tvSeries' has_rating = title.get('userRating', None) is not None context_menu_items = [ - ('IMDb: %s rating' % ('Update' if has_rating else 'Set'), 'RunPlugin(plugin://plugin.video.a4kstreaming/?action=profile&type=rate&id=%s)' % title['id']), - ('IMDb: Trailer', 'RunPlugin(plugin://plugin.video.a4kstreaming/?action=trailer&id=%s&play=true)' % trailer), + ('IMDb: %s rating' % ('Update' if has_rating else 'Set'), 'RunPlugin(%s?action=profile&type=rate&id=%s)' % (core.url, title['id'])), + ('IMDb: Trailer', 'RunPlugin(%s?action=trailer&id=%s&play=true)' % (core.url, trailer)), ('IMDb: Cast & Crew', 'ActivateWindow(Videos,%s?action=query&type=browse&id=%s,return)' % (core.url, title['id'])), ] @@ -79,27 +79,27 @@ def __set_title_contextmenu(core, title, list_item): 'playcount': 1 }) context_menu_items.append( - ('IMDb: Mark as unwatched', 'RunPlugin(plugin://plugin.video.a4kstreaming/?action=profile&type=mark_as_unwatched&id=%s)' % title['id']) + ('IMDb: Mark as unwatched', 'RunPlugin(%s?action=profile&type=mark_as_unwatched&id=%s)' % (core.url, title['id'])) ) else: context_menu_items.append( - ('IMDb: Mark as watched', 'RunPlugin(plugin://plugin.video.a4kstreaming/?action=profile&type=mark_as_watched&id=%s)' % title['id']) + ('IMDb: Mark as watched', 'RunPlugin(%s?action=profile&type=mark_as_watched&id=%s)' % (core.url, title['id'])) ) context_menu_items.extend([ - ('IMDb: Add to watchlist', 'RunPlugin(plugin://plugin.video.a4kstreaming/?action=profile&type=watchlist_add&id=%s)' % title['id']), - ('IMDb: Remove from watchlist', 'RunPlugin(plugin://plugin.video.a4kstreaming/?action=profile&type=watchlist_remove&id=%s)' % title['id']), - ('IMDb: Add to list', 'RunPlugin(plugin://plugin.video.a4kstreaming/?action=profile&type=list_add&id=%s)' % title['id']), - ('IMDb: Remove from list', 'RunPlugin(plugin://plugin.video.a4kstreaming/?action=profile&type=list_remove&id=%s)' % title['id']), + ('IMDb: Add to watchlist', 'RunPlugin(%s?action=profile&type=watchlist_add&id=%s)' % (core.url, title['id'])), + ('IMDb: Remove from watchlist', 'RunPlugin(%s?action=profile&type=watchlist_remove&id=%s)' % (core.url, title['id'])), + ('IMDb: Add to list', 'RunPlugin(%s?action=profile&type=list_add&id=%s)' % (core.url, title['id'])), + ('IMDb: Remove from list', 'RunPlugin(%s?action=profile&type=list_remove&id=%s)' % (core.url, title['id'])), ]) if not tvseries: context_menu_items.extend([ - ('Debrid: Add sources', 'RunPlugin(plugin://plugin.video.a4kstreaming/?action=cache_sources&id=%s)' % title['id']) + ('Debrid: Add sources', 'RunPlugin(%s?action=cache_sources&id=%s)' % (core.url, title['id'])) ]) if core.kodi.get_bool_setting('general.autoplay'): context_menu_items.extend([ - ('Force source select', 'RunPlugin(plugin://plugin.video.a4kstreaming/?action=play&id=%s&force_sourceselect=true)' % title['id']) + ('Force source select', 'PlayMedia(%s?action=play&id=%s&force_sourceselect=true)' % (core.url, title['id'])) ]) list_item.addContextMenuItems(context_menu_items) diff --git a/addon.xml b/addon.xml index 8f2553d..4cfdc77 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.23.0]: + * Fix force select context menu + [v1.22.0]: * Improve episode thumbnail meta diff --git a/packages/addons.xml b/packages/addons.xml index db7ab0c..63d010c 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.23.0]: + * Fix force select context menu + [v1.22.0]: * Improve episode thumbnail meta diff --git a/packages/addons.xml.crc b/packages/addons.xml.crc index b9e479c..7244f10 100644 --- a/packages/addons.xml.crc +++ b/packages/addons.xml.crc @@ -1 +1 @@ -69f36d540b9ae31dc0ab096a5a8d937a192f93d1 \ No newline at end of file +0768f82d4e9aeae609e61b95c32dd20d657c0d4f \ No newline at end of file