mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-14 09:41:27 +03:00
Fixed issue where pip was missing in Docker
Temp twitch chat files now get auto removed
This commit is contained in:
@@ -17,7 +17,9 @@ async function getCommentsForVOD(clientID, clientSecret, vodId) {
|
||||
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 => {
|
||||
return {
|
||||
timestamp: comment_obj.content_offset_seconds,
|
||||
@@ -28,6 +30,8 @@ async function getCommentsForVOD(clientID, clientSecret, vodId) {
|
||||
}
|
||||
});
|
||||
|
||||
fs.unlinkSync(temp_chat_path);
|
||||
|
||||
return new_json;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user