diff --git a/addon.xml b/addon.xml index 0f484de..cdaa4e9 100644 --- a/addon.xml +++ b/addon.xml @@ -1,5 +1,5 @@ - + @@ -24,7 +24,9 @@ fb4472 (at) aon.at https://github.com/fayer3/plugin.video.zappntv - Möglichkeit hinzugefügt, Serien über Rechtsklick zu favoriten hinzuzufügen -- Suche auf Betriebsystemen mit Multiprozess unterstützung beschleunigt (alles außer Android) +- Suche auf Betriebsystemen mit Multiprozess unterstützung beschleunigt (alles außer Android) +1.2.2: +- pfade für neue plugin routing addon angepasst, zerstört leider alte gespeicherte Favoriten, diese müssen neu hinzugefügt werden. resources/icon.png resources/fanart.png diff --git a/changelog.txt b/changelog.txt index cd39291..b2f660b 100644 --- a/changelog.txt +++ b/changelog.txt @@ -36,3 +36,5 @@ no changes in functionallity v1.2.0 - added option to add/remove favorites from the rightclick menu - speed up search on operating systems with multiprocess support (everything except Android) +v1.2.2: +- adapt paths to new plugin routing addon, sadly ruins old saved favourites, the need to be newly added. diff --git a/resources/lib/plugin.py b/resources/lib/plugin.py index f13594a..ea941b8 100644 --- a/resources/lib/plugin.py +++ b/resources/lib/plugin.py @@ -270,7 +270,7 @@ def show_category(category_id): addDirectoryItem(plugin.handle, "", ListItem(kodiutils.get_string(32004)), False) endOfDirectory(plugin.handle) -@plugin.route('/category/epg/id=/') +@plugin.route('/category/epg/id=') def show_epg(channel_id): icon = "" if 'icon' in plugin.args: @@ -291,7 +291,7 @@ def show_epg(channel_id): ListItem(kodiutils.get_string(32015).format(future_date.strftime("%d.%m.%Y"))), True) endOfDirectory(plugin.handle) -@plugin.route('/category/epg/id=/past/') +@plugin.route('/category/epg/id=/past') def show_epg_past(channel_id): icon = "" if 'icon' in plugin.args: @@ -308,7 +308,7 @@ def show_epg_past(channel_id): -@plugin.route('/category/epg/id=/date=/') +@plugin.route('/category/epg/id=/date=') def show_epg_programm(channel_id, date): icon = "" if 'icon' in plugin.args: @@ -343,7 +343,7 @@ def show_epg_programm(channel_id, date): addDirectoryItem(plugin.handle, url=None, listitem=listitem) endOfDirectory(plugin.handle) -@plugin.route('/category/mediathek/id=/') +@plugin.route('/category/mediathek/id=') def show_mediathek(mediathek_id): get_by_collection(mediathek_id, "1") endOfDirectory(plugin.handle) @@ -620,7 +620,7 @@ def play_video(video_id, channel): setResolvedUrl(plugin.handle, False, playitem) -@plugin.route('/category/by_category//') +@plugin.route('/category/by_category/id=') def get_by_category(category_id): dir = get_url(ids.categories_request_url.format(id=category_id), critical=False) dir_json = {} @@ -719,7 +719,7 @@ def utc_to_local(dt): if time.localtime().tm_isdst: return dt - timedelta(seconds=time.altzone) else: return dt - timedelta(seconds=time.timezone) -@plugin.route('/category/by_collection//page=/') +@plugin.route('/category/by_collection/id=/page=') def get_by_collection(collection_id, page): recursive = False if 'recursive' in plugin.args: @@ -808,7 +808,7 @@ def add_favorites_context_menu(listitem, path, name, icon, fanart): listitem.addContextMenuItems([(kodiutils.get_string(32009), 'RunScript('+ADDON.getAddonInfo('id') + ',remove,'+ quote(codecs.encode(path, 'UTF-8'))+')')]) return listitem -@plugin.route('/add_fav/') +@plugin.route('/add_fav') def add_favorite(): #data = plugin.args['query'][0].split('***') path = unquote(plugin.args['path'][0])