Update crunchyroll-rs to 0.3.7 (#220)

This commit is contained in:
Bastian Venz 2023-06-26 17:59:55 +02:00 committed by GitHub
parent 0234d46bf9
commit f40dc0dd1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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)