Skip to content

Commit

Permalink
Use provided domain instead of hardcoded one to support MegaF on mycl…
Browse files Browse the repository at this point in the history
…oud extractor (aniwave 0.7.7)
  • Loading branch information
Nixuge committed Aug 16, 2024
1 parent 9b602cc commit d0cc4ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/aniwave/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default class Source extends SourceModule implements VideoContent {
metadata = {
id: 'aniwave',
name: 'Aniwave',
version: '0.7.6',
version: '0.7.7',
icon: "https://aniwave.to/assets/s/e8c93166fd4dcf9ab41d5178518295fc1b5fcb27fd90df1c268eb0.png"
}

Expand Down
5 changes: 4 additions & 1 deletion src/shared/extractors/mycloud.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ async function doAllForKeySource(url: string, keySource: (string | Promise<Parse
// until Aniwave stabilizes to a specific key format.
async function temporaryMyCloudHandling(url: string): Promise<ISource> {
let urlSplit = url.split("?")[0].split("/");

let domain = urlSplit[2];

let input = urlSplit[urlSplit.length-1];

let key = input;
Expand All @@ -138,7 +141,7 @@ async function temporaryMyCloudHandling(url: string): Promise<ISource> {
urlSplit = urlSplit = url.split("?t=");
let tParam = urlSplit[urlSplit.length-1].split("&")[0];

let a = await request.get(`https://vid2a41.site/mediainfo/${key}?t=${tParam}&autostart=true&h=${hParam}`)
let a = await request.get(`https://${domain}/mediainfo/${key}?t=${tParam}&autostart=true&h=${hParam}`)
let jsonBody: any = a.json();

let res: string = jsonBody.result;
Expand Down

0 comments on commit d0cc4ea

Please sign in to comment.