many changes
This commit is contained in:
@@ -326,6 +326,27 @@ impl MediaRepository for HybridRepository {
|
||||
self.online.get_image_url(item_id, image_type, options)
|
||||
}
|
||||
|
||||
fn get_subtitle_url(
|
||||
&self,
|
||||
item_id: &str,
|
||||
media_source_id: &str,
|
||||
stream_index: i32,
|
||||
format: &str,
|
||||
) -> String {
|
||||
// Always use online URL for subtitles
|
||||
self.online.get_subtitle_url(item_id, media_source_id, stream_index, format)
|
||||
}
|
||||
|
||||
fn get_video_download_url(
|
||||
&self,
|
||||
item_id: &str,
|
||||
quality: &str,
|
||||
media_source_id: Option<&str>,
|
||||
) -> String {
|
||||
// Always use online URL for downloads
|
||||
self.online.get_video_download_url(item_id, quality, media_source_id)
|
||||
}
|
||||
|
||||
async fn mark_favorite(&self, item_id: &str) -> Result<(), RepoError> {
|
||||
// Write operations go directly to server
|
||||
self.online.mark_favorite(item_id).await
|
||||
@@ -497,6 +518,25 @@ mod tests {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
fn get_subtitle_url(
|
||||
&self,
|
||||
_item_id: &str,
|
||||
_media_source_id: &str,
|
||||
_stream_index: i32,
|
||||
_format: &str,
|
||||
) -> String {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
fn get_video_download_url(
|
||||
&self,
|
||||
_item_id: &str,
|
||||
_quality: &str,
|
||||
_media_source_id: Option<&str>,
|
||||
) -> String {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
async fn mark_favorite(&self, _item_id: &str) -> Result<(), RepoError> {
|
||||
unimplemented!()
|
||||
}
|
||||
@@ -603,6 +643,25 @@ mod tests {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
fn get_subtitle_url(
|
||||
&self,
|
||||
_item_id: &str,
|
||||
_media_source_id: &str,
|
||||
_stream_index: i32,
|
||||
_format: &str,
|
||||
) -> String {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
fn get_video_download_url(
|
||||
&self,
|
||||
_item_id: &str,
|
||||
_quality: &str,
|
||||
_media_source_id: Option<&str>,
|
||||
) -> String {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
async fn mark_favorite(&self, _item_id: &str) -> Result<(), RepoError> {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user