#464 added include_video and with_release_type to tmdb_discover

pull/465/head
meisnate12 3 years ago
parent ea516aa1b0
commit 6fd699b58a

@ -1033,7 +1033,7 @@ class CollectionBuilder:
new_dictionary[discover_final] = util.parse(discover_attr, discover_data, parent=method_name, options=tmdb.discover_monetization_types) new_dictionary[discover_final] = util.parse(discover_attr, discover_data, parent=method_name, options=tmdb.discover_monetization_types)
else: else:
raise Failed(f"Collection Error: {method_name} {discover_final} attribute: must be used with watch_region") raise Failed(f"Collection Error: {method_name} {discover_final} attribute: must be used with watch_region")
elif discover_attr in ["include_adult", "include_null_first_air_dates", "screened_theatrically"]: elif discover_attr in tmdb.discover_booleans:
new_dictionary[discover_attr] = util.parse(discover_attr, discover_data, datatype="bool", parent=method_name) new_dictionary[discover_attr] = util.parse(discover_attr, discover_data, datatype="bool", parent=method_name)
elif discover_attr == "vote_average": elif discover_attr == "vote_average":
new_dictionary[discover_final] = util.parse(discover_final, discover_data, datatype="float", parent=method_name) new_dictionary[discover_final] = util.parse(discover_final, discover_data, datatype="float", parent=method_name)

@ -29,23 +29,24 @@ discover_all = [
"vote_average.gte", "vote_average.lte", "with_runtime.gte", "with_runtime.lte", "vote_average.gte", "vote_average.lte", "with_runtime.gte", "with_runtime.lte",
"with_companies", "without_companies ", "with_genres", "without_genres", "with_keywords", "without_keywords", "with_companies", "without_companies ", "with_genres", "without_genres", "with_keywords", "without_keywords",
"with_watch_providers", "without_watch_providers", "watch_region", "with_watch_monetization_types", "with_status", "with_watch_providers", "without_watch_providers", "watch_region", "with_watch_monetization_types", "with_status",
"include_adult", "timezone", "screened_theatrically", "include_null_first_air_dates", "limit", "with_type", "include_adult", "include_video", "timezone", "screened_theatrically", "include_null_first_air_dates", "limit", "with_type",
"air_date.gte", "air_date.lte", "first_air_date.gte", "first_air_date.lte", "first_air_date_year", "with_networks" "air_date.gte", "air_date.lte", "first_air_date.gte", "first_air_date.lte", "first_air_date_year", "with_networks", "with_release_type"
] ]
discover_movie_only = [ discover_movie_only = [
"region", "with_cast", "with_crew", "with_people", "certification_country", "certification", "region", "with_cast", "with_crew", "with_people", "certification_country", "certification", "include_video",
"year", "primary_release_year", "primary_release_date", "release_date", "include_adult" "year", "primary_release_year", "primary_release_date", "release_date", "include_adult", "with_release_type"
] ]
discover_tv_only = [ discover_tv_only = [
"timezone", "screened_theatrically", "include_null_first_air_dates", "air_date", "timezone", "screened_theatrically", "include_null_first_air_dates", "air_date",
"first_air_date", "first_air_date_year", "with_networks", "with_status", "with_type", "first_air_date", "first_air_date_year", "with_networks", "with_status", "with_type",
] ]
discover_strings = [ discover_strings = [
"with_cast", "with_crew", "with_people", "with_companies", "with_networks", "with_genres", "without_genres", "with_cast", "with_crew", "with_people", "with_companies", "with_networks", "with_genres", "without_genres", "with_release_type",
"with_keywords", "without_keywords", "with_original_language", "timezone", "with_watch_providers", "without_watch_providers" "with_keywords", "without_keywords", "with_original_language", "timezone", "with_watch_providers", "without_watch_providers"
] ]
discover_ints = ["vote_count", "with_runtime"] discover_ints = ["vote_count", "with_runtime"]
discover_years = ["primary_release_year", "year", "first_air_date_year"] discover_years = ["primary_release_year", "year", "first_air_date_year"]
discover_booleans = ["include_adult", "include_video", "include_null_first_air_dates", "screened_theatrically"]
discover_dates = [ discover_dates = [
"primary_release_date.gte", "primary_release_date.lte", "release_date.gte", "release_date.lte", "primary_release_date.gte", "primary_release_date.lte", "release_date.gte", "release_date.lte",
"air_date.gte", "air_date.lte", "first_air_date.gte", "first_air_date.lte" "air_date.gte", "air_date.lte", "first_air_date.gte", "first_air_date.lte"

Loading…
Cancel
Save