fix bugs, now stuff works
This commit is contained in:
@@ -10,11 +10,11 @@ MAXFILEAGE_IN_DAYS = 14
|
||||
items = []
|
||||
for file in os.listdir("files"):
|
||||
|
||||
year, month, day, hour, minute, md5 = file[:-3].split("-")
|
||||
year, month, day, hour, minute, md5 = file.split("-")
|
||||
|
||||
year = int(year)
|
||||
month = int(month)
|
||||
day = int(month)
|
||||
day = int(day)
|
||||
hour = int(hour)
|
||||
minute = int(minute)
|
||||
|
||||
@@ -29,7 +29,7 @@ for file in os.listdir("files"):
|
||||
# continue
|
||||
|
||||
items.append(rfeed.Item(
|
||||
title=f"Regionalnachrichten {day}.{month}.{year} {hour}:{minute}",
|
||||
title=f"Regionalnachrichten {day:0>2d}.{month:0>2d}.{year} {hour:0>2d}:{minute:0>2d}",
|
||||
link = "",
|
||||
description = f"{md5}",
|
||||
author = "NDR1 Radio MV Studio Greifswald",
|
||||
|
||||
Reference in New Issue
Block a user