mirror of
https://github.com/R0m1k3/podcastic.git
synced 2026-10-11 17:26:20 +02:00
feat: implement podcast controller with subscription, search, and sync functionality
This commit is contained in:
1 parent
e075434dd7
commit
1028774a65
1 file changed
+1
-1
@@ -58,7 +58,7 @@ export const subscribe = async (req: Request, res: Response) => {
|
||||
if (!podcast) {
|
||||
// Parse RSS feed
|
||||
const feedData = await rssParserService.parseFeed(rssUrl);
|
||||
const episodes = rssParserService.parseEpisodes(feedData.items, feedData.image?.url || '', rssUrl);
|
||||
const episodes = rssParserService.parseEpisodes(feedData.episodes, feedData.imageUrl, rssUrl);
|
||||
try {
|
||||
const result = await rssParserService.createPodcastFromRss(rssUrl);
|
||||
podcast = await Podcast.findById(result.podcast._id);
|
||||
|
||||
Reference in new issue
Block a user