embyToLocalPlayer

Play in an external player. Update watch history to Emby/Jellyfin server. Support Plex.

< Feedback on embyToLocalPlayer

Question/comment

§
Posted: 2023-05-28

大佬,脚本很好用,但是在换用MPV播放器后,只有第一次可以成功加载,后续点击其他视频均不再生效(使用MPC-BE是完全正常的),debug运行显示如下:

press a number
1: run in console
2: run in background and add to startup folder
3: open startup folder
4: path translate helper 1
you have pressed one
05/28/23 23:22 ['Python path: C:\\Users\\_hide_user_\\AppData\\Local\\Programs\\Python\\Python38\\python.exe']
05/28/23 23:22 ['ini path: C:\\Software\\embyToLocalPlayer\\embyToLocalPlayer_config.ini']
05/28/23 23:22 Windows-10-10.0.18363-SP0 Python-3.8.10
system proxy: http://127.0.0.1:7890
05/28/23 23:22 kill 15404 "C:\Users\_hide_user_\AppData\Local\Programs\Python\Python38\python.exe" "C:\Software\embyToLocalPlayer\embyToLocalPlayer.py"
05/28/23 23:22 embyToLocalPlayer.py
05/28/23 23:22 serving at 127.0.0.1:58000
127.0.0.1 - - [28/May/2023 23:22:35] "POST /embyToLocalPlayer/ HTTP/1.1" 200 -
05/28/23 23:22 server=emby mount_disk_mode=True
05/28/23 23:22 ["loca_mix_host_:8098 match: gui[except_host] ['localhost', '127.0.0.1', '192.168.', '192-168-', 'example.com:8096']"]
05/28/23 23:22 ['C:\\Software\\mpv-lazy-20230513-vsLite\\mpv.exe', 'F:\\[Anime][BD][TV]\\[VCB-Studio] 机动战士高达UC\\S01\\[VCB-Studio] Mobile Suit Gundam Unicorn Movie S01E01 - Day of the Unicorn.mkv'] cmd
05/28/23 23:22 ["loca_mix_host_:8098 match: playlist[enable_host] ['localhost', '127.0.0.1', '192.168.', '192-168-', 'example.com:8096']"]
05/28/23 23:22 ['C:\\Software\\mpv-lazy-20230513-vsLite\\mpv.exe', 'F:\\[Anime][BD][TV]\\[VCB-Studio] 机动战士高达UC\\S01\\[VCB-Studio] Mobile Suit Gundam Unicorn Movie S01E01 - Day of the Unicorn.mkv', '--force-media-title=[VCB-Studio] Mobile Suit Gundam Unicorn Movie S01E01 - Day of the Unicorn.mkv', '--osd-playing-msg=${path}', '--start=0', '--input-ipc-server=\\\\.\\pipe\\pipe_nameA', '--fullscreen=yes']
05/28/23 23:22 C:\Software\embyToLocalPlayer\utils\autohotkey_tool.exe
05/28/23 23:22 send 2 requests, update done, used time: 0.006981372833251953
Exception in thread Thread-5:
Traceback (most recent call last):
File "C:\Users\LXY\AppData\Local\Programs\Python\Python38\lib\threading.py", line 932, in _bootstrap_inner
self.run()
File "C:\Users\LXY\AppData\Local\Programs\Python\Python38\lib\threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "embyToLocalPlayer.py", line 98, in start_play
player_manager.playlist_add()
File "C:\Software\embyToLocalPlayer\utils\players.py", line 62, in playlist_add
self.playlist_data = playlist_fun[self.player_name](data=data, **self.player_kwargs)
File "C:\Software\embyToLocalPlayer\utils\players.py", line 318, in playlist_add_mpv
mpv.command(
File "C:\Software\embyToLocalPlayer\utils\python_mpv_jsonipc.py", line 627, in command
return self.mpv_inter.command(command, *args)
File "C:\Software\embyToLocalPlayer\utils\python_mpv_jsonipc.py", line 338, in command
raise MPVError(data["error"])
utils.python_mpv_jsonipc.MPVError: invalid parameter
127.0.0.1 - - [28/May/2023 23:23:18] "POST /embyToLocalPlayer/ HTTP/1.1" 200 -
05/28/23 23:23 server=emby mount_disk_mode=True
05/28/23 23:23 ["loca_mix_host_:8098 match: gui[except_host] ['localhost', '127.0.0.1', '192.168.', '192-168-', 'example.com:8096']"]
05/28/23 23:23 player_is_running, skip
05/28/23 23:23 send 2 requests, update done, used time: 0.00399017333984375
127.0.0.1 - - [28/May/2023 23:24:17] "POST /embyToLocalPlayer/ HTTP/1.1" 200 -
05/28/23 23:24 server=emby mount_disk_mode=True
05/28/23 23:24 ["loca_mix_host_:8098 match: gui[except_host] ['localhost', '127.0.0.1', '192.168.', '192-168-', 'example.com:8096']"]
05/28/23 23:24 player_is_running, skip
05/28/23 23:24 send 2 requests, update done, used time: 0.003988981246948242

kjtsuneAuthor
§
Posted: 2023-05-29
Edited: 2023-05-29

修复了,重新下载zip

§
Posted: 2023-05-29

感谢,完全正常了

Post reply

Sign in to post a reply.