使用您选择的媒体播放器打开AceStream链接
acestream-launcher的Python项目详细描述
AceStream启动程序
AceStream Launcher允许您使用自己选择的媒体播放器打开AceStream链接
依赖关系
python, pyhon-acestream, libnotify, acestream-engine
因为v1.0.0
acestream启动程序使用的Acestream Engine HTTP API可用于acestream引擎v3.1
或更高版本。
用法
acestream-launcher URL [--player PLAYER][--engine ENGINE]
位置参数
URL The acestream url to play
可选参数
-h, --help Show this help message and exit -p, --player PLAYER The media player command to use (default: mpv) -e, --engine ENGINE The engine command to use (default: acestreamengine --client-console) -t, --timeout TIMEOUT Time in seconds to wait for stream playback (default: 30) -v, --verbose Show engine and media player output in console
配置
创建~/.config/acestream-launcher/config
文件以覆盖默认参数。从控制台或Web浏览器执行脚本时,使用tty
和browser
部分设置不同的选项。
[DEFAULT] player = vlc verbose = true timeout = 60 [tty] engine = acestreamengine --client-console --log-file /home/jonian/.ACEStream/engine.log [browser] engine = acestreamengine --client-gtk --log-file /home/jonian/.ACEStream/browser.log verbose = false
要求
安装所需的依赖项(与Python2和3兼容):
sudo apt-get install python python-pip
安装可选依赖项(支持桌面通知):
sudo apt-get install libnotify
手动安装acestream引擎(您可以找到实际链接here和详细说明here):
sudo apt-get install python-setuptools python-m2crypto python-apsw wget "http://dl.acestream.org/linux/acestream_3.1.16_ubuntu_16.04_x86_64.tar.gz" tar zxvf acestream_3.1.16_ubuntu_16.04_x86_64.tar.gz sudo mv acestream_3.1.16_ubuntu_16.04_x86_64 /opt/acestream wget "http://archive.ubuntu.com/ubuntu/pool/universe/m/m2crypto/m2crypto_0.24.0.orig.tar.xz" tar xf m2crypto_0.24.0.orig.tar.xz sudo mv M2Crypto-0.24.0/M2Crypto /opt/acestream/lib/M2Crypto sudo sed -i "/ROOT=/c\ROOT=\/opt\/acestream" /opt/acestream/start-engine sudo ln -sf /opt/acestream/start-engine /usr/bin/acestreamengine
安装Acestream引擎快照包:
sudo snap install acestreamplayer
安装
使用pip
命令安装带有python包索引的包。
pip install acestream-launcher
套餐
架构Linux:AUR Package
打开SUSE:Build Service由@Drommer
浏览器集成
安装后,可以将其设置为浏览器中acestream://
链接的默认值。检查默认应用程序的浏览器首选项。