mirror of
https://github.com/vega-org/vega-providers.git
synced 2026-06-19 13:07:44 +00:00
fix: update hubcloud extractor logic and bump versions
This commit is contained in:
@@ -37,13 +37,13 @@ export async function getStream({
|
||||
try {
|
||||
const streamLinks: Stream[] = [];
|
||||
console.log("dotlink", link);
|
||||
if (type === "movie") {
|
||||
if (type === "movie" && !link.includes("cloud")) {
|
||||
// vlink
|
||||
const dotlinkRes = await axios(`${link}`, { headers });
|
||||
const dotlinkText = dotlinkRes.data;
|
||||
// console.log('dotlinkText', dotlinkText);
|
||||
const vlink = dotlinkText.match(/<a\s+href="([^"]*cloud\.[^"]*)"/i) || [];
|
||||
// console.log('vLink', vlink[1]);
|
||||
console.log("vLink", vlink[1]);
|
||||
link = vlink[1];
|
||||
|
||||
// filepress link
|
||||
|
||||
Reference in New Issue
Block a user