From 5c814b4cd335f5890254c8ac334868da8d03e88b Mon Sep 17 00:00:00 2001
From: Nekojimi <Jim@nekojimi.moe>
Date: Thu, 30 Sep 2021 21:15:06 +0100
Subject: [PATCH] Updated dependencies and searchproviders.yml

---
 pom.xml             | 15 ++++++++++
 searchproviders.yml | 73 +++++++++++++++++++++++++++++++++++----------
 2 files changed, 73 insertions(+), 15 deletions(-)

diff --git a/pom.xml b/pom.xml
index 2323ef7..6cf6da2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -18,6 +18,21 @@
             <artifactId>JDA</artifactId>
             <version>4.3.0_277</version>
         </dependency>
+        <dependency>
+            <groupId>io.humble</groupId>
+            <artifactId>humble-video-all</artifactId>
+            <version>0.3.0</version>
+        </dependency>
+        <dependency>
+            <groupId>commons-io</groupId>
+            <artifactId>commons-io</artifactId>
+            <version>2.11.0</version>
+        </dependency>
+        <dependency>
+            <groupId>uk.co.chamsys</groupId>
+            <artifactId>JavaMavenTemplate</artifactId>
+            <version>1.0-SNAPSHOT</version>
+        </dependency>
     </dependencies>
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
diff --git a/searchproviders.yml b/searchproviders.yml
index 578dece..256236a 100644
--- a/searchproviders.yml
+++ b/searchproviders.yml
@@ -1,21 +1,64 @@
+#- name: Soundcloud
+  #abbr:SC
+  #type: ApiSearcher
+  #search_url: https://api.soundcloud.com/tracks?access=playable&limit=10&linked_partitioning=true
+  #search_fields:
+    #query: q
+  #format: json
+  #result_array: collection
+  #result_fields:
+    #title: title
+    #link: uri
+    
 - name: Soundcloud
-  search_url: https://soundcloud.com/search/sounds?q=$QUERY
-  result_item: li.searchList__item
+  abbr: SC
+  type: WebScraperSearcher
+  search_url: https://soundcloud.com/search/sounds
+  search_fields:
+    query: q
+  format: html
+  result_selector: "#app > noscript:nth-child(6) > ul:nth-child(2) > li"
   result_fields:
-    artist: .soundTitle__username
-    title: .soundTitle__title
-    link_href: a.soundTitle__title
+    title: a
+    link: a
+    
 - name: Bandcamp
-  search_url: https://bandcamp.com/search?q=$QUERY&item_type
-  result_item: li.searchresult
+  abbr: BC
+  type: WebScraperSearcher
+  search_url: https://bandcamp.com/search
+  search_fields:
+    query: q
+  format: html
+  result_selector: li.searchresult
   result_fields:
     title: .heading
-    link_href: .heading a
+    link: .heading a
     album_artist: .subhead
-# - name: Youtube
-#   search_url: 
-#   result_item: 
-#   result_fields:
-#     title: 
-#     link_href: 
-#     album_artist: 
\ No newline at end of file
+    
+- name: Jamendo
+  abbr: JM
+  type: WebScraperSearcher
+  search_url: https://api.jamendo.com/v3.0/tracks/?format=jsonpretty&limit=10&include=musicinfo&groupby=artist_id
+  search_fields:
+    query: search
+    secret: client_id
+    artist: artist_name
+    album: album_name
+    genre: tags
+  format: json
+  result_selector: /results
+  result_fields:
+    title: /name
+    artist: /artist_name
+    album: /album_name
+    link: /shareurl
+    
+#- name: Youtube
+  #abbr: YT
+  #type: SearchHackSearcher
+  #site: youtube.com/watch
+
+#- name: Spotify
+  #abbr: SP
+  #type: SearchHackSearcher
+  #site: open.spotify.com/track