Greasy Fork is available in English.

embyToLocalPlayer

Emby/Jellyfin 调用外部本地播放器,并回传播放记录。适配 Plex。

< embyToLocalPlayerについてのフィードバック

レート:良 – スクリプトは良好に動作する

§
投稿日: 2023/08/18

请问plex点击播放后debug.bat选2提示FileNotFoundError: [WinError 2] The system cannot find the file specified是什么问题

kjtsune作者
§
投稿日: 2023/08/18

提供完整日志。

§
投稿日: 2023/08/20

感谢回复,以下是完整日志
Python 3.11.4
C:\Users\Johnson\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\python.exe
press a number
1: run in console
2: run in background and add to startup folder
3: open startup folder
4: path translate helper
5: copy script path to clipboard
press a number 1
you have pressed one
08/20/23 19:52 ['Python path: C:\\Users\\_hide_user_\\AppData\\Local\\Microsoft\\WindowsApps\\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\\python.exe']
08/20/23 19:52 ['ini path: C:\\Users\\_hide_user_\\Downloads\\embyToLocalPlayer\\embyToLocalPlayer_config.ini']
08/20/23 19:52 Windows-10-10.0.22621-SP0 Python-3.11.4
08/20/23 19:52 kill 15068 "C:\Users\_hide_user_\AppData\Local\Microsoft\WindowsApps\python.exe" "C:\Users\_hide_user_\Downloads\embyToLocalPlayer\embyToLocalPlayer.py"
08/20/23 19:52 C:\Users\_hide_user_\Downloads\embyToLocalPlayer\embyToLocalPlayer.py
08/20/23 19:52 serving at 127.0.0.1:58000
127.0.0.1 - - [20/Aug/2023 19:54:05] "POST /plexToLocalPlayer/ HTTP/1.1" 200 -
08/20/23 19:54 server=plex mount_disk_mode=True
08/20/23 19:54 ["127._mix_host_:32400 match: gui[except_host] ['localhost', '127.0.0.1', '192.168.', '192-168-', 'example.com:8096']"]
08/20/23 19:54 ['C:\\Green\\mpv\\mpv.exe', 'Z:\\_hide_user_\\Movie\\Elemental.2023.2160p.AMZN.WEB-DL.DDP5.1.Atmos.H.265-FLUX[TGx]\\Elemental.2023.2160p.AMZN.WEB-DL.DDP5.1.Atmos.H.265-FLUX.mkv'] cmd
08/20/23 19:54 ["127._mix_host_:32400 match: playlist[enable_host] ['localhost', '127.0.0.1', '192.168.', '192-168-', 'example.com:8096']"]
08/20/23 19:54 ['C:\\Green\\mpv\\mpv.exe', 'Z:\\_hide_user_\\Movie\\Elemental.2023.2160p.AMZN.WEB-DL.DDP5.1.Atmos.H.265-FLUX[TGx]\\Elemental.2023.2160p.AMZN.WEB-DL.DDP5.1.Atmos.H.265-FLUX.mkv', '--force-media-title=Elemental.2023.2160p.AMZN.WEB-DL.DDP5.1.Atmos.H.265-FLUX.mkv', '--osd-playing-msg=${path}', '--start=885', '--input-ipc-server=\\\\.\\pipe\\pipe_nameA', '--fullscreen=yes']
Exception in thread Thread-5 (start_play):
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.1264.0_x64__qbz5n2kfra8p0\Lib\threading.py", line 1038, in _bootstrap_inner
self.run()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.1264.0_x64__qbz5n2kfra8p0\Lib\threading.py", line 975, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\Johnson\Downloads\embyToLocalPlayer\embyToLocalPlayer.py", line 97, in start_play
player_manager.start_player(cmd=cmd, start_sec=start_sec, sub_file=sub_file, media_title=media_title)
File "C:\Users\Johnson\Downloads\embyToLocalPlayer\utils\players.py", line 50, in start_player
self.player_kwargs = player_function_dict[self.player_name](**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Johnson\Downloads\embyToLocalPlayer\utils\players.py", line 323, in mpv_player_start
player = subprocess.Popen(cmd)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.1264.0_x64__qbz5n2kfra8p0\Lib\subprocess.py", line 1026, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.1264.0_x64__qbz5n2kfra8p0\Lib\subprocess.py", line 1538, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] The system cannot find the file specified

kjtsune作者
§
投稿日: 2023/08/20

08/20/23 19:54 ['C:\\Green\\mpv\\mpv.exe', 'Z:\\_hide_user_\\Movie\\Eleme
找不到播放器, 检查 ini 文件里播放器路径,和播放器选择。两个地方。

§
投稿日: 2023/08/20

感谢,已修复

返信を投稿

返信を投稿するにはログインしてください。