From 960858e930e5dad19acb67e60c42ba1d8f857977 Mon Sep 17 00:00:00 2001 From: AwesomeToaster Date: Sat, 2 Oct 2021 15:34:12 +0100 Subject: [PATCH] Add Youtube search provider. --- searchproviders.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/searchproviders.yml b/searchproviders.yml index 256236a..23bd607 100644 --- a/searchproviders.yml +++ b/searchproviders.yml @@ -10,6 +10,24 @@ #title: title #link: uri +- name: Youtube + abbr: YT + type: WebScraperSearcher + search_url: https://www.googleapis.com/youtube/v3/search?part=snippet&type=video + search_fields: + query: q + secret: key + search_headers: + #Authorisation: Bearer $SECRET + Accept: application/json + format: json + result_selector: /items + result_fields: + title: /snippet/title + artist: /snippet/channelTitle + link: /id/videoId + link_format: https://youtube.com/watch?v=$LINK + - name: Soundcloud abbr: SC type: WebScraperSearcher