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 41da4c0..9dfac6f 100644 --- a/Community/Tdarr_Plugin_henk_Keep_Native_Lang_Plus_Eng.js +++ b/Community/Tdarr_Plugin_henk_Keep_Native_Lang_Plus_Eng.js @@ -10,7 +10,7 @@ const details = () => ({ (requires TMDB api key) and English. 'Native' languages are the ones that are listed on imdb. It does an API call to Radarr, Sonarr to check if the movie/series exists and grabs the IMDB id. As a last resort it - falls back to '[imdb-ttDIGITS] in the filename.`, + falls back to the IMDB id in the filename.`, Version: '1.00', Link: 'https://github.com/HaveAGitGat/Tdarr_Plugins/blob/master/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 = /\[imdb-(tt\d*)]/; + const idRegex = /tt\d*/; const fileMatch = filename.match(idRegex); // eslint-disable-next-line prefer-destructuring if (fileMatch) fileName = fileMatch[1];