minor fixes

This commit is contained in:
nikili0n 2023-09-26 01:30:36 +03:00
parent bb2b339b7d
commit 490e32badf
2 changed files with 7 additions and 1 deletions

View File

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

View File

@ -105,8 +105,13 @@
result.innerHTML = xhr2.response.result; result.innerHTML = xhr2.response.result;
result.href = 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) { } else if (xhr2.status === 200) {
result.innerHTML = xhr2.response.result; result.innerHTML = xhr2.response.result;
result.href = xhr2.response.result; result.href = xhr2.response.result;