only fetch enabled data
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2s

This commit is contained in:
pierre geeraert
2026-07-02 21:07:38 +01:00
parent dfd77e458a
commit 2a609b2143
+2 -4
View File
@@ -65,12 +65,10 @@ def podcasts():
#clear all expired messages before #clear all expired messages before
telegram.clear_expired_messages() telegram.clear_expired_messages()
podcasts = podcastData.objects.all() podcasts = podcastData.objects.filter(enabled=True)
for podcast in podcasts: for podcast in podcasts:
url = podcast.podcast_url url = podcast.podcast_url
#url = "https://feeds.audiomeans.fr/feed/44f6a116-20a6-44c4-98c4-b3e1bdd46dce.xml"
#url_bbc = "https://podcast.voice.api.bbci.co.uk/rss/audio/p002vsmz?api_key=Wbek5zSqxz0Hk1blo5IBqbd9SCWIfNbT"
today_podcast = rss_to_dict(url) today_podcast = rss_to_dict(url)
print(today_podcast) print(today_podcast)
file= pretty_filename(today_podcast[1],'mp3') file= pretty_filename(today_podcast[1],'mp3')