mirror of
https://gitlab.com/jeancf/twoot.git
synced 2025-05-14 13:17:09 +00:00
Cosmetic changes
This commit is contained in:
parent
4ccce6aac1
commit
bfbe9704f7
3
twoot.py
3
twoot.py
@ -200,6 +200,7 @@ def is_time_valid(timestamp, max_age, min_delay):
|
|||||||
|
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
|
|
||||||
def login(instance, account, password):
|
def login(instance, account, password):
|
||||||
# Create Mastodon application if it does not exist yet
|
# Create Mastodon application if it does not exist yet
|
||||||
if not os.path.isfile(instance + '.secret'):
|
if not os.path.isfile(instance + '.secret'):
|
||||||
@ -550,7 +551,7 @@ def main(argv):
|
|||||||
logging.debug("Uploading video failed")
|
logging.debug("Uploading video failed")
|
||||||
pass
|
pass
|
||||||
|
|
||||||
else: # Only upload pic if no video was uploaded
|
else: # Only upload pic if no video_file_listdeo was uploaded
|
||||||
# Upload photos
|
# Upload photos
|
||||||
for photo in tweet['photos']:
|
for photo in tweet['photos']:
|
||||||
media = False
|
media = False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user