diff --git a/dlimage.py b/dlimage.py index dfc8b8d..593913f 100644 --- a/dlimage.py +++ b/dlimage.py @@ -5,13 +5,7 @@ from PIL import Image from io import BytesIO from mastodon import Mastodon -import requests -import os -import sys -import time -import json -import argparse -import math +import requests, os, sys, time, json, argparse, math def get_parameter( parameter, file_path ): # Check if secrets file exists @@ -58,14 +52,8 @@ mastodon = Mastodon( masto_allfav = mastodon.favourites(None, None, 40) while masto_allfav != []: for toot in masto_allfav: - if toot.account.acct == "bonjourtoutlemonde@hostux.social": + if toot.account.acct == "account@mastodon.tld": get_media() - else : - if toot.account.acct == "BonjourMadame@hostux.social": - get_media() - else : - if toot.account.acct == "hato0517@mstdn.jp": - get_media() masto_allfav = mastodon.fetch_next(masto_allfav) time.sleep(10)