Skip to content

Commit

Permalink
forgot to add .endsWith method in some places
Browse files Browse the repository at this point in the history
  • Loading branch information
2004durgesh committed Oct 3, 2024
1 parent 6ad5275 commit 713a36e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/extractors/vidcloud.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/vidcloud.js.map

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

4 changes: 2 additions & 2 deletions src/extractors/vidcloud.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class VidCloud extends VideoExtractor {

this.sources = sources.map((s: any) => ({
url: s.file,
isM3U8: s.file.includes('.m3u8'),
isM3U8: s.file.includes('.m3u8') || s.file.endsWith('m3u8'),
}));

result.sources.push(...this.sources);
Expand Down Expand Up @@ -63,7 +63,7 @@ class VidCloud extends VideoExtractor {

result.sources.push({
url: sources[0].file,
isM3U8: sources[0].file.includes('.m3u8'),
isM3U8: sources[0].file.includes('.m3u8') || sources[0].file.endsWith('m3u8'),
quality: 'auto',
});

Expand Down

0 comments on commit 713a36e

Please sign in to comment.