macOS 上完美使用 Emby Theater 方案 [高级篇]
一、下载并安装 Emby Theater
下载 EmbyTheater.zip 解压出 Emby Theater.app
,拖到 应用程序
文件夹里
应用源码:https://github.com/thura10/emby-theater-electron
二、安装 mpv
brew install --HEAD mpv
三、替换 libass
由于上面安装的 libmpv
对于某些中文字幕会乱码,所以下面给出一个解决办法。( 原因: https://zrstea.com/261/ )
步骤:
- 下载这个 libass.rb 这个文件。比如我保存到了系统下载目录
~/Downloads
里; - 进入下载目录
cd ~/Downloads
; - 卸载安装
libmpv
时安装的libass
,然后重新编译并安装,命令如下:
brew uninstall libass --ignore-dependencies && brew install fontconfig
brew install -s libass.rb
以上三个步骤方案来至: @PANINI 和 @xinzhe he
四、客户端解锁
- 在
应用程序
文件夹中找到Emby Theater.app
,右键显示包内容
。找到Contents/Resources/app/main.js
文件,用文本编辑器打开; - 搜索找到
function getAppBaseUrl() {
var url = 'https://tv.emby.media';
//url = 'http://localhost:8088';
return url;
}
替换为
function getAppBaseUrl() {
var url = 'https://happyemby.911997.xyz';
//url = 'http://localhost:8088';
return url;
}
保存即可