Skip to content

Commit

Permalink
refactor(streamwish): Sanitize m3u8 links that are not filtered prope…
Browse files Browse the repository at this point in the history
…rly with regex
  • Loading branch information
hase0278 committed May 11, 2024
1 parent 6dde0ce commit ab3f53b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/extractors/streamwish.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/streamwish.js.map

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

2 changes: 1 addition & 1 deletion src/extractors/streamwish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class StreamWish extends VideoExtractor {
let lastLink = null;
links.forEach((link: string) => {
if(link.includes('file:"')){
link = link.replace('file:"', '').replace('"', '');
link = link.replace('file:"', '').replace(new RegExp('"', 'g'), '');
}
this.sources.push({
quality: lastLink! ? 'backup' : 'default',
Expand Down

0 comments on commit ab3f53b

Please sign in to comment.