more progress (still broken)

This commit is contained in:
2023-11-06 09:03:01 +01:00
parent 210f9d62eb
commit 4b0b31471b
4 changed files with 112 additions and 71 deletions

View File

@@ -206,6 +206,7 @@
repeat: false,
isShowingFancyView: false,
errorOccurredLoading: false,
coverArtSetting: 'api'
}
},
methods: {
@@ -291,7 +292,7 @@
},
indexFiles () {
for ( let dir in this.loadedDirs ) {
fetch( 'http://localhost:8081/indexDirs?dir=' + this.loadedDirs[ dir ] + ( this.loadCoverArtPreview ? '&coverart=true' : '' ) ).then( res => {
fetch( 'http://localhost:8081/indexDirs?dir=' + this.loadedDirs[ dir ] + ( this.loadCoverArtPreview ? '&coverart=' + this.coverArtSetting : '' ) ).then( res => {
if ( res.status === 200 ) {
this.errorOccurredLoading = false;
res.json().then( json => {