minor fixes

This commit is contained in:
Dantenerosas 2023-09-26 01:30:36 +03:00 committed by nikili0n
parent 9083f05c94
commit 82a951f715
2 changed files with 7 additions and 1 deletions

View File

@ -85,6 +85,7 @@ class MasterService:
"likee.video": BaseParser(params),
"dzen.ru": BaseParser(params),
"yappy.media": YappyParser(params),
"yandex.ru": BaseParser(params),
}
return parser_mapping[domain]
except KeyError:

View File

@ -105,8 +105,13 @@
result.innerHTML = xhr2.response.result;
result.href = xhr2.response.result;
};
setTimeout(sendReq, 5000);
if (xhr2.status !== 510) {
setTimeout(sendReq, 5000);
} else {
document.forms.download.querySelector('[type="submit"]').disabled = false;
document.forms.download.querySelector('.submit-spinner').classList.add('submit-spinner_hide');
};
} else if (xhr2.status === 200) {
result.innerHTML = xhr2.response.result;
result.href = xhr2.response.result;