mediaelch: backport TMDb duplicate include_adult search fix

MediaElch 2.12.0 appends the include_adult query parameter twice to
TMDb movie search URLs (once via getMovieSearchUrl's third argument,
once via the UrlParameterMap in TmdbMovieSearchJob::doStart). TMDb
rejects the duplicate parameter with HTTP 400, surfacing as
"Network Error: Could not load the requested resource" on every
movie name search.

Backport upstream fix (Komet/MediaElch PR #1995, commit f68419e),
which removes the redundant UrlParameterMap entry. Pending a
MediaElch release > 2.12.0; remove this patch once that ships.

Upstream issue: https://github.com/Komet/MediaElch/issues/1992
Upstream PR:    https://github.com/Komet/MediaElch/pull/1995

Assisted-by: pi coding agent (zai-org/glm-5.2)
This commit is contained in:
Marvin Preuss
2026-07-10 12:56:44 +02:00
parent e81a14fdbb
commit da9297c8fd
+9
View File
@@ -38,6 +38,15 @@ stdenv.mkDerivation (finalAttrs: {
url = "https://github.com/Komet/MediaElch/commit/dbea12fbf2c1fe603819392aa2a181cffa168548.patch";
hash = "sha256-Lv6rvjKbRNr5XrdZhPyw4S4RRCOnfAGhWgcSLo0gqS8=";
})
# fix from: https://github.com/Komet/MediaElch/pull/1995
# TMDb rejects a duplicate include_adult query param with HTTP 400 (issue #1992).
# Remove once MediaElch > 2.12.0 is released.
(fetchpatch {
name = "fix-tmdb-duplicate-include-adult.patch";
url = "https://github.com/Komet/MediaElch/commit/f68419e746455d3c7eb6d95a4a1da7a6f7a5c505.patch";
hash = "sha256-u+ScJDFX2IIpjXV58MCp1uJGx9QU+7cbq+e1qZPMWns=";
})
];
nativeBuildInputs = [