Update:Remove rss feed dependencies add node-xml lib

This commit is contained in:
advplyr 2022-06-07 19:25:14 -05:00
parent 46fc89e247
commit 03bffb725a
9 changed files with 556 additions and 105 deletions

View file

@ -1,7 +1,5 @@
const Path = require('path')
const fs = require('fs-extra')
const date = require('date-and-time')
const { Podcast } = require('podcast')
const Feed = require('../objects/Feed')
const Logger = require('../Logger')
@ -35,7 +33,7 @@ class RssFeedManager {
res.sendStatus(404)
return
}
// var xml = feedData.feed.buildXml()
var xml = feed.buildXml()
res.set('Content-Type', 'text/xml')
res.send(xml)
@ -55,9 +53,6 @@ class RssFeedManager {
return
}
res.sendFile(episodePath)
// var remainingPath = req.params['0']
// var fullPath = Path.join(feedData.libraryItemPath, remainingPath)
// res.sendFile(fullPath)
}
getFeedCover(req, res) {