Format code

This commit is contained in:
bytedream 2023-11-06 22:09:21 +01:00
parent 56411c6547
commit fc6511a361
13 changed files with 42 additions and 48 deletions

View file

@ -251,7 +251,7 @@ async fn get_format(
};
let subtitle = if let Some(subtitle_locale) = &download.subtitle {
stream.subtitles.get(subtitle_locale).map(|s| s.clone())
stream.subtitles.get(subtitle_locale).cloned()
} else {
None
};