Fix podcast re-scan, fix more menu item

This commit is contained in:
advplyr 2022-03-26 19:00:55 -05:00
parent 03bfecefee
commit d5e96a3422
2 changed files with 6 additions and 4 deletions

View File

@ -324,7 +324,7 @@ export default {
} }
if (this.userCanUpdate) { if (this.userCanUpdate) {
items.push({ items.push({
func: 'showEditModalTracks', func: 'showEditModalFiles',
text: 'Files' text: 'Files'
}) })
items.push({ items.push({
@ -451,9 +451,9 @@ export default {
this.rescanning = false this.rescanning = false
}) })
}, },
showEditModalTracks() { showEditModalFiles() {
// More menu func // More menu func
this.store.commit('showEditModalOnTab', { libraryItem: this.libraryItem, tab: 'tracks' }) this.store.commit('showEditModalOnTab', { libraryItem: this.libraryItem, tab: 'files' })
}, },
showEditModalMatch() { showEditModalMatch() {
// More menu func // More menu func

View File

@ -122,7 +122,9 @@ class Podcast {
} }
findFileWithInode(inode) { findFileWithInode(inode) {
return this.episodes.find(ep => ep.audioFile.ino === inode) var episode = this.episodes.find(ep => ep.audioFile.ino === inode)
if (episode) return episode.audioFile
return null
} }
setData(mediaMetadata) { setData(mediaMetadata) {