jkwill87 / mapi

media metadata database library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Search by year range

jkwill87 opened this issue · comments

Instead of, or in addition to filtering using the year_delta kwarg parameter, it would probably be useful to just search by year range.

i.e.:

from mapi.providers import IMDb
client = IMDb()
client.search(title='The Goonies', year='1980-1990')  # yields results between 1980 and 1990
client.search(title='The Goonies', year='1980-')      # yields results from 1980 to present
client.search(title='The Goonies', year='-1980')      # yields results from prior to 1980