sort episodes in webplayer from new to old

This commit is contained in:
fordprefect
2022-03-25 16:14:48 +01:00
parent 49c52fe92d
commit d6460832be

View File

@@ -62,6 +62,9 @@ with open("episoden.html", "w") as f:
<link rel="icon" type="image/vnd.microsoft.icon" href="favicon.ico"><meta name="robots" content="noindex,nofollow" /></head><body class=body>
<div class=head></div><h3>&nbsp;</h3><div class=box><h2>ZanderZeichen: Webplayer</h2><a href=index.html>zurück</a><br><br>""")
# sort list
weblist.sort(reverse=True, key=lambda x: f"{x[-1][2]:0>4d}-{x[-1][1]:0>2d}-{x[-1][0]:0>2d}")
# site entries
for entry in weblist:
stichtag, name, link, date = entry