minor fixes
This commit is contained in:
parent
d3200f0bf2
commit
dca266db1f
@ -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:
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user