mirror of
https://github.com/vega-org/vega-providers.git
synced 2026-04-17 15:41:45 +00:00
fix: update Hollywood filter in catalog and bump versions in manifest to 1.6 and 1.2
This commit is contained in:
@@ -37,7 +37,7 @@ export async function getStream({
|
||||
hubdriveLink =
|
||||
$('h3:contains("1080p")').find("a").attr("href") ||
|
||||
redirectLinkText.match(
|
||||
/href="(https:\/\/hubcloud\.[^\/]+\/drive\/[^"]+)"/
|
||||
/href="(https:\/\/hubcloud\.[^\/]+\/drive\/[^"]+)"/,
|
||||
)[1];
|
||||
if (hubdriveLink.includes("hubdrive")) {
|
||||
const hubdriveRes = await axios.get(hubdriveLink, { headers, signal });
|
||||
@@ -52,7 +52,7 @@ export async function getStream({
|
||||
const hubcloudText = hubdriveLinkRes.data;
|
||||
const hubcloudLink =
|
||||
hubcloudText.match(
|
||||
/<META HTTP-EQUIV="refresh" content="0; url=([^"]+)">/i
|
||||
/<META HTTP-EQUIV="refresh" content="0; url=([^"]+)">/i,
|
||||
)?.[1] || hubdriveLink;
|
||||
try {
|
||||
return await hubcloudExtracter(hubcloudLink, signal);
|
||||
@@ -77,14 +77,14 @@ const pen = function (value: string) {
|
||||
(_0x1a470e <= "Z" ? 90 : 122) >=
|
||||
(_0x1a470e = _0x1a470e.charCodeAt(0) + 13)
|
||||
? _0x1a470e
|
||||
: _0x1a470e - 26
|
||||
: _0x1a470e - 26,
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
const abortableTimeout = (
|
||||
ms: number,
|
||||
{ signal }: { signal?: AbortSignal } = {}
|
||||
{ signal }: { signal?: AbortSignal } = {},
|
||||
) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
if (signal && signal.aborted) {
|
||||
@@ -105,10 +105,10 @@ const abortableTimeout = (
|
||||
export async function getRedirectLinks(
|
||||
link: string,
|
||||
signal: AbortSignal,
|
||||
headers: any
|
||||
headers: any,
|
||||
) {
|
||||
try {
|
||||
const res = await fetch(link, { headers, signal });
|
||||
const res = await fetch(link, { signal });
|
||||
const resText = await res.text();
|
||||
|
||||
var regex = /ck\('_wp_http_\d+','([^']+)'/g;
|
||||
@@ -160,7 +160,7 @@ function rot13(str: string) {
|
||||
const isUpperCase = char <= "Z";
|
||||
const baseCharCode = isUpperCase ? 65 : 97;
|
||||
return String.fromCharCode(
|
||||
((charCode - baseCharCode + 13) % 26) + baseCharCode
|
||||
((charCode - baseCharCode + 13) % 26) + baseCharCode,
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user