fixes
This commit is contained in:
@@ -25,7 +25,7 @@ for file in os.listdir("files"):
|
||||
pubDate = date
|
||||
))
|
||||
|
||||
weblist.append([f"{year}-{month}-{day}", file])
|
||||
weblist.append([f"{year:0>4d}-{month:0>2d}-{day:0>2d}", file])
|
||||
|
||||
feed = rfeed.Feed(
|
||||
title = "My podcast collection from anywhere",
|
||||
@@ -45,7 +45,7 @@ with open("index.html", "w") as f:
|
||||
f.write("""<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><link rel="stylesheet" type="text/css" href="../ZanderZeichen/style.css"><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> </h3><div class=box><h2>Podcastsammlung Webplayer</h2><a href=feed.xml><img style="float:right;" src=316px-Feed-icon_headphones.svg_from_commons.wikimedia.org_by_Marek_Mazurkiewicz.png /></a><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}")
|
||||
weblist.sort(reverse=True, key=lambda x: x[0])
|
||||
|
||||
# site entries
|
||||
for entry in weblist:
|
||||
|
||||
Reference in New Issue
Block a user