mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Fix external subtitles extraction (null dereference)
This commit is contained in:
parent
f27e2344e5
commit
b2255651af
@ -60,6 +60,10 @@ func extractSubs(info *MediaInfo) error {
|
||||
|
||||
for _, sub := range info.Subtitles {
|
||||
if ext := sub.Extension; ext != nil {
|
||||
if sub.IsExternal {
|
||||
// skip extraction of external subtitles
|
||||
continue
|
||||
}
|
||||
cmd.Args = append(
|
||||
cmd.Args,
|
||||
"-map", fmt.Sprintf("0:s:%d", *sub.Index),
|
||||
|
Loading…
x
Reference in New Issue
Block a user