diff --git a/local_podcast_generator.py b/local_podcast_generator.py index 15a42b7..1837e0a 100644 --- a/local_podcast_generator.py +++ b/local_podcast_generator.py @@ -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)