mirror of
https://github.com/R0m1k3/podcastic.git
synced 2026-10-22 06:28:03 +02:00
feat: implement trending podcasts page and RSS parsing service for feed data extraction
This commit is contained in:
1 parent
2fbbf70ee0
commit
aaf7b82985
4 files changed
+121
-6
No files matched your search
@@ -284,8 +284,11 @@ export const rssParserService = {
|
||||
podcast.lastFetched = new Date();
|
||||
|
||||
if (episodes.length > 0) {
|
||||
console.log(`[RSS Parser] Setting last episode for ${podcast.title}: ${episodes[0].title} (${episodes[0].pubDate})`);
|
||||
podcast.lastEpisodeTitle = episodes[0].title;
|
||||
podcast.lastEpisodeDate = episodes[0].pubDate;
|
||||
} else {
|
||||
console.warn(`[RSS Parser] No episodes found for ${podcast.title} during creation.`);
|
||||
}
|
||||
|
||||
await podcast.save();
|
||||
|
||||
Reference in new issue
Block a user