mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-27 20:41:54 +00:00
import shared media info component
This commit is contained in:
@@ -46,7 +46,12 @@ namespace MediaBrowser.Server.Implementations.LiveTv.EmbyTV
|
||||
{
|
||||
if (_liveTvOptions.EnableOriginalAudioWithEncodedRecordings)
|
||||
{
|
||||
return Path.ChangeExtension(targetFile, ".mkv");
|
||||
// if the audio is aac_latm, stream copying to mp4 will fail
|
||||
var streams = mediaSource.MediaStreams ?? new List<MediaStream>();
|
||||
if (streams.Any(i => i.Type == MediaStreamType.Audio && (i.Codec ?? string.Empty).IndexOf("aac", StringComparison.OrdinalIgnoreCase) != -1))
|
||||
{
|
||||
return Path.ChangeExtension(targetFile, ".mkv");
|
||||
}
|
||||
}
|
||||
|
||||
return Path.ChangeExtension(targetFile, ".mp4");
|
||||
|
||||
@@ -135,7 +135,8 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
||||
|
||||
var channels = _libraryManager.GetItemList(new InternalItemsQuery
|
||||
{
|
||||
IncludeItemTypes = new[] { typeof(LiveTvChannel).Name }
|
||||
IncludeItemTypes = new[] { typeof(LiveTvChannel).Name },
|
||||
SortBy = new[] { ItemSortBy.SortName }
|
||||
|
||||
}).Cast<LiveTvChannel>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user