mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-05-12 06:21:30 +00:00
Added date and pubDate for AudioFileScanner
This commit is contained in:
parent
30f1c9c252
commit
6f19bb1e0c
1 changed files with 5 additions and 1 deletions
|
|
@ -432,6 +432,10 @@ class AudioFileScanner {
|
|||
tag: 'tagDate',
|
||||
key: 'pubDate'
|
||||
},
|
||||
{
|
||||
tag: 'tagDate',
|
||||
key: 'date'
|
||||
},
|
||||
{
|
||||
tag: 'tagDisc',
|
||||
key: 'season'
|
||||
|
|
@ -463,7 +467,7 @@ class AudioFileScanner {
|
|||
if (value && typeof value === 'string') {
|
||||
value = value.trim() // Trim whitespace
|
||||
|
||||
if (mapping.key === 'pubDate') {
|
||||
if ((mapping.key === 'pubDate' || mapping.key === 'date') && !podcastEpisode.pubDate) {
|
||||
const pubJsDate = parseDate.parse(value)
|
||||
if (pubJsDate) {
|
||||
podcastEpisode.publishedAt = pubJsDate.valueOf()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue