Update crunchyroll-rs to 0.3.7

fixes deprecation of streams to stream
This commit is contained in:
Serverfrog 2023-06-26 12:58:45 +02:00
parent 0234d46bf9
commit ebb5965015
5 changed files with 34 additions and 388 deletions

View file

@ -132,10 +132,10 @@ impl SingleFormat {
pub async fn stream(&self) -> Result<Stream> {
let stream = match &self.source {
MediaCollection::Episode(e) => e.streams().await?,
MediaCollection::Movie(m) => m.streams().await?,
MediaCollection::MusicVideo(mv) => mv.streams().await?,
MediaCollection::Concert(c) => c.streams().await?,
MediaCollection::Episode(e) => e.stream().await?,
MediaCollection::Movie(m) => m.stream().await?,
MediaCollection::MusicVideo(mv) => mv.stream().await?,
MediaCollection::Concert(c) => c.stream().await?,
_ => unreachable!(),
};
Ok(stream)