update
This commit is contained in:
@@ -135,6 +135,15 @@ def pick_watch_link(data):
|
||||
return (providers.get(REGION) or {}).get("link")
|
||||
|
||||
|
||||
def pick_rentable(data):
|
||||
"""Ob man den Film in Deutschland leihen kann — laut JustWatch, über
|
||||
TMDB. None, wenn gar keine Anbieterdaten mitkamen."""
|
||||
results = data.get("watch/providers", {}).get("results")
|
||||
if results is None:
|
||||
return None
|
||||
return 1 if (results.get(REGION) or {}).get("rent") else 0
|
||||
|
||||
|
||||
def pick_trailer(data):
|
||||
"""Trailer bevorzugt, sonst Teaser. Sprache egal."""
|
||||
videos = [
|
||||
|
||||
Reference in New Issue
Block a user