Greasy Fork is available in English.
Emby/Jellyfin 调用外部本地播放器,并回传播放记录。适配 Plex。
< Feedback on embyToLocalPlayer
plex报错是正常情况。
脚本报错,检查一下plex网页媒体文件信息,是不是没有,正常会有文件时长,体积,码率等的。
没用过cloudrive2,是转直链之类的获取不到文件信息吗
plex报错是正常情况。
脚本报错,检查一下plex网页媒体文件信息,是不是没有,正常会有文件时长,体积,码率等的。
没用过cloudrive2,是转直链之类的获取不到文件信息吗
作者您好,我看了一下,plex网页版播放时点击“获取信息”,是可以看到“媒体”、“部分”等详细信息的,应该是获取到了文件信息
plex报错是正常情况。
脚本报错,检查一下plex网页媒体文件信息,是不是没有,正常会有文件时长,体积,码率等的。
没用过cloudrive2,是转直链之类的获取不到文件信息吗
您好,我尝试了一下用电脑本地下载到硬盘的文件作为媒体库,还是会报错,报错代码好像还是一样的,具体日志如下:
use python embed. "D:\RuanJian\Plex\embyToLocalPlayer\python_embed\python.exe"
Python 3.9.13
D:\RuanJian\Plex\embyToLocalPlayer\python_embed\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
6: update to latest version
press a number 1
you have pressed one
[08/03/24 14:05:29.0] ['Python path: D:\\RuanJian\\Plex\\embyToLocalPlayer\\python_embed\\python.exe']
[08/03/24 14:05:29.0] ['ini path: D:\\RuanJian\\Plex\\embyToLocalPlayer\\embyToLocalPlayer_config.ini']
[08/03/24 14:05:29.0] Windows-10-10.0.19045-SP0 Python-3.9.13
[08/03/24 14:05:31.0] D:\RuanJian\Plex\embyToLocalPlayer\embyToLocalPlayer.py
[08/03/24 14:05:31.0] serving at http://127.0.0.1:58000
127.0.0.1 - - [03/Aug/2024 14:05:44] "POST /plexToLocalPlayer/ HTTP/1.1" 200 -
----------------------------------------[08/03/24 14:05:44.4] PyScript/2024.07.20 UserScript/2024.06.17 Tampermonkey/5.1.1
Exception occurred during processing of request from [08/03/24 14:05:44.4] Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36 Edg/127.0.0.0('127.0.0.1', 12904)
Traceback (most recent call last):
File "socketserver.py", line 683, in process_request_thread
File "socketserver.py", line 360, in finish_request
File "socketserver.py", line 747, in __init__
File "http\server.py", line 425, in handle
File "http\server.py", line 413, in handle_one_request
File "D:\RuanJian\Plex\embyToLocalPlayer\utils\http_server.py", line 65, in do_POST
data = parse_received_data_emby(data) if self.path.startswith('/emby') else parse_received_data_plex(data)
File "D:\RuanJian\Plex\embyToLocalPlayer\utils\tools.py", line 489, in parse_received_data_plex
duration = data['duration']
KeyError: 'duration'
docker pull linuxserver/plex
版本1.40.4.8679
最新版无法复现,什么服务端版本,注意不是 webui 版本。
docker pull linuxserver/plex
版本1.40.4.8679
最新版无法复现,什么服务端版本,注意不是 webui 版本。
plex搞不好放弃了,换了emby,就可以正常调用了,感谢大佬
https://github.com/kjtsune/embyToLocalPlayer/issues/64
新版plex bug引起,目前不考虑适配,等待plex修复或者用老版本。具体哪个版本可用未测试。
请教一下大佬们,用的plex,plex是在电脑本地部署的,使用的是cloudrive2挂载的文件做媒体库,按照embyToLocalPlayer的教程,安装了油猴脚本、和最新版的python,配置文件embyToLocalPlayer_config.ini中只修改了potplayer的地址为我本地对应播放器exe的路径。
启动服务之后没有报错,点击1之后显示serving at http://127.0.0.1:58000,应该是运行成功了,但是在plex中点击播放会直接失败,plex报错“加载播放列表时出现错误。”,运行日志如下:
use python embed. "D:\RuanJian\Plex\embyToLocalPlayer\python_embed\python.exe"
Python 3.9.13
D:\RuanJian\Plex\embyToLocalPlayer\python_embed\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
6: update to latest version
press a number 1
you have pressed one
[08/03/24 00:39:31.1] ['Python path: D:\\RuanJian\\Plex\\embyToLocalPlayer\\python_embed\\python.exe']
[08/03/24 00:39:31.1] ['ini path: D:\\RuanJian\\Plex\\embyToLocalPlayer\\embyToLocalPlayer_config.ini']
[08/03/24 00:39:31.1] Windows-10-10.0.19045-SP0 Python-3.9.13
[08/03/24 00:39:33.1] D:\RuanJian\Plex\embyToLocalPlayer\embyToLocalPlayer.py
[08/03/24 00:39:33.1] serving at http://127.0.0.1:58000
127.0.0.1 - - [03/Aug/2024 00:41:34] "POST /plexToLocalPlayer/ HTTP/1.1" 200 -
----------------------------------------[08/03/24 00:41:34.6] PyScript/2024.07.20 UserScript/2024.06.17 Tampermonkey/5.1.1
Exception occurred during processing of request from ('127.0.0.1', 14818)
[08/03/24 00:41:34.6] Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36 Edg/127.0.0.0
Traceback (most recent call last):
File "socketserver.py", line 683, in process_request_thread
File "socketserver.py", line 360, in finish_request
File "socketserver.py", line 747, in __init__
File "http\server.py", line 425, in handle
File "http\server.py", line 413, in handle_one_request
File "D:\RuanJian\Plex\embyToLocalPlayer\utils\http_server.py", line 65, in do_POST
data = parse_received_data_emby(data) if self.path.startswith('/emby') else parse_received_data_plex(data)
File "D:\RuanJian\Plex\embyToLocalPlayer\utils\tools.py", line 489, in parse_received_data_plex
duration = data['duration']
KeyError: 'duration'