woodruffw / ff2mpv

A Firefox/Chrome add-on for playing URLs in mpv.
https://addons.mozilla.org/en-US/firefox/addon/ff2mpv/
Other
521 stars 52 forks source link

fix: Use absolute path to update ff2mpv.bat file #86

Closed DanSM-5 closed 2 years ago

DanSM-5 commented 2 years ago

I was trying to reproduce #85 on a fresh Windows install and I noticed that updating ff2mpv.bat was not working. Curiously the backend worked with Firefox using python but not on edge and chrome (those two required to update the command to py).

The reason seems to be that .NET may have a different working directory than powershell (more info). This change should ensure that it uses the right path to update the file.

woodruffw commented 2 years ago

Thanks for debugging!