mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-05-22 19:31:31 +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',
|
tag: 'tagDate',
|
||||||
key: 'pubDate'
|
key: 'pubDate'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
tag: 'tagDate',
|
||||||
|
key: 'date'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
tag: 'tagDisc',
|
tag: 'tagDisc',
|
||||||
key: 'season'
|
key: 'season'
|
||||||
|
|
@ -463,7 +467,7 @@ class AudioFileScanner {
|
||||||
if (value && typeof value === 'string') {
|
if (value && typeof value === 'string') {
|
||||||
value = value.trim() // Trim whitespace
|
value = value.trim() // Trim whitespace
|
||||||
|
|
||||||
if (mapping.key === 'pubDate') {
|
if ((mapping.key === 'pubDate' || mapping.key === 'date') && !podcastEpisode.pubDate) {
|
||||||
const pubJsDate = parseDate.parse(value)
|
const pubJsDate = parseDate.parse(value)
|
||||||
if (pubJsDate) {
|
if (pubJsDate) {
|
||||||
podcastEpisode.publishedAt = pubJsDate.valueOf()
|
podcastEpisode.publishedAt = pubJsDate.valueOf()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue