mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-18 02:51:30 +03:00
Fixed issue where pip was missing in Docker
Temp twitch chat files now get auto removed
This commit is contained in:
@@ -49,7 +49,7 @@ RUN npm config set strict-ssl false && \
|
|||||||
FROM base
|
FROM base
|
||||||
RUN npm install -g pm2 && \
|
RUN npm install -g pm2 && \
|
||||||
apt update && \
|
apt update && \
|
||||||
apt install -y --no-install-recommends gosu python3-minimal python-is-python3 atomicparsley && \
|
apt install -y --no-install-recommends gosu python3-minimal python-is-python3 python-pip atomicparsley && \
|
||||||
apt clean && \
|
apt clean && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
RUN pip install tcd
|
RUN pip install tcd
|
||||||
|
|||||||
@@ -17,7 +17,9 @@ async function getCommentsForVOD(clientID, clientSecret, vodId) {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const raw_json = fs.readJSONSync(path.join('appdata', `${vodId}.json`));
|
const temp_chat_path = path.join('appdata', `${vodId}.json`);
|
||||||
|
|
||||||
|
const raw_json = fs.readJSONSync(temp_chat_path);
|
||||||
const new_json = raw_json.comments.map(comment_obj => {
|
const new_json = raw_json.comments.map(comment_obj => {
|
||||||
return {
|
return {
|
||||||
timestamp: comment_obj.content_offset_seconds,
|
timestamp: comment_obj.content_offset_seconds,
|
||||||
@@ -28,6 +30,8 @@ async function getCommentsForVOD(clientID, clientSecret, vodId) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
fs.unlinkSync(temp_chat_path);
|
||||||
|
|
||||||
return new_json;
|
return new_json;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user