mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-14 09:45:55 -07:00
Made imdb regex ungreedy
This commit is contained in:
parent
3a03b7ed46
commit
86c536252a
2 changed files with 2 additions and 2 deletions
|
|
@ -126,7 +126,7 @@ const getFileInfoFromLookup = async (
|
|||
)
|
||||
: Promise<IFileInfo> => {
|
||||
let fInfo: IFileInfo = { id: '-1' };
|
||||
const imdbId = /\b(tt|nm|co|ev|ch|ni)\d{7,10}\b/i.exec(fileName)?.at(0) ?? '';
|
||||
const imdbId = /\b(tt|nm|co|ev|ch|ni)\d{7,10}?\b/i.exec(fileName)?.at(0) ?? '';
|
||||
if (imdbId !== '') {
|
||||
const lookupResponse: ILookupResponse = await args.deps.axios({
|
||||
method: 'get',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue