mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 15:38:19 -07:00
I did a brain fart. Update native lang again. (#197)
Forgot to add the capture group back in :)
This commit is contained in:
parent
b797c50b31
commit
1adf2a2a91
1 changed files with 1 additions and 1 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue