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 // force to retrieve the MAGIC
switch (type) { switch (type) {
case 'midi': { case 'midi': {
const el = document.querySelectorAll('.SD7H- > button')[3] as HTMLButtonElement const el = document.querySelectorAll('.uPjTb > button')[3] as HTMLButtonElement
el.click() el.click()
break break
} }

View file

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