Initial code commit

This commit is contained in:
2026-01-04 05:37:43 -05:00
parent 0af7ac5c9e
commit 7a4ef87470
11 changed files with 306 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
backtone.example.com {
tls {
protocols tls1.3
}
log {
output file /tmp/caddy-backtone.log {
roll_size 2MiB
roll_keep 3
roll_keep_for 24h
}
level INFO
}
root * /path/to/feeds/directory
encode gzip
file_server
php_fastcgi 127.0.0.1:9000
}
+8
View File
@@ -0,0 +1,8 @@
<?php
$command = "/usr/local/bin/backtone";
$argument = "BASE64ENCODEDINPUTXML";
$output = shell_exec(escapeshellcmd($command) . " " . escapeshellarg($argument));
header("Content-Type: application/xml; charset=utf-8");
echo $output;
?>
+1
View File
@@ -0,0 +1 @@
<input><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> .*?<\/div><div><span class=\\"text-sm font-bold \[text-wrap:balance\] sm:text-base\\">Year:<\/span> .*?<\/div><!----><\/div><\/div><ce-search-result-chart><div class=\\"collapse overflow-visible rounded-none border border-base-300 bg-base-200 collapse-close\\"><div class=\\"collapse-title flex flex-wrap items-center justify-end gap-3 rounded-none px-3 py-2\\"><div class=\\"mr-auto flex items-center gap-3\\"><div class=\\"swap swap-rotate cursor-pointer\\"><i class=\\"bi bi-chevron-down swap-off text-xl\\"><\/i><i class=\\"bi bi-chevron-up swap-on text-xl\\"><\/i><\/div><div class=\\"tooltip min-w-max\\"><img class=\\"w-16\\" .*?\\"><\/div><!----><\/div><div class=\\"flex flex-1 items-center gap-3\\" style=\\"flex-basis: 9rem;\\"><div class=\\"flex flex-wrap items-center gap-3 \[word-break:break-word\]\\"><div><div class=\\"footer-title mb-0\\">Charter:<\/div><a target=\\"_blank\\" class=\\"link-hover link\\" href=\\".*?\\">(.*?)<\/a><\/div>.*?for=\\"downloadVideos_(.*?)\\"]]></regex><flareSolverrURL>http://PLACEHOLDER:8191/v1</flareSolverrURL><maxFeedItems>10</maxFeedItems><feed><title><parent>Chorus Encore</parent><captureGroupIndex>1</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>3</captureGroupIndex><captureGroupConnector> | Album: </captureGroupConnector><captureGroupIndex>2</captureGroupIndex></description><authorName><parent>Gamers</parent><captureGroupIndex>3</captureGroupIndex></authorName><authorEmail></authorEmail></feed></input>