mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-14 05:06:16 -08:00
fix(m3u): use custom User-Agent for URL import and refresh
This commit is contained in:
1 parent
eb8e997c8f
commit
72018e55ae
34 files changed
+508
-27
No files matched your search
@@ -340,6 +340,11 @@ export interface ElectronBridgeTrustOptions {
|
||||
trustedInsecureTlsHosts?: string[];
|
||||
}
|
||||
|
||||
export interface ElectronBridgePlaylistFetchOptions
|
||||
extends ElectronBridgeTrustOptions {
|
||||
userAgent?: string;
|
||||
}
|
||||
|
||||
export interface ElectronBridgeEpgFreshnessResult {
|
||||
staleUrls: string[];
|
||||
freshUrls: string[];
|
||||
@@ -718,7 +723,7 @@ export interface ElectronBridgeApi {
|
||||
fetchPlaylistByUrl: (
|
||||
url: string,
|
||||
title?: string,
|
||||
options?: ElectronBridgeTrustOptions
|
||||
options?: ElectronBridgePlaylistFetchOptions
|
||||
) => Promise<Playlist>;
|
||||
updatePlaylistFromFilePath: (
|
||||
filePath: string,
|
||||
|
||||
@@ -25,6 +25,7 @@ export interface PlaylistRefreshPayload {
|
||||
title: string;
|
||||
filePath?: string;
|
||||
url?: string;
|
||||
userAgent?: string;
|
||||
trustedInsecureTlsHosts?: string[];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user