fix: MIDI or PDF download not working (#107)
This commit is contained in:
parent
d014ade9ca
commit
49fcb99160
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue