MoosicBox Music API Helpers
Helper utilities for working with MoosicBox music APIs.
This crate provides high-level helper functions for common music API operations, simplifying tasks like enabling scanning, checking scan status, and performing scans across different music sources.
Features
scan(default) - Enables music library scanning functionality
Installation
Usage
The scan module provides functions for managing music library scanning:
enable_scan- Enables scanning for a music API's source in the library databasescan_enabled- Checks whether scanning is enabled for a music API's sourcescan- Performs a music library scan for a music API's source
use scan;
// Enable scanning for a music source
enable_scan.await?;
// Check if scanning is enabled
let enabled = scan_enabled.await?;
// Perform a library scan
scan.await?;
License
See the LICENSE file for license details.