embyToLocalPlayer

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

< Feedback on embyToLocalPlayer

مراجعة: Good - script works

§
Posted: 11-01-2024

大佬,功能非常棒,python加载了,播放器也修改了,优猴插件也开启了,点播放没反应?也不知从哪开始检查,请大佬帮忙

§
Posted: 11-01-2024

jellyfin系统使用

kjtsuneمؤلف
§
Posted: 12-01-2024

bat按1,网页点播放,复制日志。
在jellyfin主页,点击油猴插件,截图。

§
Posted: 12-01-2024

[2024-01-12 13:54:37.820 +08:00] [WRN] [53] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from "http://localhost:8096/Items/5e235d72684ffb15916b4dd70b563f05/Images/Primary?fillHeight=446&fillWidth=298&quality=96&tag=72db66206a4da6bb0e5ea2b8bee20f42" to "127.0.0.1" in 0:00:00.8923404 with Status Code 200
[2024-01-12 13:54:38.636 +08:00] [INF] [60] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for "Administrator". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[2024-01-12 13:54:38.637 +08:00] [INF] [60] Jellyfin.Api.Helpers.MediaInfoHelper: StreamBuilder.BuildVideoItem( Profile="Anonymous Profile", Path="W:\115\云下载\长津湖.2021.TC1080P.国语中字\长津湖.2021.TC1080P.国语中字.mp4", AudioStreamIndex=1, SubtitleStreamIndex=-1 ) => ( PlayMethod=DirectPlay, TranscodeReason=0 ) "media:/videos/710e8e83-8322-c48e-f98e-2be8dab60207/stream.mp4?MediaSourceId=710e8e838322c48ef98e2be8dab60207&Static=true&VideoCodec=h264&AudioCodec=aac&AudioStreamIndex=1&api_key=&SubtitleMethod=Encode&Tag=f8fa1209dd97f0816220dcb2184c98bc"
[2024-01-12 13:54:59.184 +08:00] [INF] [53] Emby.Server.Implementations.Session.SessionWebSocketListener: Sending ForceKeepAlive message to 1 inactive WebSockets.

§
Posted: 12-01-2024

感谢大佬

§
Posted: 12-01-2024

WIN7 64系统

§
Posted: 12-01-2024

油猴插件 未改

§
Posted: 12-01-2024

// ==UserScript==
// @name embyToLocalPlayer
// @name:zh-CN embyToLocalPlayer
// @name:en embyToLocalPlayer
// @namespace https://github.com/kjtsune/embyToLocalPlayer
// @version 1.1.13.1
// @description 需要 Python。Emby/Jellyfin 调用外部本地播放器,并回传播放记录。适配 Plex。
// @description:zh-CN 需要 Python。Emby/Jellyfin 调用外部本地播放器,并回传播放记录。适配 Plex。
// @description:en Require Python. Play in an external player. Update watch history to Emby/Jellyfin server. Support Plex.
// @author Kjtsune
// @match *://*/web/index.html*
// @match *://*/*/web/index.html*
// @icon https://www.google.com/s2/favicons?sz=64&domain=emby.media
// @grant unsafeWindow
// @grant GM_xmlhttpRequest
// @grant GM_registerMenuCommand
// @grant GM_unregisterMenuCommand
// @run-at document-start
// @connect 127.0.0.1
// @license MIT
// @downloadURL https://update.greasyfork.org/scripts/448648/embyToLocalPlayer.user.js
// @updateURL https://update.greasyfork.org/scripts/448648/embyToLocalPlayer.meta.js
// ==/UserScript==
'use strict';
/*
2024-1-2:
1. 适配 Emby 跳过简介/片头。(限 mpv,且视频本身无章节,通过添加章节实现。)
* 版本间累积更新:
* mpv script-opts 被覆盖。@verygoodlee
* mpv 切回第一集时网络外挂字幕丢失。@verygoodlee

kjtsuneمؤلف
§
Posted: 12-01-2024

运行 debug.bat 选1。( macOS 或 Linux 运行 .command)
若无正常日志输出,命令行输入 python --version 检查 python 是否安装成功及版本。
Python 低于 3.8.10 的先升级试试看。
网页点播放。
截图或复制 .bat 窗口中的日志(选中后回车即复制)

§
Posted: 12-01-2024

Python 3.8.10
C:\Users\Administrator\AppData\Local\Programs\Python\Python38\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
all tasks are finished.
Press any key to continue . . .

§
Posted: 12-01-2024

WIN7 64系统 不能加载?

§
Posted: 12-01-2024

python-3.8.10-amd64.EXE 32位?

kjtsuneمؤلف
§
Posted: 12-01-2024

bat选5复制运行命令,手动到命令行粘贴运行

§
Posted: 12-01-2024

感谢大佬

§
Posted: 12-01-2024

[01/12/24 16:22:30] E:\embyToLocalPlayer\embyToLocalPlayer.py
[01/12/24 16:22:30] serving at 127.0.0.1:58000
127.0.0.1 - - [12/Jan/2024 16:23:29] "POST /embyToLocalPlayer/ HTTP/1.1" 200 -
[01/12/24 16:23:29] server=jellyfin mount_disk_mode=True
[01/12/24 16:23:29] ['loca_mix_host_:8096 not match: gui[except_host] []']

C:\embyToLocalPlayer>

kjtsuneمؤلف
§
Posted: 12-01-2024

试了一下,确实不能用,最低支持系统为 Windows 8.1

§
Posted: 13-01-2024

非常感谢大佬,功能非常棒,又试了一下,win7下英文文件名和文件夹可用,其他语种文件名和文件夹不好用,是路径文件名解析问题,望大佬解决

§
Posted: 13-01-2024

播放进度信息回送了,但未修改播放进度

kjtsuneمؤلف
§
Posted: 13-01-2024

挺多问题的,我只有虚拟环境,结论是目前不考虑支持

Post reply

تسجيل الدخول إلى مرحلة ما بعد الرد.