A music player that connects to your cloud/distributed storage.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Transform audio url before getting tags for album art

+10 -4
+10 -4
src/Javascript/Brain/artwork.js
··· 3 3 // (◕‿◕✿) 4 4 5 5 6 + import { transformUrl } from "../urls" 6 7 import * as processing from "../processing" 7 8 8 9 ··· 25 26 26 27 27 28 function findUsingTags(prep) { 28 - return processing.getTags( 29 - prep.trackHeadUrl, 30 - prep.trackGetUrl, 29 + return Promise.all( 30 + [ transformUrl(prep.trackHeadUrl) 31 + , transformUrl(prep.trackGetUrl) 32 + ] 33 + 34 + ).then(([ headUrl, getUrl ]) => processing.getTags( 35 + headUrl, 36 + getUrl, 31 37 prep.trackFilename, 32 38 { skipCovers: false } 33 39 34 - ).then(tags => { 40 + )).then(tags => { 35 41 return tags.picture 36 42 ? new Blob([ tags.picture.data ], { type: tags.picture.format }) 37 43 : null