We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Method mediaExistsInPlex not find all series or movies removed with ratingKey.
In plexapi.ts
public async getAllTmdbIds(): Promise<Number[]> { const settings = getSettings(); const tmdbIds : Number[] = [] for (const library in settings.plex.libraries) { const response = await this.getLibraryContents(settings.plex.libraries[library].id, { size: 5000, offset: 0, }); for (const entry in response.items) { const tmdbString = response.items[entry].Guid?.find((guid) => guid.id.startsWith('tmdb') ); if (tmdbString) { tmdbIds.push(Number(tmdbString.id.split('//')[1])) } else { logger.error(`Failed to fetch tmdbId : ${JSON.stringify(response.items[entry])}`, { label: 'Plex API' }); } } } return tmdbIds }
In run()
this.plexMediaCache = await this.plexClient?.getAllTmdbIds();
In mediaExistsInPlex()
const existsInPlex = this.plexMediaCache.indexOf(media.tmdbId) > -1; if (! existsInPlex) { return { existsInPlex }; }
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
Method mediaExistsInPlex not find all series or movies removed with ratingKey.
Desired Behavior
In plexapi.ts
In run()
In mediaExistsInPlex()
Additional Context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: