diff options
Diffstat (limited to 'server/src/compat')
| -rw-r--r-- | server/src/compat/youtube.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server/src/compat/youtube.rs b/server/src/compat/youtube.rs index 9d27235..a5f540b 100644 --- a/server/src/compat/youtube.rs +++ b/server/src/compat/youtube.rs @@ -38,7 +38,8 @@ pub fn r_youtube_watch(ri: RequestInfo<'_>, v: &str) -> MyResult<Redirect> { } #[get("/channel/<id>")] -pub fn r_youtube_channel(ri: RequestInfo<'_>, id: &str) -> MyResult<Redirect> { +pub fn r_youtube_channel(_ri: RequestInfo<'_>, id: &str) -> MyResult<Redirect> { + let _ = id; // let Some(id) = (if id.starts_with("UC") { // get_node_by_eid(&session.0, IdentifierType::YoutubeChannel, id)? // } else if id.starts_with("@") { @@ -54,7 +55,8 @@ pub fn r_youtube_channel(ri: RequestInfo<'_>, id: &str) -> MyResult<Redirect> { } #[get("/embed/<v>")] -pub fn r_youtube_embed(ri: RequestInfo<'_>, v: &str) -> MyResult<Redirect> { +pub fn r_youtube_embed(_ri: RequestInfo<'_>, v: &str) -> MyResult<Redirect> { + let _ = v; // if v.len() != 11 { // Err(anyhow!("video id length incorrect"))? // } |