fix: download PDF & MP3 & MIDI
This commit is contained in:
parent
5b4cb76f59
commit
81fd45e6b4
1 changed files with 0 additions and 10 deletions
10
src/file.ts
10
src/file.ts
|
@ -9,11 +9,6 @@ const MAGIC_ARG_INDEX = 3
|
|||
|
||||
type FileType = 'img' | 'mp3' | 'midi'
|
||||
|
||||
const getApiUrl = (id: number, type: FileType, index: number): string => {
|
||||
// proxy
|
||||
return `https://musescore.now.sh/api/jmuse?id=${id}&type=${type}&index=${index}`
|
||||
}
|
||||
|
||||
/**
|
||||
* I know this is super hacky.
|
||||
*/
|
||||
|
@ -39,11 +34,6 @@ export const getFileUrl = async (type: FileType, index = 0): Promise<string> =>
|
|||
return type
|
||||
})
|
||||
},
|
||||
'VSrV' (_, r, t) { // override
|
||||
t.d(r, 'b', () => {
|
||||
return getApiUrl
|
||||
})
|
||||
},
|
||||
})
|
||||
|
||||
const fn: (id: number, index: number, cb: (url: string) => any, magic: string) => string = fileUrlModule.a
|
||||
|
|
Loading…
Reference in a new issue