diff options
| author | Sunny <8181990+TheLastZombie@users.noreply.github.com> | 2024-04-19 20:16:41 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-19 12:16:41 -0600 |
| commit | 818f9f360d93080c81cdd9301171bfdc52cf2521 (patch) | |
| tree | 6d015dfd213c61180171f5897301df25d3f30642 | |
| parent | 2e449257d65f56997e39289cfcb12ba96b0c470f (diff) | |
| download | farside-818f9f360d93080c81cdd9301171bfdc52cf2521.tar.gz | |
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
| -rw-r--r-- | .github/workflows/update-instances.yml | 17 | ||||
| -rw-r--r-- | services-full.json | 10 | ||||
| -rw-r--r-- | services.json | 10 |
3 files changed, 37 insertions, 0 deletions
diff --git a/.github/workflows/update-instances.yml b/.github/workflows/update-instances.yml index a047b2a..f52d73d 100644 --- a/.github/workflows/update-instances.yml +++ b/.github/workflows/update-instances.yml @@ -280,6 +280,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 # ============================================================== diff --git a/services-full.json b/services-full.json index 30bb73b..9213205 100644 --- a/services-full.json +++ b/services-full.json @@ -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" + ] } ] diff --git a/services.json b/services.json index d8321c9..ace0231 100644 --- a/services.json +++ b/services.json @@ -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" + ] } ] |
