From f84224600277e910283e9b4abc40bf69eaa2d4f6 Mon Sep 17 00:00:00 2001 From: MK13 Date: Fri, 15 Oct 2021 00:20:16 +0200 Subject: [PATCH] Revert "Add output flushing after each print so that the output appears in journal" This reverts commit 4e0ad411f304addb387e045e16a460dc099e6343. --- anime-rss.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/anime-rss.py b/anime-rss.py index 45339ca..7d4cf28 100644 --- a/anime-rss.py +++ b/anime-rss.py @@ -5,7 +5,6 @@ import subprocess import argparse from notifypy import Notify import os -import sys feedparser.USER_AGENT = "anime-rss/1.0" @@ -49,14 +48,12 @@ with open(args.c, "r") as config: for feed in feeds["Feeds"]: print(BOLD + "Checking feed: " + feed["ID"] + RESET) - sys.stdout.flush() NewsFeed = feedparser.parse(feed["URL"]) for anime in feed["Animes"]: print( "Checking anime: " + BOLD_RED + anime["Title"] + RESET + " - Airing every " + UNDERLINE + anime["Airing"] + RESET + " " + anime["Local"] + "/x") - sys.stdout.flush() entries = NewsFeed.entries @@ -73,7 +70,6 @@ for feed in feeds["Feeds"]: if int(episodeNumber[0]) > int(anime["Local"]): print(BOLD_GREEN + "NEW NEW NEW " + anime["Title"] + " " + episodeNumber[0] + RESET) - sys.stdout.flush() if subprocess.run(["transmission-remote", "-a", entry.link, "-w", build_target_folder()]).returncode == 0: anime["Local"] = str(int(anime["Local"]) + 1).zfill(2)