Embedded subtitles work. External not yet tested.
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -136,6 +136,11 @@ sealed class CinemaMediaAnalyzer
|
||||
if (i.BitRate == null || i.BitRate < 16 * 1024)
|
||||
i.BitRate = 16 * 1024;
|
||||
break;
|
||||
|
||||
case MediaStreamType.Subtitle:
|
||||
// Required for subtitle extraction
|
||||
i.SupportsExternalStream = true;
|
||||
break;
|
||||
}
|
||||
|
||||
// Add unrecognized bogus streams so stream Index values are continous and sorted in the
|
||||
|
||||
@@ -660,7 +660,7 @@ sealed class CinemaMediaSourceManager : IMediaSourceManager
|
||||
a.Language = ISO639_1ToISO639_2(j.language).Primary;
|
||||
a.IsForced = j.forced;
|
||||
a.DeliveryUrl = j.src;
|
||||
a.IsExternalUrl = true;
|
||||
a.IsExternal = true;
|
||||
result.Add(a);
|
||||
}
|
||||
}
|
||||
@@ -732,7 +732,7 @@ sealed class CinemaMediaSourceManager : IMediaSourceManager
|
||||
a.Language = ISO639_1ToISO639_2(j.language).Primary;
|
||||
a.IsForced = j.forced;
|
||||
a.DeliveryUrl = j.src;
|
||||
a.IsExternalUrl = true;
|
||||
a.IsExternal = j.src != null;
|
||||
|
||||
result.Add(a);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user