feat(v2): add v2_resolve_qobuz_link command
Thin Tauri command that calls qbz_qobuz::resolve_link(). Pure parsing, no State params, no auth required. Registered in invoke_handler.
This commit is contained in:
1 parent
985f634817
commit
9006e64fa2
2 files changed
+8
No files matched your search
@@ -1241,6 +1241,13 @@ pub fn v2_get_alsa_plugins() -> Result<Vec<AlsaPluginInfo>, String> {
|
||||
])
|
||||
}
|
||||
|
||||
// ==================== Link Resolver ====================
|
||||
|
||||
#[tauri::command]
|
||||
pub fn v2_resolve_qobuz_link(url: String) -> Result<qbz_qobuz::ResolvedLink, RuntimeError> {
|
||||
qbz_qobuz::resolve_link(&url).map_err(|e| RuntimeError::Internal(e.to_string()))
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
#[allow(non_snake_case)]
|
||||
pub async fn v2_plex_ping(
|
||||
|
||||
@@ -962,6 +962,7 @@ pub fn run() {
|
||||
commands_v2::v2_sync_cached_favorite_artists,
|
||||
commands_v2::v2_cache_favorite_artist,
|
||||
commands_v2::v2_uncache_favorite_artist,
|
||||
commands_v2::v2_resolve_qobuz_link,
|
||||
])
|
||||
.run(tauri::generate_context!())
|
||||
.expect("error while running tauri application");
|
||||
|
||||
Reference in new issue
Block a user