various: remove dead code; fix skipped tests
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I9100489be899f9e9fbd32f6aca3080196a6a6964
This commit is contained in:
parent
2f31242442
commit
cfdc3d0622
18 changed files with 1445 additions and 28 deletions
|
|
@ -5,7 +5,7 @@ use super::markdown_viewer::MarkdownViewer;
|
|||
use super::media_player::MediaPlayer;
|
||||
use super::pdf_viewer::PdfViewer;
|
||||
use super::utils::{format_duration, format_size, media_category, type_badge_class};
|
||||
use crate::client::{MediaResponse, MediaUpdateEvent, TagResponse};
|
||||
use crate::client::{ApiClient, MediaResponse, MediaUpdateEvent, TagResponse};
|
||||
|
||||
#[component]
|
||||
pub fn Detail(
|
||||
|
|
@ -100,9 +100,11 @@ pub fn Detail(
|
|||
let has_system_fields = !system_fields.is_empty();
|
||||
let has_user_fields = !user_fields.is_empty();
|
||||
|
||||
// Media preview URLs
|
||||
let stream_url = format!("{}/api/v1/media/{}/stream", server_url, media.id);
|
||||
let thumbnail_url = format!("{}/api/v1/media/{}/thumbnail", server_url, media.id);
|
||||
// Media preview URLs - use ApiClient methods for consistent URL building
|
||||
let client = ApiClient::new(&server_url, None);
|
||||
tracing::trace!("Using API base URL: {}", client.base_url());
|
||||
let stream_url = client.stream_url(&media.id);
|
||||
let thumbnail_url = client.thumbnail_url(&media.id);
|
||||
let category = media_category(&media.media_type);
|
||||
let has_thumbnail = media.has_thumbnail;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue