mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-31 04:04:21 -04:00
Fix font detections when there is none
This commit is contained in:
parent
dc6bdf7715
commit
29f874e390
@ -225,10 +225,13 @@ pub async fn identify(path: String) -> Result<MediaInfo, std::io::Error> {
|
|||||||
.collect(),
|
.collect(),
|
||||||
subtitles: subs,
|
subtitles: subs,
|
||||||
fonts: general["extra"]["Attachments"]
|
fonts: general["extra"]["Attachments"]
|
||||||
.to_string()
|
.as_str()
|
||||||
.split(" / ")
|
.map_or(Vec::new(), |x| {
|
||||||
.map(|x| format!("/video/{sha}/attachment/{x}"))
|
x.to_string()
|
||||||
.collect(),
|
.split(" / ")
|
||||||
|
.map(|x| format!("/video/{sha}/attachment/{x}"))
|
||||||
|
.collect()
|
||||||
|
}),
|
||||||
chapters: output["media"]["track"]
|
chapters: output["media"]["track"]
|
||||||
.members()
|
.members()
|
||||||
.find(|x| x["@type"] == "Menu")
|
.find(|x| x["@type"] == "Menu")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user