Skip to content

Commit

Permalink
Fix(zoro): update format
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosesteven committed Mar 2, 2024
1 parent 7c22359 commit 3c5ad64
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions dist/extractors/megacloud.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/extractors/megacloud.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/extractors/megacloud.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,12 @@ class MegaCloud {
extractedData.outro = srcsData.outro;
extractedData.subtitles = srcsData.tracks.map((s: any) => ({
url: s.file,
lang: s.label,
lang: s.label ? s.label : 'Thumbnails',
}));
extractedData.sources = encryptedString.map((s) => ({
url: s.file,
type: s.type,
isM3U8: s.file.includes('.m3u8'),
}));

return extractedData;
Expand Down Expand Up @@ -104,7 +105,7 @@ class MegaCloud {
extractedData.outro = srcsData.outro;
extractedData.subtitles = srcsData.tracks.map((s: any) => ({
url: s.file,
lang: s.label,
lang: s.label ? s.label : 'Thumbnails',
}));
extractedData.sources = sources.map((s: any) => ({
url: s.file,
Expand Down

0 comments on commit 3c5ad64

Please sign in to comment.