mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-20 17:14:42 +01:00
sync updates
This commit is contained in:
@@ -227,6 +227,11 @@ namespace MediaBrowser.Server.Implementations.Sync
|
||||
{
|
||||
Format = "srt",
|
||||
Method = SubtitleDeliveryMethod.External
|
||||
},
|
||||
new SubtitleProfile
|
||||
{
|
||||
Format = "vtt",
|
||||
Method = SubtitleDeliveryMethod.External
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -495,7 +495,7 @@ namespace MediaBrowser.Server.Implementations.Sync
|
||||
// No sense creating external subs if we're already burning one into the video
|
||||
var externalSubs = streamInfo.SubtitleDeliveryMethod == SubtitleDeliveryMethod.Encode ?
|
||||
new List<SubtitleStreamInfo>() :
|
||||
streamInfo.GetExternalSubtitles(false);
|
||||
streamInfo.GetExternalSubtitles(false, null, null);
|
||||
|
||||
// Mark as requiring conversion if transcoding the video, or if any subtitles need to be extracted
|
||||
var requiresVideoTranscoding = streamInfo.PlayMethod == PlayMethod.Transcode && jobOptions.IsConverting;
|
||||
|
||||
@@ -677,7 +677,6 @@ namespace MediaBrowser.Server.Implementations.Sync
|
||||
syncedItem.Item.MediaSources = new List<MediaSourceInfo>();
|
||||
|
||||
syncedItem.OriginalFileName = Path.GetFileName(libraryItem.Path);
|
||||
|
||||
if (string.IsNullOrWhiteSpace(syncedItem.OriginalFileName))
|
||||
{
|
||||
syncedItem.OriginalFileName = Path.GetFileName(mediaSource.Path);
|
||||
@@ -686,6 +685,7 @@ namespace MediaBrowser.Server.Implementations.Sync
|
||||
// This will be null for items that are not audio/video
|
||||
if (mediaSource != null)
|
||||
{
|
||||
syncedItem.OriginalFileName = Path.ChangeExtension(syncedItem.OriginalFileName, Path.GetExtension(mediaSource.Path));
|
||||
syncedItem.Item.MediaSources.Add(mediaSource);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user