mirror of
https://github.com/R0m1k3/podcastic.git
synced 2026-10-22 14:38:03 +02:00
Résout tous les conflits de merge
- podcastController: createPodcastFromRss sans feedData (parse le RSS réel) - Discover.tsx: stub vide (remplacé par /trending et /add) - App.tsx + Navigation.tsx: conflits déjà résolus Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
ad1c65b1f5
commit
177917c06e
3 files changed
+13
-23
No files matched your search
@@ -243,15 +243,11 @@ export const subscribeFromDiscovery = async (req: Request, res: Response) => {
|
||||
// Check if podcast already in database
|
||||
let podcast = await Podcast.findOne({ rssUrl });
|
||||
|
||||
// If not in database, create it from RSS
|
||||
// If not in database, create it from RSS (parse feed for real episodes)
|
||||
if (!podcast) {
|
||||
try {
|
||||
const result = await rssParserService.createPodcastFromRss(rssUrl, {
|
||||
title: title || 'Unknown Podcast',
|
||||
author: author || '',
|
||||
imageUrl: imageUrl,
|
||||
});
|
||||
// Refetch as a proper Mongoose document
|
||||
const result = await rssParserService.createPodcastFromRss(rssUrl);
|
||||
// Refetch as a proper Mongoose document (result.podcast is a plain object)
|
||||
podcast = await Podcast.findById(result.podcast._id);
|
||||
} catch (error: any) {
|
||||
if (error.message.includes('already in database')) {
|
||||
|
||||
Reference in new issue
Block a user