diff --git a/src/__pycache__/already_posted.cpython-39.pyc b/src/__pycache__/already_posted.cpython-39.pyc new file mode 100644 index 0000000..e75fed5 Binary files /dev/null and b/src/__pycache__/already_posted.cpython-39.pyc differ diff --git a/src/__pycache__/converters.cpython-39.pyc b/src/__pycache__/converters.cpython-39.pyc new file mode 100644 index 0000000..7d57189 Binary files /dev/null and b/src/__pycache__/converters.cpython-39.pyc differ diff --git a/src/__pycache__/network.cpython-39.pyc b/src/__pycache__/network.cpython-39.pyc new file mode 100644 index 0000000..293bcd7 Binary files /dev/null and b/src/__pycache__/network.cpython-39.pyc differ diff --git a/src/network.py b/src/network.py index 926f196..ebbfeb8 100644 --- a/src/network.py +++ b/src/network.py @@ -42,11 +42,10 @@ def toot(urls, title, mastodon, fetched_user ): ids = [] for url in urls: ids.append(upload_image_to_mastodon(url, mastodon)) - print(url) - post_text = str(title) + "\n" + "crosposted from https://instagram.com/"+fetched_user # creating post text - post_text = post_text[0:1000] - print(ids) - mastodon.status_post(post_text, media_ids = ids) + post_text = str(title) + "\n" + "crosposted from https://instagram.com/"+fetched_user # creating post text + post_text = post_text[0:1000] + print(ids) + mastodon.status_post(post_text, media_ids = ids) except Exception as e: print(Fore.RED + "😿 > Failed to create toot \n", e)