Skip to content

Commit

Permalink
Add note that the non-drm endpoints aren't available in the `alternat…
Browse files Browse the repository at this point in the history
…ive_stream` functions
  • Loading branch information
bytedream committed Dec 19, 2023
1 parent c09b58a commit a6a16c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/media/anime/impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,9 @@ macro_rules! impl_media_video {
/// error, Crunchyroll doesn't give a hint that a ratelimit is hit). If you need to
/// query many streams in a short time, consider using [`Episode::stream`] /
/// [`Movie::stream`].
/// Note: It seems that Crunchyroll removed the non-drm endpoints for the results of this method, so the
/// [`crate::media::Stream::dash_streaming_data`] and [`crate::media::Stream::hls_streaming_data`]
/// functions will always error.
pub async fn alternative_stream(&self) -> Result<$crate::media::Stream> {
$crate::media::Stream::from_url(self.executor.clone(), "https://www.crunchyroll.com/content/v2/cms/videos", &self.stream_id).await
}
Expand Down

0 comments on commit a6a16c3

Please sign in to comment.