mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-12 03:56:15 -08:00
fix(downloads): resume interrupted Xtream VOD transfers
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user