mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 20:08:59 +02:00
update stream builder subtitles
This commit is contained in:
parent
901dab5760
commit
25395c5d82
2 changed files with 8 additions and 3 deletions
|
@ -735,7 +735,12 @@ namespace MediaBrowser.Model.Dlna
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (profile.Method == SubtitleDeliveryMethod.Embed && subtitleStream.IsTextSubtitleStream == MediaStream.IsTextFormat(profile.Format))
|
if (profile.Method != SubtitleDeliveryMethod.Embed)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (subtitleStream.IsTextSubtitleStream == MediaStream.IsTextFormat(profile.Format) && StringHelper.EqualsIgnoreCase(profile.Format, subtitleStream.Codec))
|
||||||
{
|
{
|
||||||
return profile;
|
return profile;
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv.TunerHosts.HdHomerun
|
||||||
string location;
|
string location;
|
||||||
if (e.Headers.TryGetValue("Location", out location))
|
if (e.Headers.TryGetValue("Location", out location))
|
||||||
{
|
{
|
||||||
_logger.Debug("HdHomerun found at {0}", location);
|
//_logger.Debug("HdHomerun found at {0}", location);
|
||||||
|
|
||||||
// Just get the beginning of the url
|
// Just get the beginning of the url
|
||||||
Uri uri;
|
Uri uri;
|
||||||
|
@ -50,7 +50,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv.TunerHosts.HdHomerun
|
||||||
var apiUrl = location.Replace(uri.LocalPath, String.Empty, StringComparison.OrdinalIgnoreCase)
|
var apiUrl = location.Replace(uri.LocalPath, String.Empty, StringComparison.OrdinalIgnoreCase)
|
||||||
.TrimEnd('/');
|
.TrimEnd('/');
|
||||||
|
|
||||||
_logger.Debug("HdHomerun api url: {0}", apiUrl);
|
//_logger.Debug("HdHomerun api url: {0}", apiUrl);
|
||||||
AddDevice(apiUrl);
|
AddDevice(apiUrl);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue