mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-04 18:24:46 +02:00
Update:Remove rss feed dependencies add node-xml lib
This commit is contained in:
parent
46fc89e247
commit
03bffb725a
9 changed files with 556 additions and 105 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue