Merge pull request #351 from xykg1tbi4u6c6tj1/update-wikiless-function

Update wikiless function in get_instances.py
This commit is contained in:
ManeraKai 2022-06-19 22:27:37 +00:00 committed by GitHub
commit 69759be113
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -216,12 +216,12 @@ def wikiless():
wikilessList['tor'] = []
wikilessList['i2p'] = []
for item in rJson:
if item.endswith('.onion'):
wikilessList['tor'].append('http://' + item)
elif item.endswith('.i2p'):
wikilessList['i2p'].append('http://' + item)
else:
wikilessList['normal'].append('https://' + item)
if 'url' in item:
wikilessList['normal'].append(item['url'])
if 'onion' in item:
wikilessList['tor'].append(item['onion'])
if 'i2p' in item:
wikilessList['i2p'].append(item['i2p'])
mightyList['wikiless'] = wikilessList
print(Fore.GREEN + 'Fetched ' + Style.RESET_ALL + 'Wikiless')