From 212b041ec62d768d7ea46524a24f78dd9bb305e6 Mon Sep 17 00:00:00 2001 From: Alex Fazzari Date: Sat, 12 Feb 2022 15:36:50 +1300 Subject: [PATCH] Add searching for movies and tv shows via Venom plugin --- broker/en.json | 2 ++ helpers.js | 14 ++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/broker/en.json b/broker/en.json index fefe40e..f2e8069 100644 --- a/broker/en.json +++ b/broker/en.json @@ -97,5 +97,7 @@ "kodiPlayMovie:1": "play (the movie )?(?.+) with a delay of (?\\d+)", "kodiSearchSerenForMovies": "search seren for( the)? movie (?.+)", "kodiSearchSerenForShows": "search seren for( the)?( tv)? show (?.+)" + "kodiSearchVenomForMovies": "search venom for ( the)? movie (?.+)", + "kodiSearchVenomForShows": "search venom for( the)?( tv)? show (?.+)" } diff --git a/helpers.js b/helpers.js index 787a426..4b266c1 100644 --- a/helpers.js +++ b/helpers.js @@ -1484,4 +1484,18 @@ exports.kodiSearchSerenForMovies = (request, response) => { // eslint-disable-li let Kodi = request.kodi; const params = 'plugin://plugin.video.seren?action=moviesSearch&actionArgs=${searchString}'; return kodiOpenVideoWindow(params, Kodi); + +exports.kodiSearchVenomForShows = function(request, response) { + let searchString = request.query.q.trim(); + let Kodi = request.kodi; + const params = "plugin://plugin.video.venom/?action=tvSearchterm&name=" +searchString; + return kodiOpenVideoWindow(params, Kodi); +}; + +exports.kodiSearchVenomForMovies = function(request, response) { + let searchString = request.query.q.trim(); + let Kodi = request.kodi; + const params = "plugin://plugin.video.venom/?action=movieSearchterm&name=" +searchString; + return kodiOpenVideoWindow(params, Kodi); + };