From 1adf2a2a9118f4b9d26dcc0d53036aa9e3bfcb2f Mon Sep 17 00:00:00 2001 From: Rick Meijer Date: Sun, 7 Nov 2021 17:10:10 +0100 Subject: [PATCH] I did a brain fart. Update native lang again. (#197) Forgot to add the capture group back in :) --- Community/Tdarr_Plugin_henk_Keep_Native_Lang_Plus_Eng.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Community/Tdarr_Plugin_henk_Keep_Native_Lang_Plus_Eng.js b/Community/Tdarr_Plugin_henk_Keep_Native_Lang_Plus_Eng.js index 9dfac6f..3926797 100644 --- a/Community/Tdarr_Plugin_henk_Keep_Native_Lang_Plus_Eng.js +++ b/Community/Tdarr_Plugin_henk_Keep_Native_Lang_Plus_Eng.js @@ -139,7 +139,7 @@ const tmdbApi = async (filename, api_key, axios) => { if (filename.substr(0, 2) === 'tt') { fileName = filename; } else { - const idRegex = /tt\d*/; + const idRegex = /(tt\d{7,8})/; const fileMatch = filename.match(idRegex); // eslint-disable-next-line prefer-destructuring if (fileMatch) fileName = fileMatch[1];