From e93ad8a9c5dc7b6cd0a5943e49fbf3d5d641fa2d Mon Sep 17 00:00:00 2001 From: wukko Date: Tue, 28 May 2024 09:00:09 +0600 Subject: [PATCH] reddit: use correct id in filename & add sub name --- src/modules/processing/services/reddit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/processing/services/reddit.js b/src/modules/processing/services/reddit.js index 9341adc1..41f9efb4 100644 --- a/src/modules/processing/services/reddit.js +++ b/src/modules/processing/services/reddit.js @@ -107,7 +107,7 @@ export default async function(obj) { }).catch(() => {}) } - let id = video.split('/')[3]; + let id = `${String(obj.sub).toLowerCase()}_${obj.id}`; if (!audio) return { typeId: "redirect",