Translated servers software strings

This commit is contained in:
spla 2020-05-19 23:54:55 +02:00
pare 043ab501ff
commit 6905a56689
S'han modificat 1 arxius amb 22 adicions i 22 eliminacions

Veure arxiu

@ -155,7 +155,7 @@ def getserver(server, x):
if nodeinfo.status_code == 200 and check_pleroma == True: if nodeinfo.status_code == 200 and check_pleroma == True:
print("Servidor Pleroma: ") print("Pleroma server: ")
soft = "pleroma" soft = "pleroma"
pl_users = nodeinfo.json()['usage']['users']['total'] pl_users = nodeinfo.json()['usage']['users']['total']
total_pl_users = total_pl_users + pl_users total_pl_users = total_pl_users + pl_users
@ -167,7 +167,7 @@ def getserver(server, x):
if type(res.json()) != int: if type(res.json()) != int:
if res.json().get('stats') != None: if res.json().get('stats') != None:
print("Servidor Mastodon: ") print("Mastodon server: ")
soft = "mastodon" soft = "mastodon"
mast_users = res.json()['stats']['user_count'] mast_users = res.json()['stats']['user_count']
else: else:
@ -342,7 +342,7 @@ def getserver(server, x):
if nodeinfo.ok == True and check_peertube == True: if nodeinfo.ok == True and check_peertube == True:
print("Servidor Peertube") print("Peertube server")
soft = "peertube" soft = "peertube"
peertube_users = nodeinfo.json()['usage']['users']['total'] peertube_users = nodeinfo.json()['usage']['users']['total']
total_peertube_users = total_peertube_users + peertube_users total_peertube_users = total_peertube_users + peertube_users
@ -352,7 +352,7 @@ def getserver(server, x):
if nodeinfo.ok == True and check_diaspora == True: if nodeinfo.ok == True and check_diaspora == True:
print("Servidor Diaspora") print("Diaspora server")
soft = "diaspora" soft = "diaspora"
diaspora_users = nodeinfo.json()['usage']['users']['total'] diaspora_users = nodeinfo.json()['usage']['users']['total']
total_diaspora_users = total_diaspora_users + diaspora_users total_diaspora_users = total_diaspora_users + diaspora_users
@ -362,7 +362,7 @@ def getserver(server, x):
elif nodeinfo.ok == True and check_raven == True: elif nodeinfo.ok == True and check_raven == True:
print("Servidor Ravenvale") print("Ravenvale server")
soft = "ravenvale" soft = "ravenvale"
ravenvale_users = nodeinfo.json()['usage']['users']['total'] ravenvale_users = nodeinfo.json()['usage']['users']['total']
total_ravenvale_users = total_ravenvale_users + ravenvale_users total_ravenvale_users = total_ravenvale_users + ravenvale_users
@ -372,7 +372,7 @@ def getserver(server, x):
elif others_nodeinfo.ok == True and check_zap == True: elif others_nodeinfo.ok == True and check_zap == True:
print("Servidor Zap") print("Zap server")
soft = "zap" soft = "zap"
zap_users = others_nodeinfo.json()['usage']['users']['total'] zap_users = others_nodeinfo.json()['usage']['users']['total']
total_zap_users = total_zap_users + zap_users total_zap_users = total_zap_users + zap_users
@ -382,7 +382,7 @@ def getserver(server, x):
elif others_nodeinfo.ok == True and check_plume == True: elif others_nodeinfo.ok == True and check_plume == True:
print("Servidor Plume") print("Plume server")
soft = "plume" soft = "plume"
plume_users = others_nodeinfo.json()['usage']['users']['total'] plume_users = others_nodeinfo.json()['usage']['users']['total']
total_plume_users = total_plume_users + plume_users total_plume_users = total_plume_users + plume_users
@ -392,7 +392,7 @@ def getserver(server, x):
elif others_nodeinfo.ok == True and check_hubzilla == True: elif others_nodeinfo.ok == True and check_hubzilla == True:
print("Servidor Hubzilla") print("Hubzilla server")
soft = "hubzilla" soft = "hubzilla"
hubzilla_users = others_nodeinfo.json()['usage']['users']['total'] hubzilla_users = others_nodeinfo.json()['usage']['users']['total']
total_hubzilla_users = total_hubzilla_users + hubzilla_users total_hubzilla_users = total_hubzilla_users + hubzilla_users
@ -402,7 +402,7 @@ def getserver(server, x):
elif others_nodeinfo.ok == True and check_misskey == True: elif others_nodeinfo.ok == True and check_misskey == True:
print("Servidor Misskey") print("Misskey server")
soft = "misskey" soft = "misskey"
misskey_users = others_nodeinfo.json()['usage']['users']['total'] misskey_users = others_nodeinfo.json()['usage']['users']['total']
if misskey_users == 0: if misskey_users == 0:
@ -414,7 +414,7 @@ def getserver(server, x):
elif others_nodeinfo.ok == True and check_prismo == True: elif others_nodeinfo.ok == True and check_prismo == True:
print("Servidor Prismo") print("Prismo server")
soft = "prismo" soft = "prismo"
prismo_users = others_nodeinfo.json()['usage']['users']['total'] prismo_users = others_nodeinfo.json()['usage']['users']['total']
total_prismo_users = total_prismo_users + prismo_users total_prismo_users = total_prismo_users + prismo_users
@ -424,7 +424,7 @@ def getserver(server, x):
elif others_nodeinfo.ok == True and check_osada == True: elif others_nodeinfo.ok == True and check_osada == True:
print("Servidor Osada") print("Osada server")
soft = "osada" soft = "osada"
osada_users = others_nodeinfo.json()['usage']['users']['total'] osada_users = others_nodeinfo.json()['usage']['users']['total']
total_osada_users = total_osada_users + osada_users total_osada_users = total_osada_users + osada_users
@ -434,7 +434,7 @@ def getserver(server, x):
elif others_nodeinfo.ok == True and check_groundpolis == True: elif others_nodeinfo.ok == True and check_groundpolis == True:
print("Servidor Groundpolis") print("Groundpolis server")
soft = "groundpolis" soft = "groundpolis"
gpolis_users = others_nodeinfo.json()['usage']['users']['total'] gpolis_users = others_nodeinfo.json()['usage']['users']['total']
total_gpolis_users = total_gpolis_users + gpolis_users total_gpolis_users = total_gpolis_users + gpolis_users
@ -444,7 +444,7 @@ def getserver(server, x):
elif others_nodeinfo.ok == True and check_ganggo == True: elif others_nodeinfo.ok == True and check_ganggo == True:
print("Servidor Ganggo") print("Ganggo server")
soft = "ganggo" soft = "ganggo"
ggg_users = others_nodeinfo.json()['usage']['users']['total'] ggg_users = others_nodeinfo.json()['usage']['users']['total']
total_ggg_users = total_ggg_users + ggg_users total_ggg_users = total_ggg_users + ggg_users
@ -454,7 +454,7 @@ def getserver(server, x):
elif others_nodeinfo.ok == True and check_squs == True: elif others_nodeinfo.ok == True and check_squs == True:
print("Servidor Squs") print("Squs server")
soft = "squs" soft = "squs"
squs_users = others_nodeinfo.json()['usage']['users']['total'] squs_users = others_nodeinfo.json()['usage']['users']['total']
total_squs_users = total_squs_users + squs_users total_squs_users = total_squs_users + squs_users
@ -464,7 +464,7 @@ def getserver(server, x):
elif others_nodeinfo.ok == True and check_friendica == True: elif others_nodeinfo.ok == True and check_friendica == True:
print("Servidor Friendica") print("Friendica server")
soft = "friendica" soft = "friendica"
if others_nodeinfo.json()['usage'] != []: if others_nodeinfo.json()['usage'] != []:
friendica_users = others_nodeinfo.json()['usage']['users']['total'] friendica_users = others_nodeinfo.json()['usage']['users']['total']
@ -478,7 +478,7 @@ def getserver(server, x):
elif others_nodeinfo.ok == True and check_dolphin == True: elif others_nodeinfo.ok == True and check_dolphin == True:
print("Servidor Dolphin") print("Dolphin server")
soft = "dolphin" soft = "dolphin"
if others_nodeinfo.json()['usage'] != []: if others_nodeinfo.json()['usage'] != []:
dolphin_users = others_nodeinfo.json()['usage']['users']['total'] dolphin_users = others_nodeinfo.json()['usage']['users']['total']
@ -492,7 +492,7 @@ def getserver(server, x):
elif gs_nodeinfo.ok == True and check_gnusocial == True: elif gs_nodeinfo.ok == True and check_gnusocial == True:
print("Servidor GNU Social") print("GNU Social server")
soft = "gnusocial" soft = "gnusocial"
gs_users = gs_nodeinfo.json()['usage']['users']['total'] gs_users = gs_nodeinfo.json()['usage']['users']['total']
if gs_users == 0: if gs_users == 0:
@ -504,7 +504,7 @@ def getserver(server, x):
elif statusnet.ok == True and check_friendica == True: #statusnet.json()['site']['friendica']['FRIENDICA_PLATFORM'] == "Friendica": elif statusnet.ok == True and check_friendica == True: #statusnet.json()['site']['friendica']['FRIENDICA_PLATFORM'] == "Friendica":
print("Servidor Friendica") print("Friendica server")
soft = "friendica" soft = "friendica"
friendica_users = 0 friendica_users = 0
total_friendica_users = total_friendica_users + friendica_users total_friendica_users = total_friendica_users + friendica_users
@ -514,7 +514,7 @@ def getserver(server, x):
elif px_nodeinfo.ok == True and check_pixelfed == True: elif px_nodeinfo.ok == True and check_pixelfed == True:
print("Servidor Pixelfed") print("Pixelfed server")
soft = "pixelfed" soft = "pixelfed"
pixelfed_users = px_nodeinfo.json()['usage']['users']['total'] pixelfed_users = px_nodeinfo.json()['usage']['users']['total']
total_pixelfed_users = total_pixelfed_users + pixelfed_users total_pixelfed_users = total_pixelfed_users + pixelfed_users
@ -524,7 +524,7 @@ def getserver(server, x):
elif px_nodeinfo.ok == True and check_gnusocial2 == True: elif px_nodeinfo.ok == True and check_gnusocial2 == True:
print("Servidor GNU Social 2.x") print("GNU Social 2.x server")
soft = "gnusocialv2" soft = "gnusocialv2"
gs_users = px_nodeinfo.json()['usage']['users']['total'] gs_users = px_nodeinfo.json()['usage']['users']['total']
if gs_users == 0: if gs_users == 0:
@ -536,7 +536,7 @@ def getserver(server, x):
elif wf_nodeinfo.ok == True and check_writefreely == True: elif wf_nodeinfo.ok == True and check_writefreely == True:
print("Servidor WriteFreely") print("WriteFreely server")
soft = "writefreely" soft = "writefreely"
writefreely_users = wf_nodeinfo.json()['usage']['users']['total'] writefreely_users = wf_nodeinfo.json()['usage']['users']['total']
total_writefreely_users = total_writefreely_users + writefreely_users total_writefreely_users = total_writefreely_users + writefreely_users
@ -630,7 +630,7 @@ uc_access_token = get_parameter("uc_access_token", secrets_filepath)
# Load configuration from config file # Load configuration from config file
config_filepath = "config.txt" config_filepath = "config.txt"
mastodon_hostname = get_parameter("mastodon_hostname", config_filepath) # E.g., mastodon.social mastodon_hostname = get_parameter("mastodon_hostname", config_filepath)
# Load database config from db_config file # Load database config from db_config file
db_config_filepath = "config/db_config.txt" db_config_filepath = "config/db_config.txt"