mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-10 11:21:36 +00:00
Add infra to handle with feed healthy
This commit is contained in:
parent
102c90c4e8
commit
2b3c3cd088
6 changed files with 412 additions and 365 deletions
|
|
@ -198,7 +198,9 @@ function migratePodcast(oldLibraryItem, LibraryItem) {
|
|||
updatedAt: LibraryItem.updatedAt,
|
||||
coverPath: oldPodcast.coverPath,
|
||||
tags: oldPodcast.tags,
|
||||
genres: oldPodcastMetadata.genres
|
||||
genres: oldPodcastMetadata.genres,
|
||||
lastSuccessfulFetchAt: oldPodcastMetadata.lastSuccessfulFetchAt || null,
|
||||
feedHealthy: !!oldPodcastMetadata.feedHealthy || null
|
||||
}
|
||||
_newRecords.podcast = Podcast
|
||||
oldDbIdMap.podcasts[oldLibraryItem.id] = Podcast.id
|
||||
|
|
@ -1708,4 +1710,4 @@ module.exports.migrationPatch2 = async (ctx) => {
|
|||
Logger.error(`[dbMigration] Migration from 2.3.3+ column creation failed`, error)
|
||||
throw new Error('Migration 2.3.3+ failed ' + error)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue