跳转到主要内容

Mopidy SQLite本地库扩展

项目描述

Mopidy-Local-SQLite是一个使用SQLite数据库来跟踪您的本地媒体Mopidy本地库扩展。此扩展允许您通过专辑、艺术家、作曲家和表演者浏览您的音乐收藏,并基于SQLite的FTS模块提供全文搜索功能。它还通过mopidy本地扫描在Mopidy运行时通知更新,因此您可以从cron作业等定期扫描您的媒体库。

安装

Mopidy-Local-SQLite可以通过运行以下命令使用pip进行安装:

pip install Mopidy-Local-SQLite

配置

在启动Mopidy之前,您必须更改配置以切换到使用Mopidy-Local-SQLite作为首选的本地库。还建议更改默认的scan_flush_threshold,以提高本地扫描时的数据库访问

[local]
library = sqlite
scan_flush_threshold = 100

设置完成后,您需要重新扫描您的库以填充数据库

mopidy local scan

此扩展还提供了一些自己的配置设置,但请注意,这些设置仍可能发生变化

[local-sqlite]
enabled = true

# top-level directories for browsing, as <name> <uri>
directories =
    Albums                  local:directory?type=album
    Artists                 local:directory?type=artist
    Composers               local:directory?type=artist&role=composer
    Genres                  local:directory?type=genre
    Performers              local:directory?type=artist&role=performer
    Release Years           local:directory?type=date&format=%25Y
    Tracks                  local:directory?type=track
    Last Week's Updates     local:directory?max-age=604800
    Last Month's Updates    local:directory?max-age=2592000

# database connection timeout in seconds
timeout = 10

# whether to use an album's musicbrainz_id for generating its URI
use_album_mbid_uri = true

# whether to use an artist's musicbrainz_id for generating its URI;
# disabled by default, since some taggers do not handle this well for
# multi-artist tracks [https://github.com/sampsyo/beets/issues/907]
use_artist_mbid_uri = false

# whether to use the sortname field for sorting artist browse results;
# set to false to sort according to displayed name only
use_artist_sortname = true

项目资源

Latest PyPI version Number of PyPI downloads Travis CI build status Test coverage

许可证

版权(c)2014,2015托马斯·克默和贡献者

根据Apache许可证,版本2.0许可。

已知错误和限制

数据库模式不支持单个曲目或专辑具有多个艺术家、作曲家或表演者。在本地扫描期间,注意“忽略多个艺术家”警告,以查看您是否受此影响。

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源分布

Mopidy-Local-SQLite-1.0.0.tar.gz (20.8 kB 查看散列值)

上传时间

构建分布

Mopidy_Local_SQLite-1.0.0-py2.py3-none-any.whl (18.8 kB 查看散列值)

上传时间 Python 2 Python 3

由以下支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面