Thann / play-with-mpv

Chrome extension that allows you to play videos in webpages like youtube with MPV instead
https://chrome.google.com/webstore/detail/play-with-mpv/hahklcmnfgffdlchjigehabfbiigleji
The Unlicense
349 stars 80 forks source link

play-with-mpv doesn't work #49

Closed dcbzn closed 3 years ago

dcbzn commented 3 years ago

I literally know nothing about programming. I followed all the steps, IDK what I'm doing wrong.

serving on localhost:7531 MPV ARGS: ['--ytdl-format=bestvideo[height<=?1080]+bestaudio/best']

Exception occurred during processing of request from ('127.0.0.1', 51547) Traceback (most recent call last): File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.496.0_x64qbz5n2kfra8p0\lib\socketserver.py", line 316, in _handle_request_noblock self.process_request(request, client_address) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.496.0_x64__qbz5n2kfra8p0\lib\socketserver.py", line 347, in process_request self.finish_request(request, client_address) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.496.0_x64qbz5n2kfra8p0\lib\socketserver.py", line 360, in finish_request self.RequestHandlerClass(request, client_address, self) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.496.0_x64qbz5n2kfra8p0\lib\socketserver.py", line 720, in init self.handle() File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.496.0_x64qbz5n2kfra8p0\lib\http\server.py", line 427, in handle self.handle_one_request() File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.496.0_x64qbz5n2kfra8p0\lib\http\server.py", line 415, in handle_one_request method() File "C:\Users\daban\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\play_with_mpv.py", line 46, in do_GET pipe = Popen(['mpv', urls, '--force-window'] + File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.496.0_x64qbz5n2kfra8p0\lib\subprocess.py", line 947, in init self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.496.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 1416, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, FileNotFoundError: [WinError 2] The system cannot find the file specified

Thann commented 3 years ago

This means mpv was not found on the "PATH". If you type mpv into the terminal, it should open up a window. if not, you need to install it, or add the binary location to the "PATH" variable.