diff --git a/src/DailymotionScript.ts b/src/DailymotionScript.ts index a8567e789579b23a70b3664dee46d5ec678531fa..0848a889c2e2ca557f4f6a277f2eb43517b6989b 100644 --- a/src/DailymotionScript.ts +++ b/src/DailymotionScript.ts @@ -881,14 +881,6 @@ function getSearchPagerAll(contextQuery): VideoPager { return new SearchPagerAll(results, videoConnection?.pageInfo?.hasNextPage, params, context.page, getSearchPagerAll); } -function checkHLS(url, headersToAdd, usePlatformAuth = false) { - // const resp = http.GET(url, headersToAdd, true); - var resp = getHttpContext({ usePlatformAuth }).GET(url, headersToAdd, usePlatformAuth); - - if (!resp.isOk) { - throw new UnavailableException('This content is not available') - } -} function getSavedVideo(url, usePlatformAuth = false) { @@ -937,8 +929,6 @@ function getSavedVideo(url, usePlatformAuth = false) { const hls_url = player_metadata?.qualities?.auto[0]?.url; - checkHLS(hls_url, headers1); - const videoDetailsRequestHeaders = { "Content-Type": "application/json", "User-Agent": USER_AGENT,