用于处理嵌入式相册艺术的mopidy本地库代理扩展
Mopidy-Local-Images的Python项目详细描述
mopidy local images是一个本地库和web扩展 允许Web客户端访问嵌入在本地媒体文件中的相册艺术。 它通过充当mopidy的^{tt1}之间的proxy来实现$ 命令和正在使用的实际本地库提供程序。图像是 从媒体文件中提取并存储为单独的图像文件 扫描,并在mopidy数据中插入相应的图像uri 模型。然后客户端可以通过Web访问这些图像 分机。所有其他请求都委托给实际的本地 按原样提供库。
也支持存储在单独文件中的相册艺术。外部图像 如果文件与 扫描的媒体文件和文件名与可配置的模式匹配。
请注意,是否支持本地相册艺术取决于 客户端支持mopidy的数据模型提供的相册图像。为了 例如,一些客户端将忽略此 扩展名,将从外部服务检索相册艺术。
配置
在启动mopidy之前,必须将配置更改为switch 使用mopidy本地图像作为本地库提供商:
[local] library = images
默认情况下,mopidy本地映像将所有请求委托给标准 json本地库提供程序。使用第三方库 作为Mopidy-Local-SQLite,您必须在 local-images配置节:
[local-images] library = sqlite
设置好后,需要清除并重新扫描库中的 要提取的图像:
mopidy local clear mopidy local scan
此扩展还提供了一些其他配置设置,但是 请注意,这些内容可能会暂时更改:
[local-images] enabled = true # the actual local library provider to use library = json # the base URI for images; change this if you want to serve images # using an alternative Web server, or when accessing Mopidy through a # reverse proxy base_uri = /images/ # the directory where local image files are stored; if not set, # creates its own subdirectory in <core/data_dir> image_dir = # a list of file names to check for when searching for external album # art; may contain UNIX shell patterns, i.e. "*", "?", etc. album_art_files = *.jpg, *.jpeg, *.png
已知错误和限制
对于mopidy v0.19,使用此扩展将大大降低mopidy local scan,因为每个媒体文件都必须扫描两次。 这在mopidy v1.0和更高版本中不再是一个问题。