feat(extractor): support PixelServer in HubCloud
looks like it will limit download speed after a while, but some sources only have that one..
This commit is contained in:
parent
327d297d58
commit
39850dccf7
4 changed files with 72 additions and 29 deletions
|
|
@ -21,26 +21,45 @@ export class HubCloud extends Extractor {
|
|||
const linksHtml = await this.fetcher.text(ctx, new URL(redirectUrlMatch[1] as string));
|
||||
const $ = cheerio.load(linksHtml);
|
||||
|
||||
return $('a')
|
||||
.filter((_i, el) => {
|
||||
const text = $(el).text();
|
||||
return [
|
||||
...$('a')
|
||||
.filter((_i, el) => {
|
||||
const text = $(el).text();
|
||||
|
||||
return text.includes('FSL') || text.includes('Download File');
|
||||
})
|
||||
.map((_i, el) => {
|
||||
const url = new URL($(el).attr('href') as string);
|
||||
return {
|
||||
url,
|
||||
format: Format.unknown,
|
||||
label: `${this.label} (FSL)`,
|
||||
sourceId: `${this.id}_fsl`,
|
||||
ttl: this.ttl,
|
||||
meta: {
|
||||
...meta,
|
||||
bytes: bytes.parse($('#size').text()) as number,
|
||||
title: $('title').text().trim(),
|
||||
},
|
||||
};
|
||||
}).toArray();
|
||||
return text.includes('FSL') || text.includes('Download File');
|
||||
})
|
||||
.map((_i, el) => {
|
||||
const url = new URL($(el).attr('href') as string);
|
||||
return {
|
||||
url,
|
||||
format: Format.unknown,
|
||||
label: `${this.label} (FSL)`,
|
||||
sourceId: `${this.id}_fsl`,
|
||||
ttl: this.ttl,
|
||||
meta: {
|
||||
...meta,
|
||||
bytes: bytes.parse($('#size').text()) as number,
|
||||
title: $('title').text().trim(),
|
||||
},
|
||||
};
|
||||
}).toArray(),
|
||||
...$('a')
|
||||
.filter((_i, el) => $(el).text().includes('PixelServer'))
|
||||
.map((_i, el) => {
|
||||
const url = new URL(($(el).attr('href') as string).replace('/u/', '/api/file/'));
|
||||
return {
|
||||
url,
|
||||
format: Format.unknown,
|
||||
label: `${this.label} (PixelServer)`,
|
||||
sourceId: `${this.id}_pixelserver`,
|
||||
ttl: this.ttl,
|
||||
meta: {
|
||||
...meta,
|
||||
bytes: bytes.parse($('#size').text()) as number,
|
||||
title: $('title').text().trim(),
|
||||
},
|
||||
};
|
||||
}).toArray(),
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -217,7 +217,7 @@ HubCloud | <a href="https://hubcloud.fans/">Create An Account</a> |<a href="http
|
|||
|
||||
|
||||
|
||||
<a id="download" href="https://stockbhoomi.com/hubcloud.php?host=hubcloud&id=idt1evqfuviqiei&token=RUhXL2kvWnI3MmtFTTlyc1VGY2JSQmVieHZmMU5oV0Q0M2lDNGxSUXNHYz0=" rel="noopener noreferrer nofollow" class="btn btn-primary h6 p-2"><i class="fas fa-file-download fa-lg"></i> Generate Direct Download Link</a>
|
||||
<a id="download" href="https://stockbhoomi.com/hubcloud.php?host=hubcloud&id=idt1evqfuviqiei&token=RUhXL2kvWnI3MmtFTTlyc1VGY2JSR2FsTnZCdkd0NFN5aUpPN1V0NHRSaz0=" rel="noopener noreferrer nofollow" class="btn btn-primary h6 p-2"><i class="fas fa-file-download fa-lg"></i> Generate Direct Download Link</a>
|
||||
|
||||
|
||||
<center>
|
||||
|
|
@ -280,7 +280,7 @@ setTimeout(function(){
|
|||
document.querySelector(".loading").classList.add("d-none");
|
||||
document.querySelector(".vd").classList.remove("d-none");
|
||||
}, 2000);
|
||||
var url = 'https://stockbhoomi.com/hubcloud.php?host=hubcloud&id=idt1evqfuviqiei&token=RUhXL2kvWnI3MmtFTTlyc1VGY2JSQmVieHZmMU5oV0Q0M2lDNGxSUXNHYz0=';
|
||||
var url = 'https://stockbhoomi.com/hubcloud.php?host=hubcloud&id=idt1evqfuviqiei&token=RUhXL2kvWnI3MmtFTTlyc1VGY2JSR2FsTnZCdkd0NFN5aUpPN1V0NHRSaz0=';
|
||||
|
||||
var download = document.getElementById('download');
|
||||
download.onclick = function() {
|
||||
|
|
|
|||
|
|
@ -186,14 +186,14 @@ HubCloud | <a href="https://hubcloud.one/drive/admin">Login</a>
|
|||
|
||||
|
||||
<iframe src="https://pixeldrain.dev/u/HqAiguQV?embed" width="0" height="0" frameborder="0" style="display:none;" sandbox="allow-scripts allow-same-origin"></iframe>
|
||||
<a href="https://pixeldrain.dev/api/file/HqAiguQV?download" download="Dexter.Original.Sin.S01E01.2160p.SKST.WEB-DL.H.265.DDP5.1-Tyrell.mkv" rel="noreferrer nofollow noopener" target="_blank" class="btn btn-success btn-lg h6" style="background-color: #6f42c1 !important;"><i class="fas fa-file-download fa-lg"></i> Download [PixelServer : 2]</a>
|
||||
<a href="https://pixeldrain.net/u/HqAiguQV" download="Dexter.Original.Sin.S01E01.2160p.SKST.WEB-DL.H.265.DDP5.1-Tyrell.mkv" rel="noreferrer nofollow noopener" target="_blank" class="btn btn-success btn-lg h6" style="background-color: #6f42c1 !important;"><i class="fas fa-file-download fa-lg"></i> Download [PixelServer : 2]</a>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a href="https://pixel.hubcdn.fans/?id=09390238cb029171611a66b9e72b9822755e6186eba89fc4dde6c46192ba872179ddcafaf78c3f6f54324736eebcc8e18cd80ef3dd06af168ccdfdb28b1587ed8ebccd18243ef3fcaf8cceca58077fe99766f72be73f9313483474c2dc1eface::97afc7c3b12a7729385b190f2272b9af" rel="noreferrer nofollow noopener" target="_blank" class="btn btn-danger btn-lg h6" style="background-color: #dc3545 !important;">
|
||||
<a href="https://pixel.hubcdn.fans/?id=55dfe3bec1f77d3c553ba6b6a0aeff92ee72376c03084441ed504e1cdc4cf2d4460b59b582dbe7749290d4604dc62a16eb14a50b8ef363af21ec062cb6a4abba0628d9c86492b7d0ee81c807bafa4e129b785cf373f5110394c8c554e197bc93::6725b1b0af5aa152c0092a65ab78ec2b" rel="noreferrer nofollow noopener" target="_blank" class="btn btn-danger btn-lg h6" style="background-color: #dc3545 !important;">
|
||||
<i class="fas fa-file-download fa-lg"></i> Download [Server : 10Gbps]</a>
|
||||
|
||||
<p style="font-size: 12px; padding-bottom:4px !important; margin-bottom:0px !important">
|
||||
|
|
@ -205,7 +205,7 @@ HubCloud | <a href="https://hubcloud.one/drive/admin">Login</a>
|
|||
|
||||
|
||||
|
||||
<a href="https://pub-52f57cc1b81f4ecdac02802c1566c33d.r2.dev/Dexter.Original.Sin.S01E01.2160p.SKST.WEB-DL.H.265.DDP5.1-Tyrell.mkv?token=1757266673" id="fsl" rel="noreferrer nofollow noopener" target="_blank" class="btn btn-success btn-lg h6"><i class="fas fa-file-download fa-lg"></i> Download [FSL Server]</a>
|
||||
<a href="https://pub-52f57cc1b81f4ecdac02802c1566c33d.r2.dev/Dexter.Original.Sin.S01E01.2160p.SKST.WEB-DL.H.265.DDP5.1-Tyrell.mkv?token=1757321957" id="fsl" rel="noreferrer nofollow noopener" target="_blank" class="btn btn-success btn-lg h6"><i class="fas fa-file-download fa-lg"></i> Download [FSL Server]</a>
|
||||
<script>
|
||||
const fsl = document.getElementById('fsl');
|
||||
if (fsl) fsl.href += '1' + new Date().getMinutes();
|
||||
|
|
@ -214,7 +214,7 @@ HubCloud | <a href="https://hubcloud.one/drive/admin">Login</a>
|
|||
|
||||
|
||||
|
||||
<a href="https://ddl2.cloudserver-1692956302.workers.dev/1397312583/6cdd7ff8b1fb6615b7ce0b339b206cb67dd140531166c9c1161261082af07b2999382e7d642563213cf18eefb3ad719f538570709c0dfd21b6a58a55a7495ae3f21f7d1e3e096505f9b4364d4882b080277fda2233c0d95b1354e00813dc1184e3cba271c7e528b77f5b76aaaee228627dfa4ffc72cd2f7febf4d5ae9684878929cb0880e392bc7c0ee80a585fbc70e54fb79a787d19719f6ef87355c59b58f9e7779789f598fae081b49f34dd59177b951fd695bf1f351c089300c38cf4a574::8205c99f34e429bb498549d59d6398db/Dexter.Original.Sin.S01E01.2160p.SKST.WEB-DL.H.265.DDP5.1-Tyrell.mkv.zip" rel="noreferrer nofollow noopener" target="_blank" class="btn btn-success btn-lg h6" style="background-color: #474b48 !important;"><i class="fas fa-file-download fa-lg"></i> Download [ZipDisk Server]</a>
|
||||
<a href="https://ddl2.cloudserver-1692960118.workers.dev/1397312652/a249c7271b2fd48dc4b1e4e72f34f8a01f161ca5b99288247094652cc5752f3df69900f99858d7a625101fa5684e26db7bb06fbf59e4b4c131f1a7a5f3eaca344e52d84cfc415b50fc5fad60fa8117f02cd111bdd14d137a628b7cb752a7870584f2121868b428a1a11cdcbffe7d71e458baf62c065402d991ba15a1eaba0c7eb63850b7c1331f9120848c8da37b746d41e6fba8c68988c3225a63cbfaf03200570ab7864b8453a2715a913af2dff0617c5518e97a43ab4a0758da5756066650::554adeac5b1127312efc574b6258a0ac/Dexter.Original.Sin.S01E01.2160p.SKST.WEB-DL.H.265.DDP5.1-Tyrell.mkv.zip" rel="noreferrer nofollow noopener" target="_blank" class="btn btn-success btn-lg h6" style="background-color: #474b48 !important;"><i class="fas fa-file-download fa-lg"></i> Download [ZipDisk Server]</a>
|
||||
<p style="
|
||||
font-size: 12px; padding-bottom:4px !important; margin-bottom:0px !important">Resume is Supported in ZipDisk But please extract it as the files is inside zip</p>
|
||||
|
||||
|
|
@ -240,7 +240,7 @@ HubCloud | <a href="https://hubcloud.one/drive/admin">Login</a>
|
|||
if(isAndroid()){
|
||||
android_launch.classList.remove("d-none");
|
||||
android_launch.addEventListener('click', ()=>{
|
||||
var anchor = document.createElement('a');anchor.href= createIntentURL({host: 'https://pub-52f57cc1b81f4ecdac02802c1566c33d.r2.dev/Dexter.Original.Sin.S01E01.2160p.SKST.WEB-DL.H.265.DDP5.1-Tyrell.mkv?token=1757266673',scheme: 'https',type: 'video/x-matrosk',
|
||||
var anchor = document.createElement('a');anchor.href= createIntentURL({host: 'https://pub-52f57cc1b81f4ecdac02802c1566c33d.r2.dev/Dexter.Original.Sin.S01E01.2160p.SKST.WEB-DL.H.265.DDP5.1-Tyrell.mkv?token=1757321957',scheme: 'https',type: 'video/x-matrosk',
|
||||
});anchor.click();
|
||||
});
|
||||
|
||||
|
|
@ -319,7 +319,7 @@ Msc
|
|||
</body>
|
||||
</html><script>
|
||||
window.sessionStorage.setItem('xl',window.location.href);
|
||||
function cn(t){let e=window.location.protocol+"//"+window.location.host+t;history.replaceState({path:e},"",e)}cn("");
|
||||
function cn(t){let e=window.location.protocol+"//"+window.location.host+t;history.replaceState({path:e},"",e)}cn("/pnb-personal-loan-up-to-%e2%82%b98-lakh-in-minutes-apply-online/");
|
||||
</script>
|
||||
<script>
|
||||
function setCookie(e,t,i){let o=encodeURIComponent(t),$=new Date;$.setTime($.getTime()+36e5*i);let n=`${e}=${o}; expires=${$.toUTCString()}; path=/`;document.cookie=n}setCookie("xyt",1,24);
|
||||
|
|
@ -31,6 +31,18 @@ exports[`HubCloud handle dark 2017 s03e08 1`] = `
|
|||
"ttl": 259200000,
|
||||
"url": "https://pub-c0c400d353df4c68ae3a2d5e089ecf60.r2.dev/Dark.S03E08.The.Paradise.1080p.NF.WEB-DL.English.DDP5.1-German.DDP5.1.H.264-4kHdHub.Com.mkv",
|
||||
},
|
||||
{
|
||||
"format": "unknown",
|
||||
"label": "HubCloud (PixelServer)",
|
||||
"meta": {
|
||||
"bytes": 3382286745,
|
||||
"countryCodes": [],
|
||||
"title": "Dark.S03E08.The.Paradise.1080p.NF.WEB-DL.English.DDP5.1-German.DDP5.1.H.264-4kHdHub.Com.mkv",
|
||||
},
|
||||
"sourceId": "hubcloud_pixelserver",
|
||||
"ttl": 259200000,
|
||||
"url": "https://pixeldrain.dev/api/file/2kFQBQio?download",
|
||||
},
|
||||
]
|
||||
`;
|
||||
|
||||
|
|
@ -46,7 +58,19 @@ exports[`HubCloud handle dexter original sin 2024 s01e01 1`] = `
|
|||
},
|
||||
"sourceId": "hubcloud_fsl",
|
||||
"ttl": 259200000,
|
||||
"url": "https://pub-52f57cc1b81f4ecdac02802c1566c33d.r2.dev/Dexter.Original.Sin.S01E01.2160p.SKST.WEB-DL.H.265.DDP5.1-Tyrell.mkv?token=1757266673",
|
||||
"url": "https://pub-52f57cc1b81f4ecdac02802c1566c33d.r2.dev/Dexter.Original.Sin.S01E01.2160p.SKST.WEB-DL.H.265.DDP5.1-Tyrell.mkv?token=1757321957",
|
||||
},
|
||||
{
|
||||
"format": "unknown",
|
||||
"label": "HubCloud (PixelServer)",
|
||||
"meta": {
|
||||
"bytes": 5733781340,
|
||||
"countryCodes": [],
|
||||
"title": "Dexter.Original.Sin.S01E01.2160p.SKST.WEB-DL.H.265.DDP5.1-Tyrell.mkv",
|
||||
},
|
||||
"sourceId": "hubcloud_pixelserver",
|
||||
"ttl": 259200000,
|
||||
"url": "https://pixeldrain.net/api/file/HqAiguQV",
|
||||
},
|
||||
]
|
||||
`;
|
||||
|
|
|
|||
Loading…
Reference in a new issue