Skip to content

[TMDb] Fix duplicate include_adult parameter in movie search#1995

Open
RawScape wants to merge 1 commit into
Komet:masterfrom
RawScape:fix-tmdb-duplicate-query-param
Open

[TMDb] Fix duplicate include_adult parameter in movie search#1995
RawScape wants to merge 1 commit into
Komet:masterfrom
RawScape:fix-tmdb-duplicate-query-param

Conversation

@RawScape

Copy link
Copy Markdown

Fixes Issue #1992.

The include_adult query parameter was being appended twice to TMDb
movie search URLs, causing TMDb to reject the requests with HTTP 400.

In TmdbMovieSearchJob::doStart(), includeAdult was passed both as
a direct argument to getMovieSearchUrl() (which adds it to the
query) and again via the UrlParameterMap using
ApiUrlParameter::INCLUDE_ADULT. Removed the redundant map entry in
both code paths so the parameter is now sent exactly once.

Testing: Verified the final request URL contains include_adult
exactly once and that movie search returns results again instead of
HTTP 400.

The include_adult parameter was appended to the search query
twice, causing TMDb to reject requests with HTTP 400.

Fixes Komet#1992
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant