Deprecate search stream.is_drm option

This commit is contained in:
bytedream 2024-05-24 22:17:25 +02:00
parent fb8e535644
commit e7ac6d8874
2 changed files with 5 additions and 1 deletions

View file

@ -111,6 +111,10 @@ impl Execute for Search {
warn!("Using `search` anonymously or with a non-premium account may return incomplete results") warn!("Using `search` anonymously or with a non-premium account may return incomplete results")
} }
if self.output.contains("{{stream.is_drm}}") {
warn!("The `{{{{stream.is_drm}}}}` option is deprecated as it isn't reliable anymore and will be removed soon")
}
let input = if crunchyroll_rs::parse::parse_url(&self.input).is_some() { let input = if crunchyroll_rs::parse::parse_url(&self.input).is_some() {
match parse_url(&ctx.crunchy, self.input.clone(), true).await { match parse_url(&ctx.crunchy, self.input.clone(), true).await {
Ok(ok) => vec![ok], Ok(ok) => vec![ok],

View file

@ -173,7 +173,7 @@ impl From<&Stream> for FormatStream {
Self { Self {
locale: value.audio_locale.clone(), locale: value.audio_locale.clone(),
dash_url: value.url.clone(), dash_url: value.url.clone(),
is_drm: value.session.uses_stream_limits, is_drm: false,
} }
} }
} }