embyToLocalPlayer

需要python。若用 mpv MPC 播放,可更新服务器观看进度。支持 Jellyfin。

As of 19. 09. 2022. See the latest version.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Autor
kjtsune
Ocene
0 0 0
Verzija
1.0.5
Napravljeno
30. 07. 2022
Ažurirano
19. 09. 2022
Size
4,83 КБ
Licenca
MIT
Važi za

embyToLocalPlayer-Python

需要 Python。若用 mpv 或 MPC 播放,可更新服务器观看进度。

缺点

  • 本地需要安装 Python
  • 主要 Windows 平台,Linux 简单测试,macOS 请协助提供调用脚本及命令行播放文件的方法
  • 点击播放时会有错误提示或转圈。 可另装 脚本 自动关闭。
  • 问题反馈群,提问前先尽量自行排查一下。https://t.me/embyToLocalPlayer

特性

  • 在首页也可以播放。点击原来的播放按钮就可以。不改变页面布局。
  • 可回传播放进度到服务器。需要用 mpv 或 mpv.net 或 MPC-HC[BE] 来播放。
  • 视频文件 可本地 可挂载 可远端。(脚本菜单里选择)
  • mpv MPC potplayer 支持服务端的外挂字幕。(播放前先选择字幕)
  • 适配多视频版本,如 2160p 与 1080p 双文件的情况。

建议

  • 使用以下4款播放器。

  • potplayer 播放 http 会疯狂写盘并把整个文件下载下来。非挂载不建议使用。

使用说明

基础配置

  1. 下载 embyToLocalPlayer.zip 并解压到任意文件夹 发布页
  2. 安装油猴脚本。 发布页
  3. 安装 Python (勾选 add to path) 官网
  4. 填写播放器路径 embyToLocalPlayer.ini

若用 MPC 播放:开启 webui

  • 查看 > 选项 > Web 界面:
    打勾 监听端口:13579
    打勾 仅允许从 localhost 访问

[二选一] Windows 简易模式 [推荐]

  1. 下载解压并点击 Install.cmd 安装 AutoHotKey v2 官网 链接
  2. 双击运行 embyToLocalPlayer_debug.ahk
  3. 现在可网页播放测试,若正常,创建 embyToLocalPlayer.ahk(无窗口运行)快捷方式,并放入开机启动文件夹即可。( win + r 输入 shell:startup 回车)
  4. 删除 active_video_player.exe

[二选一] Windows 一般模式

  1. 双击 embyToLocalPlayer.py ,或者打开命令行,修改并输入 python C:/<path_to>/embyToLocalPlayer.py
  2. 现在可网页播放测试,若正常,修改 embyToLocalPlayer.vbs 里的 Python 路径和 .py 文件路径。
  3. 双击 .vbs 会后台启动,再次测试播放。然后放入开机启动文件夹即可 ( win + r 输入 shell:startup 回车)
  4. 删除文件夹里所有 .ahk 的文件。
  5. 若不喜欢 active_video_player.exe (不需要激活窗口功能可删) 且 mpv 没在前台启动。 可自行配置 mpv ontop = yes ,或将 portable_config 文件夹与 mpv.exe 放在一起。

Linux

  1. 删除所有.ahk .exe .vbs 的文件。
  2. 双击运行embyToLocalPlayer.py,或终端运行。
  3. 正常播放后写 systemd 文件来开机启动(尚未测试)

其他操作

  • embyErrorWindows.js 可自动关闭 emby 没有兼容流的窗口 和 jellyfin 转圈提示。
  • 若 mpv 运行失败,换 mpv.net 试试看。或者 mpv release 0.34.0 版本。
  • 问题反馈群,提问前先尽量自行排查一下。https://t.me/embyToLocalPlayer

FAQ

如何更新

  • 备份好 embyToLocalPlayer.ini 。再次去 github 下载解压。 同时看看 embyToLocalPlayer.ini 有没有新内容。
  • 新功能或者修复之前比较重要的问题才会触发油猴更新提醒, github 会详细些。正常使用不更新也可以。(没什么问题也不怎么更新了)

mpv.net 相关

  • 设置播放完自动关闭。不加载下个文件。因为回传进度由播放器关闭触发。
  • 右击 > Settings > Playback > idle:no, auto-load-folder:no (大概是这样

[可选] portable_config 相关

  • portable_config 文件夹是我的 mpv 配置,可将其与 mpv.exe 放在一起。
  • 快捷键看 input.conf
  • 其他设置 mpv.conf

Jellyfin 相关

  • 首页播放结束后,10秒内重复播放同文件,本地播放器收到的播放时间会有误。
    解决方法:
    1. 进详情后再播放;说明不是我的锅
    2. 等待10秒后再继续播放;
    3. 手动刷新页面后播放;
    4. 告诉我要发送什么请求可以解决这个问题

其他相关脚本

感谢