PyMovieDb icon indicating copy to clipboard operation
PyMovieDb copied to clipboard

Only getting 5 results from search

Open BlindSanji opened this issue 2 years ago • 1 comments

BlindSanji avatar Apr 26 '23 17:04 BlindSanji

In imdb.py, in the section "....method to search on IMDB...."

name = name.replace(" ", "+")
if year is None: url = f"https://www.imdb.com/find?q={name}" else: assert isinstance(year, int) url = f"https://www.imdb.com/find?q={name}+{year}"

To search for Movies change the to urls to: url = f"https://www.imdb.com/find?s=tt&q={name}" url = f"https://www.imdb.com/find?s=tt&q={name}+{year}"

To search for TV Shows change the to urls to: url = f"https://www.imdb.com/find?s=ep&q={name}" url = f"https://www.imdb.com/find?s=ep&q={name}+{year}"

To search for Actors/Celebs change the to urls to: url = f"https://www.imdb.com/find?s=nm&q={name}" url = f"https://www.imdb.com/find?s=nm&q={name}+{year}"

Anomi-Dev avatar May 07 '23 22:05 Anomi-Dev