Spotify Connect的MPRIS2接口
SpotPRIS2的Python项目详细描述
聚光镜2
使用MPRIS2控制Spotify连接设备
Spotify 2软件提供了Spotify 2接口。它比内置的MPRIS2接口更完整
Spotify Linux客户端。
此外,它还可以用于控制远程Spotify连接设备(如运行在Raspberry Pi上的Spotify ID)
PC
软件还在开发中。有些事情可能不会如预期的那样工作。在
安装
- Arch Linux:从AUR安装
yay -S python-spotpris2
- 其他发行版:使用pip安装
pip install spotPRIS2
然后运行spotpris2
。在
选项
-h, --help show this help message and exit
-d DEVICE [DEVICE ...], --devices DEVICE [DEVICE ...]
Only create interfaces for the listed devices
-i DEVICE [DEVICE ...], --ignore DEVICE [DEVICE ...]
Ignore the listed devices
-a, --auto Automatically control the active device
-l [{name,id}], --list [{name,id}]
List available devices and exit
在正常模式下,SpotPRIS2为每个连接到您帐户的Spotify Connect设备创建一个MPRIS2接口。在
您可以使用--devices
只为指定的设备创建接口,或使用--ignore
为除
指定的设备。设备可以通过其名称或ID指定。
使用--auto
只创建一个接口。它将始终控制当前的设备。在
--list
列出所有可用设备的名称。使用--list=id
列出他们的ID。在
已知问题
- Podcasts、Radios等不受支持
这是spotifywebapi的一个限制。目前我无能为力。在 - MPRIS2接口仅在播放时显示
如果您在自动模式下运行SpotPRIS2,这是有意的。SpotPRIS2没有办法知道你是哪个设备 想要控制,所以我们不提供任何接口。如果想开始播放,可以使用普通模式 使用MPRIS2。在
系统D
要在systemd中使用SpotPRIS2,应将提供的单元文件(contrib/spotpris2.service
)复制到/usr/lib/systemd/user
。在
本项目与Spotify AB没有任何关联、关联、授权、认可或以任何方式正式关联, 或其任何子公司或其附属公司。在
- 项目
标签: