mirror of
https://github.com/rwinkhart/backtone.git
synced 2026-08-28 04:46:54 -04:00
Add support for APIs (in addition to scraping)
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<input>
|
||||
<apiMethodEndpointPayload
|
||||
><![CDATA[POST@https://api.enchor.us/search@{"search":"*","per_page":10,"page":1,"instrument":null,"difficulty":null,"drumType":null,"drumsReviewed":false,"sort":null,"source":"bridge"}]]></apiMethodEndpointPayload>
|
||||
<regex
|
||||
><![CDATA[{\"ordering\":.*?,\"name\":\"(.*?)\",\"artist\":\"(.*?)\",\"album\":\"(.*?)\",.*?\",\"md5\":\"(.*?)\",.*?,\"charter\":\"(.*?)\",]]></regex>
|
||||
<loadSeconds>1</loadSeconds>
|
||||
<maxFeedItems>10</maxFeedItems>
|
||||
<feed>
|
||||
<title>
|
||||
<parent>Chorus Encore</parent>
|
||||
<captureGroupConnector />
|
||||
<captureGroupIndex>1</captureGroupIndex>
|
||||
<captureGroupConnector> by </captureGroupConnector>
|
||||
<captureGroupIndex>2</captureGroupIndex>
|
||||
</title>
|
||||
<link><parent>https://www.enchor.us/</parent>
|
||||
<captureGroupConnector>https://www.enchor.us/chart/</captureGroupConnector>
|
||||
<captureGroupIndex>4</captureGroupIndex>
|
||||
</link>
|
||||
<description>
|
||||
<parent>Latest YARG/CH charts published to Chorus Encore</parent>
|
||||
<captureGroupConnector>Charter: </captureGroupConnector>
|
||||
<captureGroupIndex>5</captureGroupIndex>
|
||||
<captureGroupConnector> | Album: </captureGroupConnector>
|
||||
<captureGroupIndex>3</captureGroupIndex>
|
||||
</description>
|
||||
<authorName>
|
||||
<parent>Gamers</parent>
|
||||
<captureGroupIndex>5</captureGroupIndex>
|
||||
</authorName>
|
||||
<authorEmail />
|
||||
</feed>
|
||||
</input>
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
<input>
|
||||
<flareSolverrURL>http://PLACEHOLDER:8191/v1</flareSolverrURL>
|
||||
<flareSolverrEndpoint>http://PLACEHOLDER:8191/v1</flareSolverrEndpoint>
|
||||
<regex
|
||||
><![CDATA[<ce-search-result class=\\"card rounded-none bg-base-100 shadow-xl\\"><!----><!----><div class=\\"flex\\"><img alt=\\"Album art\\" loading=\\"lazy\\" class=\\"object-cover w-40\\" src=\\".*?\\"><!----><div class=\\"flex-grow p-3\\"><div class=\\"text-xl \[text-wrap:balance\] sm:text-2xl\\">(.*?)<\/div><!----><div><span class=\\"text-sm font-bold \[text-wrap:balance\] sm:text-base\\">Album:<\/span> (.*?)<\/div><div><span class=\\"text-sm font-bold \[text-wrap:balance\] sm:text-base\\">Genre:<\/span> .*?Charter:<\/div><a target=\\"_blank\\" class=\\"link-hover link\\" href=\\".*?\\">(.*?)<\/a><\/div><!----><!----><!----><!---->.*?for=\\"downloadVideos_(.*?)\\"]]></regex>
|
||||
<loadSeconds>1</loadSeconds>
|
||||
Reference in New Issue
Block a user