Entferne die Überprüfung auf zukünftige Veröffentlichungsdaten und verwende das aktuelle Datum für die Feed-Erstellung.
This commit is contained in:
@ -137,10 +137,6 @@ class LocalPodcastGenerator:
|
||||
# Änderungsdatum als Veröffentlichungsdatum
|
||||
pub_date = datetime.fromtimestamp(file_path.stat().st_mtime)
|
||||
|
||||
# Falls Datum in der Zukunft liegt, verwende heutiges Datum
|
||||
if pub_date.year > 2024:
|
||||
pub_date = datetime(2024, 12, 6, 12, 0, 0)
|
||||
|
||||
return {
|
||||
'title': title,
|
||||
'artist': artist or 'SERMAN',
|
||||
@ -355,10 +351,8 @@ Ich spezialisiere mich auf House Music, die mehr als nur Beats bietet – sie er
|
||||
atom_link.set("type", "application/rss+xml")
|
||||
|
||||
# Wichtig: lastBuildDate für bessere Erkennung von Updates (RFC 2822 konform)
|
||||
# Verwende aktuelles Datum, aber falls es in der Zukunft liegt, verwende heutiges Datum
|
||||
# Verwende aktuelles Datum für die Feed-Erstellung
|
||||
current_date = datetime.now()
|
||||
if current_date.year > 2024: # Falls Systemdatum falsch ist
|
||||
current_date = datetime(2024, 12, 6, 12, 0, 0) # Fallback auf realistisches Datum
|
||||
|
||||
last_build = ET.SubElement(channel, "lastBuildDate")
|
||||
last_build.text = self.format_rfc2822_date(current_date)
|
||||
|
Reference in New Issue
Block a user