Compare commits
2 commits
c1e69ac51f
...
8ff7cbde64
Author | SHA1 | Date | |
---|---|---|---|
8ff7cbde64 | |||
97158b2ecf |
3 changed files with 6 additions and 3 deletions
|
@ -13,12 +13,12 @@ RUN npm i -g pm2
|
||||||
|
|
||||||
RUN echo "[]" > proxy/proxy.json
|
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
|
RUN apt-get update && apt-get install -y ffmpeg
|
||||||
|
|
||||||
EXPOSE 3333
|
EXPOSE 3333
|
||||||
|
|
||||||
CMD ["pm2-runtime", "bin/www"]
|
CMD ["pm2-runtime", "bin/www"]
|
||||||
|
|
|
@ -81,6 +81,8 @@ router.get('/status/:uuid', function (req, res ,next) {
|
||||||
let uuid = req.params.uuid;
|
let uuid = req.params.uuid;
|
||||||
if (progress[uuid]) {
|
if (progress[uuid]) {
|
||||||
res.send(progress[uuid]);
|
res.send(progress[uuid]);
|
||||||
|
} else {
|
||||||
|
res.send(undefined);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -267,6 +267,7 @@ Come take a look here https://git.namejeff.xyz/Supositware/jeff-downloader for a
|
||||||
xhttp.send();
|
xhttp.send();
|
||||||
xhttp.addEventListener("load", function(event) {
|
xhttp.addEventListener("load", function(event) {
|
||||||
console.log(event.target.responseText);
|
console.log(event.target.responseText);
|
||||||
|
if (event.target.responseText === '') return;
|
||||||
document.getElementsByTagName("progress")[0].value = event.target.responseText;
|
document.getElementsByTagName("progress")[0].value = event.target.responseText;
|
||||||
document.getElementsByTagName("progress")[0].innerHTML = `${event.target.responseText}%`;
|
document.getElementsByTagName("progress")[0].innerHTML = `${event.target.responseText}%`;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue