1
0

#4 Multiple Done animes in the same feed do not work

Reverse the feed again after a reversal so the original order is kept for subsequent animes

Signed-off-by: MK13 <marius@kleberonline.de>
This commit is contained in:
2021-11-06 01:30:53 +01:00
parent 609037d54c
commit e9305e8319

View File

@@ -57,6 +57,7 @@ for feed in feeds["Feeds"]:
entries = NewsFeed.entries entries = NewsFeed.entries
# Reverse the feed so the first EP gets grabbed first
if anime["Airing"] == "Done": if anime["Airing"] == "Done":
entries.reverse() entries.reverse()
@@ -78,6 +79,10 @@ for feed in feeds["Feeds"]:
else: else:
send_notification("Transmission not running or not reachable!") send_notification("Transmission not running or not reachable!")
# Reverse the feed back so the next anime in line has the original order
if anime["Airing"] == "Done":
entries.reverse()
with open(args.a, "w") as new_feeds: with open(args.a, "w") as new_feeds:
new_feeds.write(json.dumps(feeds, indent=3)) new_feeds.write(json.dumps(feeds, indent=3))