diff --git a/backend/src/controllers/podcastController.ts b/backend/src/controllers/podcastController.ts index 167f868..986201b 100644 --- a/backend/src/controllers/podcastController.ts +++ b/backend/src/controllers/podcastController.ts @@ -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')) { diff --git a/frontend/src/components/Navigation.tsx b/frontend/src/components/Navigation.tsx index 708a9c1..997d82d 100644 --- a/frontend/src/components/Navigation.tsx +++ b/frontend/src/components/Navigation.tsx @@ -1,5 +1,5 @@ import { Link, useLocation } from 'react-router-dom'; -import { Home, Flame, PlusCircle, BookOpen, Music2, Search, Library } from 'lucide-react'; +import { Home, Flame, PlusCircle, BookOpen, Library } from 'lucide-react'; export default function Navigation() { const location = useLocation(); @@ -7,10 +7,10 @@ export default function Navigation() { const isActive = (path: string) => location.pathname === path; const navItems = [ - { path: '/dashboard', label: 'Dashboard', icon: Home, color: 'text-accent-indigo' }, - { path: '/trending', label: 'Trending', icon: Flame, color: 'text-accent-rose' }, - { path: '/library', label: 'Library', icon: Library, color: 'text-accent-cyan' }, - { path: '/add', label: 'Add Podcast', icon: PlusCircle, color: 'text-accent-violet' }, + { path: '/dashboard', label: 'Tableau de bord', icon: Home, color: 'text-accent-indigo' }, + { path: '/trending', label: 'Tendances', icon: Flame, color: 'text-accent-rose' }, + { path: '/library', label: 'Bibliothèque', icon: Library, color: 'text-accent-cyan' }, + { path: '/add', label: 'Ajouter', icon: PlusCircle, color: 'text-accent-violet' }, ]; return ( @@ -44,7 +44,7 @@ export default function Navigation() { }`} > {active && ( -
+ )}My Stats
-Podcastic Premium © 2026
+ {/* Footer */} +Podcastic © 2026