fix: multiple UI and integration fixes
1. Credential storage fallback - when keyring (KWallet) unavailable, falls back to obfuscated file in config directory 2. Heart icon always visible - shows outlined when not favorite, filled when favorite, with hover states 3. Player favorite state - checks favorite status when track plays and updates the heart icon in NowPlayingBar 4. Song.link ISRC lookup - uses Spotify/Deezer search URLs with ISRC since Qobuz isn't directly supported by Odesli
This commit is contained in:
1 parent
657682fc5e
commit
1ccb78ef52
5 files changed
+279
-93
No files matched your search
@@ -5,17 +5,22 @@ use tauri::State;
|
||||
use crate::share::{ShareError, SongLinkResponse};
|
||||
use crate::AppState;
|
||||
|
||||
/// Get song.link URL for a track using Qobuz track ID
|
||||
/// Get song.link URL for a track using ISRC
|
||||
/// Qobuz isn't supported by Odesli, so we use ISRC to find the track
|
||||
#[tauri::command]
|
||||
pub async fn share_track_songlink(
|
||||
track_id: u64,
|
||||
isrc: String,
|
||||
state: State<'_, AppState>,
|
||||
) -> Result<SongLinkResponse, String> {
|
||||
log::info!("Command: share_track_songlink track_id={}", track_id);
|
||||
if isrc.is_empty() {
|
||||
return Err(ShareError::MissingIsrc.to_string());
|
||||
}
|
||||
|
||||
log::info!("Command: share_track_songlink ISRC={}", isrc);
|
||||
|
||||
state
|
||||
.songlink
|
||||
.get_by_track_id(&track_id.to_string())
|
||||
.get_by_isrc(&isrc)
|
||||
.await
|
||||
.map_err(|e| e.to_string())
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user