Skip to content

Commit

Permalink
fix: download PDF & MP3 & MIDI
Browse files Browse the repository at this point in the history
  • Loading branch information
Xmader committed Nov 12, 2020
1 parent 5b4cb76 commit 81fd45e
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand All @@ -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
Expand Down

0 comments on commit 81fd45e

Please sign in to comment.