mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-22 06:33:21 +03:00
Updated twitch chat component to support user colors and to auto open if the chat has already been downloaded
This commit is contained in:
@@ -2037,6 +2037,8 @@ app.post('/api/getFile', optionalJwt, function (req, res) {
|
||||
if (!file && type) file = db.get(`files.${type}`).find({uid: uid}).value();
|
||||
}
|
||||
|
||||
// check if chat exists for twitch videos
|
||||
if (file['url'].includes('twitch.tv')) file['chat_exists'] = fs.existsSync(file['path'].substring(0, file['path'].length - 4) + '.twitch_chat.json');
|
||||
|
||||
if (file) {
|
||||
res.send({
|
||||
|
||||
Reference in New Issue
Block a user