diff options
author | 30xxa26idroiuzwc <107637071+30xxa26idroiuzwc@users.noreply.github.com> | 2022-06-16 16:07:37 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-16 16:07:37 +0000 |
commit | 4b9a358dd722d96e509da368f5e0985b2d0a52ca (patch) | |
tree | 171dd1c5e74b73131460dee8bee2e27655ffb0b2 /src | |
parent | Fixed a typo in piped settings (diff) | |
download | libredirect-4b9a358dd722d96e509da368f5e0985b2d0a52ca.zip |
Update rimgo function in get_instances.py
Diffstat (limited to 'src')
-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..428aee12 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['onion'].append(item['onion']) + if 'i2p' in item: + rimgoList['i2p'].append(item['i2p']) mightyList['rimgo'] = rimgoList print(Fore.GREEN + 'Fetched ' + Style.RESET_ALL + 'Rimgo') |