Skip to content
This repository has been archived by the owner on Jul 4, 2024. It is now read-only.

Commit

Permalink
Deprecate search stream.is_drm option
Browse files Browse the repository at this point in the history
  • Loading branch information
bytedream committed May 24, 2024
1 parent fb8e535 commit e7ac6d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions crunchy-cli-core/src/search/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ impl Execute for Search {
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() {
match parse_url(&ctx.crunchy, self.input.clone(), true).await {
Ok(ok) => vec![ok],
Expand Down
2 changes: 1 addition & 1 deletion crunchy-cli-core/src/search/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ impl From<&Stream> for FormatStream {
Self {
locale: value.audio_locale.clone(),
dash_url: value.url.clone(),
is_drm: value.session.uses_stream_limits,
is_drm: false,
}
}
}
Expand Down

0 comments on commit e7ac6d8

Please sign in to comment.