diff options
| author | WBRK-dev <[email protected]> | 2024-05-02 12:54:34 +0200 |
|---|---|---|
| committer | WBRK-dev <[email protected]> | 2024-05-02 12:55:10 +0200 |
| commit | 8ee9120a1093e23a0c75b6b97ba83c62e1d58a85 (patch) | |
| tree | 58496d5ef71279746da4e30caaca75f60bddf875 /src | |
| parent | 5c7dcb325e160c65b0743c128dcef0e35e7335c6 (diff) | |
| download | aniwatch-api-8ee9120a1093e23a0c75b6b97ba83c62e1d58a85.tar.xz aniwatch-api-8ee9120a1093e23a0c75b6b97ba83c62e1d58a85.zip | |
fix: crash on unencrypted sources in megacloud extractor
Diffstat (limited to 'src')
| -rw-r--r-- | src/extractors/megacloud.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/extractors/megacloud.ts b/src/extractors/megacloud.ts index 1ab74b5..bbed720 100644 --- a/src/extractors/megacloud.ts +++ b/src/extractors/megacloud.ts @@ -78,7 +78,7 @@ class MegaCloud { // console.log(JSON.stringify(srcsData, null, 2)); const encryptedString = srcsData.sources; - if (srcsData.encrypted && Array.isArray(encryptedString)) { + if (!srcsData.encrypted && Array.isArray(encryptedString)) { extractedData.intro = srcsData.intro; extractedData.outro = srcsData.outro; extractedData.tracks = srcsData.tracks; |
