Added date and pubDate for AudioFileScanner

This commit is contained in:
Jeferson 'Shin 2026-04-15 09:29:44 +02:00
parent 30f1c9c252
commit 6f19bb1e0c

View file

@ -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()