mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-31 20:24:27 -04:00
Fast track extractions if there is no subtitles
This commit is contained in:
parent
3f238fb0cb
commit
c707e76bd6
@ -29,6 +29,12 @@ func Extract(path string, sha string) (<-chan struct{}, error) {
|
|||||||
os.MkdirAll(attachment_path, 0o644)
|
os.MkdirAll(attachment_path, 0o644)
|
||||||
os.MkdirAll(subs_path, 0o755)
|
os.MkdirAll(subs_path, 0o755)
|
||||||
|
|
||||||
|
// If there is no subtitles, there is nothing to extract (also fonts would be useless).
|
||||||
|
if len(info.Subtitles) == 0 {
|
||||||
|
close(ret)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
cmd := exec.Command(
|
cmd := exec.Command(
|
||||||
"ffmpeg",
|
"ffmpeg",
|
||||||
"-dump_attachment:t", "",
|
"-dump_attachment:t", "",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user