fix(downloads): resume interrupted Xtream VOD transfers (#1329)

* fix(downloads): resume interrupted Xtream VOD transfers

* fix(downloads): validate partials before resuming

* fix(downloads): propagate headers to episode transfers
This commit is contained in:
4gray authored and GitHub committed 2026-08-01 22:01:10 +02:00
1 parent d44045de31
commit aba89d64cf
29 files changed
+894 -92

No files matched your search

@@ -1,8 +1,5 @@
export type XtreamPortalStatusType =
| 'active'
| 'inactive'
| 'expired'
| 'unavailable';
'active' | 'inactive' | 'expired' | 'unavailable';
export interface XtreamPortalStatusResponseLike {
user_info?: {
@@ -19,6 +16,10 @@ export interface XtreamCredentialsFromUrl {
const XTREAM_API_ENDPOINT_PATTERN = /\/(?:get|player_api)\.php$/i;
// Some Xtream panels challenge generic Node HTTP clients while allowing
// established IPTV players. Keep API, probe, and download requests aligned.
export const XTREAM_CLIENT_USER_AGENT = 'VLC/3.0.18 LibVLC/3.0.18';
export function normalizeXtreamServerUrl(value: string): string {
const trimmed = value.trim();
if (!trimmed) {