Skip to content

The Free Software Media System - Server Backend & API

Curly braces on new lines

Ulrich Wagnera9e744bea0af
diff --git a/Emby.Server.Implementations/Library/LibraryManager.cs b/Emby.Server.Implementations/Library/LibraryManager.cs
index 1fdf8887c8..841f6321aa 100644
--- a/Emby.Server.Implementations/Library/LibraryManager.cs
+++ b/Emby.Server.Implementations/Library/LibraryManager.cs
@@ -2424,15 +2424,18 @@ namespace Emby.Server.Implementations.Library
MediaSource = episode.GetMediaSources(false)[0],
MediaType = DlnaProfileType.Video
}, CancellationToken.None).GetAwaiter().GetResult();
- if (mediaInfo.ParentIndexNumber > 0) {
+ if (mediaInfo.ParentIndexNumber > 0)
+ {
episodeInfo.SeasonNumber = mediaInfo.ParentIndexNumber;
}
- if (mediaInfo.IndexNumber > 0) {
+ if (mediaInfo.IndexNumber > 0)
+ {
episodeInfo.EpisodeNumber = mediaInfo.IndexNumber;
}
- if (!string.IsNullOrEmpty(mediaInfo.ShowName)) {
+ if (!string.IsNullOrEmpty(mediaInfo.ShowName))
+ {
episodeInfo.SeriesName = mediaInfo.ShowName;
}
}