tmdb_helper

Code.tmdb_helper.get_tmdb_id_from_collection(search_query)[source]

Search for a collection by name.

Use the builtin Plex tmdb api service to search for a tmdb collection by name.

Parameters:
search_query : str

Name of collection to search for.

Returns:
Optional[int]

Return collection ID if found, otherwise None.

Examples

>>> get_tmdb_id_from_collection(search_query='James Bond Collection')
645
>>> get_tmdb_id_from_collection(search_query='James Bond')
645
Code.tmdb_helper.get_tmdb_id_from_imdb_id(imdb_id)[source]

Convert IMDB ID to TMDB ID.

Use the builtin Plex tmdb api service to search for a movie by IMDB ID.

Parameters:
imdb_id : str

IMDB ID to convert.

Returns:
Optional[int]

Return TMDB ID if found, otherwise None.

Examples

>>> get_tmdb_id_from_imdb_id(imdb_id='tt1254207')
10378