various bugfixes

This commit is contained in:
Simon
2026-01-13 18:13:51 +00:00
parent aaff7d00c6
commit 34992242b7
21 changed files with 243 additions and 289 deletions

View File

@@ -82,13 +82,13 @@ pub trait Provider: Send + Sync {
options: ServerOptions,
) -> Vec<VideoItem>;
fn get_channel(&self, clientversion: ClientVersion) -> Channel {
fn get_channel(&self, clientversion: ClientVersion) -> Option<Channel> {
println!(
"Getting channel for placeholder with client version: {:?}",
clientversion
);
let _ = clientversion;
Channel {
Some(Channel {
id: "placeholder".to_string(),
name: "PLACEHOLDER".to_string(),
description: "PLACEHOLDER FOR PARENT CLASS".to_string(),
@@ -99,6 +99,6 @@ pub trait Provider: Send + Sync {
options: vec![],
nsfw: true,
cacheDuration: None,
}
})
}
}