Andrews54757 / FastStream

Stream videos without buffering in the browser. An extension that gives you a better, accessible video player designed for your needs.
https://faststream.online/
Other
405 stars 28 forks source link

[BUG] Fails to recognize URLs with parameters #240

Closed pintassilgo closed 2 weeks ago

pintassilgo commented 2 weeks ago

https://github.com/Andrews54757/FastStream/blob/614bfc660404fcdfeb5686e96be6f2ef7632f2a8/chrome/background/background.mjs#L780

This code only matches URLs ending with the file extension, it fails on URLs with parameters, such as video.mp4?token=yadayada&expire=1726066490.

Could replace by something like this:

      regexFilter: '^.+\\.(' + filetypes.join('|') + ')(\\?.*)?$',
Andrews54757 commented 2 weeks ago

Fixed