Skip to content

Commit 3c0f439

Browse files
committed
minor fix
1 parent 3c05824 commit 3c0f439

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/parsers/decryptors/decrypt_v1.decryptor.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export async function decryptSources_v1(epID, id, name, type) {
3030
const { data } = await axios.get(`${baseUrl}/getSources?id=${sourceId}&_k=${token}`);
3131
rawSourceData = data;
3232
const encrypted = rawSourceData?.sources;
33+
rawSourceData.iframe=`${baseUrl}/${sourceId}?k=1&autoPlay=0&oa=0&asi=1`;
3334
if (!encrypted) throw new Error("Encrypted source missing");
3435
const decrypted = CryptoJS.AES.decrypt(encrypted, key.trim()).toString(CryptoJS.enc.Utf8);
3536
if (!decrypted) throw new Error("Failed to decrypt source");
@@ -46,7 +47,7 @@ export async function decryptSources_v1(epID, id, name, type) {
4647
},
4748
}
4849
);
49-
50+
rawSourceData.iframe=`https://${fallback}/stream/s-2/${epID}/${type}`;
5051
const dataIdMatch = html.match(/data-id=["'](\d+)["']/);
5152
const realId = dataIdMatch?.[1];
5253
if (!realId) throw new Error("Could not extract data-id for fallback");
@@ -85,6 +86,7 @@ export async function decryptSources_v1(epID, id, name, type) {
8586
tracks: rawSourceData.tracks ?? [],
8687
intro: rawSourceData.intro ?? null,
8788
outro: rawSourceData.outro ?? null,
89+
iframe: rawSourceData.iframe,
8890
server: name,
8991
};
9092
} catch (error) {

0 commit comments

Comments
 (0)