#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:
@@ -57,6 +57,7 @@ for feed in feeds["Feeds"]:
|
||||
|
||||
entries = NewsFeed.entries
|
||||
|
||||
# Reverse the feed so the first EP gets grabbed first
|
||||
if anime["Airing"] == "Done":
|
||||
entries.reverse()
|
||||
|
||||
@@ -78,6 +79,10 @@ for feed in feeds["Feeds"]:
|
||||
else:
|
||||
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:
|
||||
new_feeds.write(json.dumps(feeds, indent=3))
|
||||
|
||||
Reference in New Issue
Block a user