fixes
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,5 +1,5 @@
|
|||||||
__pycache__
|
__pycache__
|
||||||
files
|
files
|
||||||
archiv
|
archiv
|
||||||
episoden.html
|
index.html
|
||||||
feed.xml
|
feed.xml
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ for file in os.listdir("files"):
|
|||||||
pubDate = date
|
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(
|
feed = rfeed.Feed(
|
||||||
title = "My podcast collection from anywhere",
|
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>""")
|
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
|
# 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
|
# site entries
|
||||||
for entry in weblist:
|
for entry in weblist:
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user