diff options
author | ManeraKai <manerakai@protonmail.com> | 2022-06-16 20:03:40 +0300 |
---|---|---|
committer | ManeraKai <manerakai@protonmail.com> | 2022-06-16 20:03:40 +0300 |
commit | ff3beee585354077c7aacb3f07706eff3be4c567 (patch) | |
tree | a836acd941b1e840e3891246879e5ee18c2dce02 /src/instances/get_instances.py | |
parent | Fixed a typo in piped settings (diff) | |
parent | Fixed typo (diff) | |
download | libredirect-ff3beee585354077c7aacb3f07706eff3be4c567.zip |
Merge branch '30xxa26idroiuzwc-update-rimgo-function'
Diffstat (limited to 'src/instances/get_instances.py')
-rw-r--r-- | src/instances/get_instances.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/instances/get_instances.py b/src/instances/get_instances.py index 1fe91e17..7fa120c5 100644 --- a/src/instances/get_instances.py +++ b/src/instances/get_instances.py @@ -373,12 +373,12 @@ def rimgo(): rimgoList['tor'] = [] rimgoList['i2p'] = [] for item in rJson: - if item.endswith('.onion'): - rimgoList['tor'].append('http://' + item) - elif item.endswith('.i2p'): - rimgoList['i2p'].append('http://' + item) - else: - rimgoList['normal'].append('https://' + item) + if 'url' in item: + rimgoList['normal'].append(item['url']) + if 'onion' in item: + rimgoList['tor'].append(item['onion']) + if 'i2p' in item: + rimgoList['i2p'].append(item['i2p']) mightyList['rimgo'] = rimgoList print(Fore.GREEN + 'Fetched ' + Style.RESET_ALL + 'Rimgo') |