mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-31 12:14:46 -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 {
|
for _, sub := range info.Subtitles {
|
||||||
if ext := sub.Extension; ext != nil {
|
if ext := sub.Extension; ext != nil {
|
||||||
|
if sub.IsExternal {
|
||||||
|
// skip extraction of external subtitles
|
||||||
|
continue
|
||||||
|
}
|
||||||
cmd.Args = append(
|
cmd.Args = append(
|
||||||
cmd.Args,
|
cmd.Args,
|
||||||
"-map", fmt.Sprintf("0:s:%d", *sub.Index),
|
"-map", fmt.Sprintf("0:s:%d", *sub.Index),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user