Skip to content

streamwish fix vsembed - #1574

Merged
Gujal00 merged 1 commit into
Gujal00:masterfrom
TempleLain:streamwish-fix-vsembed
Nov 19, 2026
Merged

Gujal00 merged 1 commit into
Gujal00:masterfrom
TempleLain:streamwish-fix-vsembed

Conversation

@TempleLain

@TempleLain TempleLain commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #1573

StreamWish moved playback to a new player on vsembed.com: the StreamWish hosts the plugin uses (main and dmca) now answer /e/<id> of a playable file with a 302 to https://vsembed.com/<code>, an empty JS app, so the current plugin ends in ResolverError.

Changes (streamwish.py only):

  • The embed page is fetched as before. If it ends on vsembed.com, the plugin makes the same calls as the player: /api/stream?s=<code>&ld=1 (file data; no data = removed), then /api/stream/tracking?c=<encrypted code>&ld=1, whose X-Tracking response header holds the stream info as AES-CBC encrypted JSON. Key and IV are built like the player script does (fixed key, IV = fixed salt + host name in hex); resolveurl.lib.pyaes covers it.
  • The stream info lists two HLS sources; they are taken in the player's order (tiktok, then hls).
  • Otherwise the old sources / links scraping runs unchanged on the page that was already fetched, without a second request.
  • hanerix.com (one of the plugin's own hosts, also linked directly) and vsembed.com (direct player links, vsembed.com/<code>) added to domains and pattern.

Evidence:

  • Every host in main and dmca redirects a file ID to the same vsembed code; a made-up ID still gets the old "File is no longer available" page there.
  • Old path: for old-style pages (sources and links forms, with and without subs, with a $$ referer) the patched plugin returns exactly what the current one returns.
  • Existing domains: host and media id unchanged for the /e/, /f/, /d/ and bare forms; a sweep over the domain lists of all plugins matches only the two new domains; capture groups unchanged.
  • Chain master → variant → first segment checked for both sources (tiktok: TS behind a PNG header, hls: fMP4).
  • Python 3.11, 3.13 and 3.14 compile without warnings; repo tests OK.

Tested in Kodi 22.0 RC2 (Linux) with InputStream Adaptive: plays with all sample links below. Without InputStream Adaptive Kodi 22 plays neither source: its FFmpeg rejects the disguised segment URLs ("not in allowed_segment_extensions").

Samples:

https://streamwish.to/e/cw97e5j2fl0f
https://hanerix.com/e/c1baiti6688w
https://vsembed.com/vs7nz

@Gujal00
Gujal00 merged commit 56f2a49 into Gujal00:master Nov 19, 2026
2 of 3 checks passed
@TempleLain
TempleLain deleted the streamwish-fix-vsembed branch November 20, 2026 07:35
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.

add vsembed

2 participants