Skip to content

Commit 25ffee2

Browse files
committed
remove validation
1 parent cc47302 commit 25ffee2

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.2
1+
1.0.3

tmdbapis/tmdb.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,8 @@ def _validate_discover(self, is_movie, **kwargs):
156156
if is_movie and v not in discover_movie_sort_options or not is_movie and v not in discover_tv_sort_options:
157157
raise Invalid(f"{v} is not a valid sort_by option")
158158
validated[k] = v
159-
elif k in ["region", "watch_region"]:
159+
elif k in ["region"]:
160160
validated[k] = self._validate_country(v).upper()
161-
elif k == "with_original_language":
162-
validated[k] = self._validate_language(v)
163-
elif k in ["with_title_translation", "with_name_translation", "with_overview_translation"]:
164-
validated[k] = self._validate_translation(v)
165161
elif k == "certification_country":
166162
if "certification" not in kwargs and "certification.lte" not in kwargs and "certification.gte" not in kwargs:
167163
raise Invalid("certification_country must be used with either certification, certification.lte, or certification.gte")

0 commit comments

Comments
 (0)