mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-30 14:49:49 +02:00
Scanner v4, audio file metadata used in setting book details, embedded cover art extracted and used
This commit is contained in:
parent
6f891208d0
commit
dc18eb408e
15 changed files with 371 additions and 108 deletions
|
@ -20,11 +20,12 @@ class AudioTrack {
|
|||
this.channels = null
|
||||
this.channelLayout = null
|
||||
|
||||
this.tagAlbum = null
|
||||
this.tagArtist = null
|
||||
this.tagGenre = null
|
||||
this.tagTitle = null
|
||||
this.tagTrack = null
|
||||
// Storing tags in audio track is unnecessary, tags are stored on audio file
|
||||
// this.tagAlbum = null
|
||||
// this.tagArtist = null
|
||||
// this.tagGenre = null
|
||||
// this.tagTitle = null
|
||||
// this.tagTrack = null
|
||||
|
||||
if (audioTrack) {
|
||||
this.construct(audioTrack)
|
||||
|
@ -50,11 +51,11 @@ class AudioTrack {
|
|||
this.channels = audioTrack.channels
|
||||
this.channelLayout = audioTrack.channelLayout
|
||||
|
||||
this.tagAlbum = audioTrack.tagAlbum
|
||||
this.tagArtist = audioTrack.tagArtist
|
||||
this.tagGenre = audioTrack.tagGenre
|
||||
this.tagTitle = audioTrack.tagTitle
|
||||
this.tagTrack = audioTrack.tagTrack
|
||||
// this.tagAlbum = audioTrack.tagAlbum
|
||||
// this.tagArtist = audioTrack.tagArtist
|
||||
// this.tagGenre = audioTrack.tagGenre
|
||||
// this.tagTitle = audioTrack.tagTitle
|
||||
// this.tagTrack = audioTrack.tagTrack
|
||||
}
|
||||
|
||||
get name() {
|
||||
|
@ -77,11 +78,11 @@ class AudioTrack {
|
|||
timeBase: this.timeBase,
|
||||
channels: this.channels,
|
||||
channelLayout: this.channelLayout,
|
||||
tagAlbum: this.tagAlbum,
|
||||
tagArtist: this.tagArtist,
|
||||
tagGenre: this.tagGenre,
|
||||
tagTitle: this.tagTitle,
|
||||
tagTrack: this.tagTrack
|
||||
// tagAlbum: this.tagAlbum,
|
||||
// tagArtist: this.tagArtist,
|
||||
// tagGenre: this.tagGenre,
|
||||
// tagTitle: this.tagTitle,
|
||||
// tagTrack: this.tagTrack
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -104,11 +105,11 @@ class AudioTrack {
|
|||
this.channels = probeData.channels
|
||||
this.channelLayout = probeData.channelLayout
|
||||
|
||||
this.tagAlbum = probeData.file_tag_album || null
|
||||
this.tagArtist = probeData.file_tag_artist || null
|
||||
this.tagGenre = probeData.file_tag_genre || null
|
||||
this.tagTitle = probeData.file_tag_title || null
|
||||
this.tagTrack = probeData.file_tag_track || null
|
||||
// this.tagAlbum = probeData.file_tag_album || null
|
||||
// this.tagArtist = probeData.file_tag_artist || null
|
||||
// this.tagGenre = probeData.file_tag_genre || null
|
||||
// this.tagTitle = probeData.file_tag_title || null
|
||||
// this.tagTrack = probeData.file_tag_track || null
|
||||
}
|
||||
|
||||
syncFile(newFile) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue