upsies.utils.webdbs.imdb
API for imdb.com
Classes
- class upsies.utils.webdbs.imdb.ImdbApi(config=None)[source]
Bases:
WebDbApiBaseAPI for imdb.com
- sanitize_query(query)[source]
Deal with IMDb-specific quirks
Remove
"and"fromQuery.titlebecause IMDb doesn’t find"Foo & Bar"if we search for"Foo and Bar". It seems to work vice versa, i.e. the query"Foo and Bar"finds"Foo & Bar", so we keep any"&".Replace
"dont"with"don't","cant"with"can't", etc.
- async search(query)[source]
Search DB
- Parameters:
query –
Queryinstance- Returns:
List of
SearchResultinstances
- async poster_url(id, season=None)[source]
Return URL of poster image or empty string
- Parameters:
season –
Return poster for specific season
If this is not supported by the concrete implementation, default to the URL for the main poster.
- async type(id)[source]
Return
ReleaseType