Browse Source

Merge pull request #8505 from JJS/CompilerWarnings

Claus Vium 2 years ago
parent
commit
9ff918cb14

+ 0 - 0
Emby.Server.Implementations/Data/SynchronouseMode.cs → Emby.Server.Implementations/Data/SynchronousMode.cs


+ 1 - 0
Emby.Server.Implementations/Images/DynamicImageProvider.cs

@@ -93,6 +93,7 @@ namespace Emby.Server.Implementations.Images
                 returnItems.Shuffle();
                 return returnItems;
             }
+
             returnItems = items
                 .Where(i => i.HasImage(ImageType.Primary))
                 .ToList();

+ 1 - 1
Emby.Server.Implementations/Library/LibraryManager.cs

@@ -2779,7 +2779,7 @@ namespace Emby.Server.Implementations.Library
                 }
             })
             .Where(i => i != null)
-            .Where(i => query.User == null ? 
+            .Where(i => query.User == null ?
                 true :
                 i.IsVisible(query.User))
             .ToList();

+ 2 - 2
Emby.Server.Implementations/LiveTv/EmbyTV/RecordingHelper.cs

@@ -2,8 +2,8 @@
 
 using System;
 using System.Globalization;
-using MediaBrowser.Controller.LiveTv;
 using System.Text;
+using MediaBrowser.Controller.LiveTv;
 
 namespace Emby.Server.Implementations.LiveTv.EmbyTV
 {
@@ -56,7 +56,7 @@ namespace Emby.Server.Implementations.LiveTv.EmbyTV
                     }
 
                     tmpName += " " + info.EpisodeTitle;
-                    //  Since the filename will be used with file ext. (.mp4, .ts, etc)
+                    // Since the filename will be used with file ext. (.mp4, .ts, etc)
                     if (Encoding.UTF8.GetByteCount(tmpName) < 250)
                     {
                         name = tmpName;

+ 0 - 2
MediaBrowser.Model/Configuration/EmbeddedSubtitleOptions.cs

@@ -5,7 +5,6 @@ namespace MediaBrowser.Model.Configuration
     /// </summary>
     public enum EmbeddedSubtitleOptions
     {
-
         /// <summary>
         /// Allow all embedded subs.
         /// </summary>
@@ -26,5 +25,4 @@ namespace MediaBrowser.Model.Configuration
         /// </summary>
         AllowNone = 3,
     }
-
 }

+ 1 - 1
MediaBrowser.Model/Dlna/ContentFeatureBuilder.cs

@@ -8,7 +8,7 @@ using MediaBrowser.Model.MediaInfo;
 
 namespace MediaBrowser.Model.Dlna
 {
-    public class ContentFeatureBuilder
+    public static class ContentFeatureBuilder
     {
         public static string BuildImageHeader(
             DeviceProfile profile,

+ 1 - 1
MediaBrowser.Model/Search/SearchHint.cs

@@ -100,7 +100,7 @@ namespace MediaBrowser.Model.Search
         public BaseItemKind Type { get; set; }
 
         /// <summary>
-        /// Gets a value indicating whether this instance is folder.
+        /// Gets or sets a value indicating whether this instance is folder.
         /// </summary>
         /// <value><c>true</c> if this instance is folder; otherwise, <c>false</c>.</value>
         public bool? IsFolder { get; set; }