mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Coding style
This commit is contained in:
parent
9591350c3e
commit
e075306363
@ -157,7 +157,9 @@ pub async fn identify(path: String) -> Result<MediaInfo, std::io::Error> {
|
||||
}
|
||||
let extension = extension_table.get(codec.as_str()).map(|x| x.to_string());
|
||||
Subtitle {
|
||||
link: extension.as_ref().map(|ext| format!("/video/{sha}/subtitle/{index}.{ext}")),
|
||||
link: extension
|
||||
.as_ref()
|
||||
.map(|ext| format!("/video/{sha}/subtitle/{index}.{ext}")),
|
||||
index,
|
||||
title: x["Title"].as_str().map(|x| x.to_string()),
|
||||
language: x["Language"].as_str().map(|x| x.to_string()),
|
||||
|
Loading…
x
Reference in New Issue
Block a user