fix(downloads): resume interrupted Xtream VOD transfers

This commit is contained in:
4gray committed 2026-08-01 19:14:22 +02:00
1 parent 760099358b
commit 4fa307e37d
21 files changed
+719 -74

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) {