mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-04-19 04:05:55 -04:00
Set podcast episode audio file index to 1 for scanned in episodes
This commit is contained in:
parent
26c0c89b94
commit
7c114a051a
1 changed files with 6 additions and 0 deletions
|
@ -113,6 +113,9 @@ class PodcastScanner {
|
|||
|
||||
// Create new podcast episodes from new found audio files
|
||||
for (const newAudioFile of newAudioFiles) {
|
||||
// Podcast episode audio files always have index 1
|
||||
newAudioFile.index = 1
|
||||
|
||||
const newEpisode = {
|
||||
title: newAudioFile.metaTags.tagTitle || newAudioFile.metadata.filenameNoExt,
|
||||
subtitle: null,
|
||||
|
@ -253,6 +256,9 @@ class PodcastScanner {
|
|||
|
||||
// Create podcast episodes from audio files
|
||||
for (const audioFile of scannedAudioFiles) {
|
||||
// Podcast episode audio files always have index 1
|
||||
audioFile.index = 1
|
||||
|
||||
const newEpisode = {
|
||||
title: audioFile.metaTags.tagTitle || audioFile.metadata.filenameNoExt,
|
||||
subtitle: null,
|
||||
|
|
Loading…
Add table
Reference in a new issue