Fix playback: per-link referer + cookies, and NewTV API as primary flow (Netmirror v44) - #35
Open
benzntech wants to merge 4 commits into
Open
Fix playback: per-link referer + cookies, and NewTV API as primary flow (Netmirror v44)#35benzntech wants to merge 4 commits into
benzntech wants to merge 4 commits into
Conversation
added 2 commits
August 9, 2026 16:10
- getVideoInterceptor: use per-link referer (fallback flow needs videodownloader.site, not net77) — old code forced net77 referer on all links, CDN returned 429 - getVideoInterceptor: attach t_hash_t + nativeCookies (cf_clearance, user_token, t_hash_p) to native-flow video requests - newUrl: net22.cc is dead -> net52.cc (bypass() was hardcoded to net52 anyway) - bypass(): use headers.values(Set-Cookie) consistent with extractCookiesFromResponse fix
benzntech
force-pushed
the
fix-2004-stream-errors
branch
from
August 9, 2026 13:52
bbe8cc9 to
340b1aa
Compare
|
Still vedio service error |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Playback fails with "No Links Found" (and previously
ERROR_CODE_IO_BAD_HTTP_STATUS (2004)— "Remote error / Source error"). Three compounding bugs:getVideoInterceptorsentReferer: https://net77.cc/homeon every video request. The fallback CDN requiresReferer: https://videodownloader.site/: with the correct referer the stream returns 200, with net77 it returns 429 → ExoPlayer 2004.net77.cc/home) returns 403 to app clients, so the h-token gets demoted and stream URLs 404.[{...}]) but the code parsed it as an object → Jackson deserialization crash → fallback → "No Links Found".Changes
mobiledetect.*→checknewtv.php→tv.imgcdn.kim/newtv/player.php?id=→ HLS link) — no Cloudflare cookies needed; same flow used by the other providers in this repo (HotStar/Disney/Prime already use it).getVideoInterceptor: use the link's ownrefererinstead of hardcoding the native one; attacht_hash_t+ collected cookies for native hosts only.playlist.phpparse fix: accept both array and object responses.newUrl:net22.cc(dead) →net52.cc;bypass()cookie extraction uses.values("Set-Cookie").Verified
./gradlew make→ BUILD SUCCESSFULTemporary availability
A prebuilt extension (Netmirror v45) is available for users hit by this bug while it's pending — in CloudStream → Extensions → + Add repository, enter shortcode: