consumet.ts
consumet.ts copied to clipboard
fix(vidcloud): ensure isM3U8 property detects URLs ending with -m3u8 correctly
What kind of change does this PR introduce? This PR introduces a bug fix by updating the isM3U8 check to correctly detect M3U8 URLs, including those ending with 'm3u8'.
Did you add tests for your changes?
No
If relevant, did you update the documentation?
No
Summary
previously due to isM3U8: f2.includes('.m3u8') below error was occuring
so added endsWith('m3u8') to further check if the url ends with m3u8 extension, resulting in
Other information