mirror of
https://gitlab.com/jeancf/twoot.git
synced 2024-11-23 20:11:11 +00:00
Another Nitter instance change
This commit is contained in:
parent
cc0935297f
commit
a8a580989a
5
twoot.py
5
twoot.py
|
@ -44,11 +44,12 @@ HTTPS_REQ_TIMEOUT = 10
|
|||
NITTER_URLS = [
|
||||
'https://nitter.lacontrevoie.fr',
|
||||
'https://n.l5.ca',
|
||||
'https://nitter.sethforprivacy.com', # added on 01/06/2023
|
||||
'https://nitter.cutelab.space', # USA, added 16/02/2023
|
||||
'https://nitter.weiler.rocks', # added 15/06/2023
|
||||
'https://nitter.fly.dev', # anycast, added 06/02/2023
|
||||
'https://notabird.site', # anycast, added 06/02/2023
|
||||
'https://nitter.nl', # added 16/06/2023
|
||||
# 'https://nitter.sethforprivacy.com', # too slow, removed 16/06/2023
|
||||
# 'https://nitter.it', # different pic naming scheme
|
||||
# 'https://twitter.femboy.hu', # 404 on 06/05/2023
|
||||
# 'https://nitter.grimneko.de', # 404 on 01/06/2023
|
||||
|
@ -261,7 +262,7 @@ def update_profile(nitter_url, soup, sql, mast_password):
|
|||
|
||||
# Update profile on Mastodon
|
||||
try:
|
||||
mastodon.account_update_credentials(avatar=new_avatar_img, avatar_mime_type=new_avatar_mime, header=new_banner_img, header_mime_type=new_banner_mime)
|
||||
mastodon.account_update_credentials(avatar=new_avatar_img, avatar_mime_type=new_avatar_mime, header="", header_mime_type=None)
|
||||
except Exception as e:
|
||||
logging.error("Could not update profile")
|
||||
logging.error(e)
|
||||
|
|
Loading…
Reference in New Issue
Block a user