Port the Tauri normalizeCoverUrlForMetadata workaround as ArtworkRef::to_mpris_url (qbz-models): remote Qobuz covers pass through as-is, local-file covers become a percent-encoded file:// URI (MPRIS clients cannot read bare paths or asset://), Plex thumbs become a tokenized HTTP URL. Wired into the Slint now-playing push so the media widget shows album art. The app icon was already fixed via DesktopEntry. cc
27 lines
533 B
TOML
27 lines
533 B
TOML
[package]
|
|
name = "qbz-models"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
description = "Shared types, events, and traits for QBZ music player"
|
|
|
|
[dependencies]
|
|
# Serialization
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
|
|
# Async
|
|
async-trait = { workspace = true }
|
|
|
|
# Logging
|
|
log = { workspace = true }
|
|
|
|
# Error handling
|
|
thiserror = { workspace = true }
|
|
|
|
# Time
|
|
chrono = { workspace = true }
|
|
|
|
# Correct file:// URI building for media-controls art (ArtworkRef::to_mpris_url)
|
|
url = "2"
|