fix samsung dlna subtitles
This commit is contained in:
parent
7a014affb2
commit
49c678037a
|
@ -213,13 +213,13 @@ namespace MediaBrowser.Dlna.Didl
|
|||
// <sec:CaptionInfoEx sec:type="srt">http://192.168.1.3:9999/video.srt</sec:CaptionInfoEx>
|
||||
// <sec:CaptionInfo sec:type="srt">http://192.168.1.3:9999/video.srt</sec:CaptionInfo>
|
||||
|
||||
//var res = container.OwnerDocument.CreateElement("SEC", "CaptionInfoEx");
|
||||
var res = container.OwnerDocument.CreateElement("CaptionInfoEx", "sec");
|
||||
|
||||
//res.InnerText = info.Url;
|
||||
res.InnerText = info.Url;
|
||||
|
||||
//// TODO: attribute needs SEC:
|
||||
//res.SetAttribute("type", info.Format.ToLower());
|
||||
//container.AppendChild(res);
|
||||
res.SetAttribute("type", "sec", info.Format.ToLower());
|
||||
container.AppendChild(res);
|
||||
}
|
||||
else if (string.Equals(subtitleMode, "smi", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
|
|
|
@ -604,7 +604,7 @@ namespace MediaBrowser.MediaEncoding.Subtitles
|
|||
|
||||
process.StandardError.BaseStream.CopyToAsync(logFileStream);
|
||||
|
||||
var ranToCompletion = process.WaitForExit(120000);
|
||||
var ranToCompletion = process.WaitForExit(300000);
|
||||
|
||||
if (!ranToCompletion)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user