aboutsummaryrefslogtreecommitdiffstats
path: root/src/instances
diff options
context:
space:
mode:
authorManeraKai <manerakai@protonmail.com>2022-12-29 19:15:55 +0300
committerManeraKai <manerakai@protonmail.com>2022-12-29 19:15:55 +0300
commitb9041775209d2b9ee89b6d00015c70092f41b362 (patch)
tree0940c95c763b36083f7281738577767becfae4d0 /src/instances
parentMade networks mixed https://github.com/libredirect/libredirect/issues/486 (diff)
downloadlibredirect-b9041775209d2b9ee89b6d00015c70092f41b362.zip
will merge later
Diffstat (limited to '')
-rwxr-xr-xsrc/instances/get_instances.py10
-rw-r--r--src/instances/osm.json5
2 files changed, 14 insertions, 1 deletions
diff --git a/src/instances/get_instances.py b/src/instances/get_instances.py
index 8121cea5..e8b137dc 100755
--- a/src/instances/get_instances.py
+++ b/src/instances/get_instances.py
@@ -117,6 +117,7 @@ def is_authenticate(url):
return False
return False
+
def fetchCache(frontend, name):
try:
with open('./src/instances/data.json') as file:
@@ -436,13 +437,19 @@ def facil():
fetchFromFile('facil', 'FacilMap')
+def osm():
+ fetchFromFile('osm', 'OpenStreetMap')
+
+
def libreTranslate():
fetchRegexList('libreTranslate', 'LibreTranslate', 'https://raw.githubusercontent.com/LibreTranslate/LibreTranslate/main/README.md',
r"\[(?:[^\s\/]+\.)+[a-zA-Z0-9]+\]\((https?:\/{2}(?:[^\s\/]+\.)+[a-zA-Z0-9]+)\/?\)\|")
def breezeWiki():
- fetchJsonList('breezeWiki', 'BreezeWiki', 'https://docs.breezewiki.com/files/instances.json', 'instance', False)
+ fetchJsonList('breezeWiki', 'BreezeWiki',
+ 'https://docs.breezewiki.com/files/instances.json', 'instance', False)
+
def privateBin():
fetchJsonList('privateBin', 'PrivateBin',
@@ -499,6 +506,7 @@ neuters()
beatbump()
hyperpipe()
facil()
+osm()
simpleertube()
breezeWiki()
privateBin()
diff --git a/src/instances/osm.json b/src/instances/osm.json
new file mode 100644
index 00000000..a072e190
--- /dev/null
+++ b/src/instances/osm.json
@@ -0,0 +1,5 @@
+{
+ "clearnet": [
+ "https://www.openstreetmap.org"
+ ]
+} \ No newline at end of file