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

Configure Feed

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

transformUrl when storing tracks in cache

+3 -1
+3 -1
src/Javascript/Brain/index.js
··· 13 13 import { fromCache, removeCache, reportError } from "./common" 14 14 import { sendData, storageCallback, toCache } from "./common" 15 15 import { identity } from "../common" 16 + import { transformUrl } from "../urls" 16 17 17 18 importScripts("brain.elm.js") 18 19 importScripts("subworkers.js") ··· 179 180 list.reduce( 180 181 (acc, item) => { 181 182 return acc 182 - .then(_ => fetch(item.url)) 183 + .then(_ => transformUrl(item.url)) 184 + .then(fetch) 183 185 .then(r => r.blob()) 184 186 .then(b => db.setInIndex({ key: item.trackId, data: b, store: db.storeNames.tracks })) 185 187 },