I did a brain fart. Update native lang again. (#197)

Forgot to add the capture group back in :)
make-only-subtitle-default
Rick Meijer 4 years ago committed by GitHub
parent b797c50b31
commit 1adf2a2a91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save