fix: MIDI or PDF download not working (#107)

This commit is contained in:
Xmader 2021-01-20 10:44:54 -05:00
parent d014ade9ca
commit 49fcb99160
No known key found for this signature in database
GPG Key ID: A20B97FB9EB730E4
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ const getApiAuth = async (type: FileType, index: number): Promise<string> => {
// force to retrieve the MAGIC
switch (type) {
case 'midi': {
const el = document.querySelectorAll('.SD7H- > button')[3] as HTMLButtonElement
const el = document.querySelectorAll('.uPjTb > button')[3] as HTMLButtonElement
el.click()
break
}

View File

@ -106,7 +106,7 @@ export class SheetInfoInPage extends SheetInfo {
constructor (private document: Document) { super() }
get pageCount (): number {
return this.document.querySelectorAll('.gXB83').length
return this.document.querySelectorAll('._2uWw4').length
}
get thumbnailUrl (): string {