mirror of
https://github.com/rwinkhart/backtone.git
synced 2026-08-28 04:46:54 -04:00
Improve XML formatting
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
<input>
|
||||
<flareSolverrURL>http://PLACEHOLDER:8191/v1</flareSolverrURL>
|
||||
<loadSeconds>1</loadSeconds>
|
||||
<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>
|
||||
><![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>
|
||||
<maxFeedItems>10</maxFeedItems>
|
||||
<feed>
|
||||
<title>
|
||||
|
||||
@@ -32,9 +32,9 @@ type feedT struct {
|
||||
AuthorEmail feedFieldInfoT `xml:"authorEmail"`
|
||||
}
|
||||
type inputT struct {
|
||||
LoadSeconds float32 `xml:"loadSeconds"`
|
||||
Regex string `xml:"regex"`
|
||||
FlareSolverrURL string `xml:"flareSolverrURL"`
|
||||
Regex string `xml:"regex"`
|
||||
LoadSeconds float32 `xml:"loadSeconds"`
|
||||
MaxFeedItems int `xml:"maxFeedItems"`
|
||||
Feed feedT `xml:"feed"`
|
||||
}
|
||||
@@ -44,9 +44,9 @@ func main() {
|
||||
if len(os.Args) < 2 {
|
||||
demoInputBytes, _ := xml.MarshalIndent(
|
||||
inputT{
|
||||
LoadSeconds: 2.5,
|
||||
Regex: "PLACEHOLDER",
|
||||
FlareSolverrURL: "http://127.0.0.1:8191",
|
||||
Regex: "PLACEHOLDER",
|
||||
LoadSeconds: 2.5,
|
||||
MaxFeedItems: 10,
|
||||
Feed: feedT{
|
||||
Title: feedFieldInfoT{Parent: "Demo Title", CaptureGroupIndex: []int8{0}},
|
||||
|
||||
Reference in New Issue
Block a user