many changes
This commit is contained in:
@@ -918,6 +918,27 @@ impl MediaRepository for OfflineRepository {
|
||||
format!("offline://{}/{}", item_id, type_str)
|
||||
}
|
||||
|
||||
fn get_subtitle_url(
|
||||
&self,
|
||||
_item_id: &str,
|
||||
_media_source_id: &str,
|
||||
_stream_index: i32,
|
||||
_format: &str,
|
||||
) -> String {
|
||||
// Subtitles not available offline
|
||||
String::new()
|
||||
}
|
||||
|
||||
fn get_video_download_url(
|
||||
&self,
|
||||
_item_id: &str,
|
||||
_quality: &str,
|
||||
_media_source_id: Option<&str>,
|
||||
) -> String {
|
||||
// Cannot download while offline
|
||||
String::new()
|
||||
}
|
||||
|
||||
async fn mark_favorite(&self, _item_id: &str) -> Result<(), RepoError> {
|
||||
// Cannot update server while offline
|
||||
Err(RepoError::Offline)
|
||||
|
||||
Reference in New Issue
Block a user