mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-08 00:08:14 +01:00
Update:Scanned in podcast episodes remove file ext from title
This commit is contained in:
parent
516c5c3308
commit
91f15d5a23
@ -1,3 +1,4 @@
|
||||
const Path = require('path')
|
||||
const { getId } = require('../../utils/index')
|
||||
const AudioFile = require('../files/AudioFile')
|
||||
const AudioTrack = require('../files/AudioTrack')
|
||||
@ -126,7 +127,7 @@ class PodcastEpisode {
|
||||
setDataFromAudioFile(audioFile, index) {
|
||||
this.id = getId('ep')
|
||||
this.audioFile = audioFile
|
||||
this.title = audioFile.metadata.filename
|
||||
this.title = Path.basename(audioFile.metadata.filename, Path.extname(audioFile.metadata.filename))
|
||||
this.index = index
|
||||
this.addedAt = Date.now()
|
||||
this.updatedAt = Date.now()
|
||||
|
Loading…
Reference in New Issue
Block a user