Compare commits

..

2 commits

3 changed files with 6 additions and 3 deletions

View file

@ -13,9 +13,9 @@ RUN npm i -g pm2
RUN echo "[]" > proxy/proxy.json
RUN NODE_ENV=production
ENV NODE_ENV=production
RUN PORT=3333
ENV PORT=3333
RUN apt-get update && apt-get install -y ffmpeg

View file

@ -81,6 +81,8 @@ router.get('/status/:uuid', function (req, res ,next) {
let uuid = req.params.uuid;
if (progress[uuid]) {
res.send(progress[uuid]);
} else {
res.send(undefined);
}
});

View file

@ -267,6 +267,7 @@ Come take a look here https://git.namejeff.xyz/Supositware/jeff-downloader for a
xhttp.send();
xhttp.addEventListener("load", function(event) {
console.log(event.target.responseText);
if (event.target.responseText === '') return;
document.getElementsByTagName("progress")[0].value = event.target.responseText;
document.getElementsByTagName("progress")[0].innerHTML = `${event.target.responseText}%`;
});