mirror of
https://github.com/libredirect/instances.git
synced 2024-12-06 19:26:17 +01:00
29 lines
756 B
Python
29 lines
756 B
Python
from .utils import fetchJsonList, fetchRegexList
|
|
|
|
|
|
def linvgatranslate(mightyList):
|
|
fetchJsonList(
|
|
'lingva',
|
|
'https://raw.githubusercontent.com/TheDavidDelta/lingva-translate/main/instances.json',
|
|
None,
|
|
False,
|
|
mightyList
|
|
)
|
|
|
|
|
|
def libreTranslate(mightyList):
|
|
fetchRegexList(
|
|
'libreTranslate',
|
|
'https://raw.githubusercontent.com/LibreTranslate/LibreTranslate/main/README.md',
|
|
r"\[(?:[^\s\/]+\.)+[a-zA-Z0-9]+\]\((https?:\/{2}(?:[^\s\/]+\.)+[a-zA-Z0-9]+)\/?\)\|",
|
|
mightyList
|
|
)
|
|
|
|
def mozhi(mightyList):
|
|
fetchJsonList(
|
|
'mozhi',
|
|
'https://codeberg.org/aryak/mozhi/raw/branch/master/instances.json',
|
|
'link',
|
|
False,
|
|
mightyList
|
|
) |