about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorHygna <hygna@proton.me>2022-10-07 17:19:35 +0100
committerHygna <hygna@proton.me>2022-10-07 17:19:35 +0100
commit6d9ddaae2f6a7c06b01c4df098acb6508021236e (patch)
treea13e435d009a606a72be92387f6817c498cbeee8
parentupdated instances (diff)
downloadlibredirect-6d9ddaae2f6a7c06b01c4df098acb6508021236e.zip
Added support for fetching invidious i2p instances
-rw-r--r--src/instances/get_instances.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/instances/get_instances.py b/src/instances/get_instances.py
index 2f3c75dc..b36cf7ab 100644
--- a/src/instances/get_instances.py
+++ b/src/instances/get_instances.py
@@ -246,6 +246,8 @@ def invidious():
                 _list['clearnet'].append(instance[1]['uri'])
             elif instance[1]['type'] == 'onion':
                 _list['tor'].append(instance[1]['uri'])
+            elif instance[1]['type'] == 'i2p':
+                _list['i2p'].append(instance[1]['uri'])
         mightyList[frontend] = _list
         print(Fore.GREEN + 'Fetched ' + Style.RESET_ALL + name)
     except Exception: