mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -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(),
|
||||
subtitles: subs,
|
||||
fonts: general["extra"]["Attachments"]
|
||||
.to_string()
|
||||
.split(" / ")
|
||||
.map(|x| format!("/video/{sha}/attachment/{x}"))
|
||||
.collect(),
|
||||
.as_str()
|
||||
.map_or(Vec::new(), |x| {
|
||||
x.to_string()
|
||||
.split(" / ")
|
||||
.map(|x| format!("/video/{sha}/attachment/{x}"))
|
||||
.collect()
|
||||
}),
|
||||
chapters: output["media"]["track"]
|
||||
.members()
|
||||
.find(|x| x["@type"] == "Menu")
|
||||
|
Loading…
x
Reference in New Issue
Block a user