Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ddea340

Browse files
authoredApr 4, 2025··
fix(megaup): refactor decoding logic (#675)
1 parent e73b6f3 commit ddea340

File tree

3 files changed

+24
-26
lines changed

3 files changed

+24
-26
lines changed
 

‎dist/extractors/megaup.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/extractors/megaup.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/extractors/megaup.ts

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -114,36 +114,34 @@ export class MegaUp extends VideoExtractor {
114114
};
115115
Decode = (n: string) => {
116116
n = this.#substitute(
117-
this.#transform(
118-
'fnxEj3tD4Bl0X',
119-
this.#base64UrlDecode(
120-
this.#reverseIt(
121-
this.#reverseIt(
122-
this.#transform(
123-
'IjilzMV57GrnF',
124-
this.#base64UrlDecode(
125-
this.#substitute(
126-
this.#reverseIt(
127-
this.#substitute(
128-
this.#transform(
129-
'PlzI69YVCtGwoa8',
130-
this.#base64UrlDecode(this.#base64UrlDecode(`${n}`))
131-
),
132-
'c2IfHZwSX1mj',
133-
'mwfXcS2ZjI1H'
134-
)
135-
),
136-
'82NkgQDYbIF',
137-
'82IQNkFgYbD'
138-
)
117+
this.#reverseIt(
118+
this.#transform(
119+
'3U8XtHJfgam02k',
120+
this.#base64UrlDecode(
121+
this.#transform(
122+
'PgiY5eIZWn',
123+
this.#base64UrlDecode(
124+
this.#substitute(
125+
this.#reverseIt(
126+
this.#substitute(
127+
this.#transform(
128+
'QKbVomcBHysCW9',
129+
this.#base64UrlDecode(this.#reverseIt(this.#base64UrlDecode(n)))
130+
),
131+
'0GsO8otUi21aY',
132+
'Go1UiY82st0Oa'
133+
)
134+
),
135+
'rXjnhU3SsbEd',
136+
'rXEsS3nbjhUd'
139137
)
140138
)
141139
)
142140
)
143141
)
144142
),
145-
'crwkth05iJR8',
146-
'JRkt8rw0i5ch'
143+
'7DtY4mHcMA2yIL',
144+
'IM7Am4D2yYHctL'
147145
);
148146

149147
return decodeURIComponent(n);

0 commit comments

Comments
 (0)
Please sign in to comment.