Add support for Tent (#171)

Added support for Bandcamp front-end Tent

No regex, as Bandcamp URLs don't 1:1 translate to Tent URLs
This commit is contained in:
Sunny 2024-04-19 20:16:41 +02:00 committed by GitHub
parent 2e449257d6
commit 818f9f360d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 37 additions and 0 deletions

View File

@ -279,6 +279,23 @@ jobs:
apply_update
# ==============================================================
# Tent update
# ==============================================================
curl -s https://forgejo.sny.sh/sun/Tent/raw/branch/main/instances.json | \
jq '[
.[] |
select(.type == "http") |
.url] |
sort' > tent-tmp.json
jq --slurpfile tent tent-tmp.json \
'(.[] | select(.type == "tent") )
.instances |= $tent[0]' services-full.json > services-tmp.json
apply_update
# ==============================================================
# TODO: Update instances for other services
# ==============================================================

View File

@ -623,5 +623,15 @@
"https://search.zeroish.xyz",
"https://search2.ahwx.org"
]
},
{
"type": "tent",
"test_url": "/search.php?query=<%=query%>",
"fallback": "https://tent.sny.sh",
"instances": [
"https://tent.bloat.cat",
"https://tent.sny.sh",
"https://tn.vern.cc"
]
}
]

View File

@ -576,5 +576,15 @@
"https://search.zeroish.xyz",
"https://search2.ahwx.org"
]
},
{
"type": "tent",
"test_url": "/search.php?query=<%=query%>",
"fallback": "https://tent.sny.sh",
"instances": [
"https://tent.bloat.cat",
"https://tent.sny.sh",
"https://tn.vern.cc"
]
}
]