mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-10 11:21:36 +00:00
Fix PodcastManager.js indentation
This commit is contained in:
parent
56ff12eaaf
commit
ecdafcdcc5
1 changed files with 363 additions and 366 deletions
|
|
@ -4,9 +4,9 @@ const Database = require('../Database')
|
|||
|
||||
const fs = require('../libs/fsExtra')
|
||||
|
||||
const {getPodcastFeed} = require('../utils/podcastUtils')
|
||||
const {removeFile, downloadFile} = require('../utils/fileUtils')
|
||||
const {levenshteinDistance} = require('../utils/index')
|
||||
const { getPodcastFeed } = require('../utils/podcastUtils')
|
||||
const { removeFile, downloadFile } = require('../utils/fileUtils')
|
||||
const { levenshteinDistance } = require('../utils/index')
|
||||
const opmlParser = require('../utils/parsers/parseOPML')
|
||||
const opmlGenerator = require('../utils/generators/opmlGenerator')
|
||||
const prober = require('../utils/prober')
|
||||
|
|
@ -158,7 +158,7 @@ class PodcastManager {
|
|||
podcastEpisode.audioFile = audioFile
|
||||
|
||||
if (audioFile.chapters?.length) {
|
||||
podcastEpisode.chapters = audioFile.chapters.map(ch => ({...ch}))
|
||||
podcastEpisode.chapters = audioFile.chapters.map(ch => ({ ...ch }))
|
||||
}
|
||||
|
||||
libraryItem.media.addPodcastEpisode(podcastEpisode)
|
||||
|
|
@ -337,9 +337,7 @@ class PodcastManager {
|
|||
}
|
||||
podcast.lastEpisodeCheck = Date.now()
|
||||
podcast.updatedAt = Date.now()
|
||||
await Database.podcastModel.update(podcast, {
|
||||
where: { id: podcastId }
|
||||
})
|
||||
await Database.podcastModel.update(podcast, {where: { id: podcastId }})
|
||||
|
||||
return {lastEpisodeCheck: podcast.lastEpisodeCheck, lastSuccessfulFetchAt: podcast.lastSuccessfulFetchAt, feedHealthy: podcast.feedHealthy}
|
||||
}
|
||||
|
|
@ -418,5 +416,4 @@ class PodcastManager {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = PodcastManager
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue