Przeglądaj źródła

rename two properties based on code suggestions

dkanada 5 lat temu
rodzic
commit
73fac50e57

+ 4 - 4
Emby.Server.Implementations/Data/SqliteItemRepository.cs

@@ -6288,8 +6288,8 @@ where AncestorIdText not null and ItemValues.Value not null and ItemValues.Type
                         statement.TryBind("@Codec" + index, attachment.Codec);
                         statement.TryBind("@CodecTag" + index, attachment.CodecTag);
                         statement.TryBind("@Comment" + index, attachment.Comment);
-                        statement.TryBind("@Filename" + index, attachment.Filename);
-                        statement.TryBind("@MIMEType" + index, attachment.MIMEType);
+                        statement.TryBind("@FileName" + index, attachment.FileName);
+                        statement.TryBind("@MimeType" + index, attachment.MimeType);
                     }
 
                     statement.Reset();
@@ -6327,12 +6327,12 @@ where AncestorIdText not null and ItemValues.Value not null and ItemValues.Type
 
             if (reader[6].SQLiteType != SQLiteType.Null)
             {
-                item.Filename = reader[5].ToString();
+                item.FileName = reader[5].ToString();
             }
 
             if (reader[6].SQLiteType != SQLiteType.Null)
             {
-                item.MIMEType = reader[6].ToString();
+                item.MimeType = reader[6].ToString();
             }
 
             return item;

+ 1 - 1
MediaBrowser.Api/Attachments/AttachmentService.cs

@@ -45,7 +45,7 @@ namespace MediaBrowser.Api.Attachments
         public async Task<object> Get(GetAttachment request)
         {
             var (attachment, attachmentStream) = await GetAttachment(request).ConfigureAwait(false);
-            var mime = string.IsNullOrWhiteSpace(attachment.MIMEType) ? "application/octet-stream" : attachment.MIMEType;
+            var mime = string.IsNullOrWhiteSpace(attachment.MimeType) ? "application/octet-stream" : attachment.MimeType;
 
             return ResultFactory.GetResult(Request, attachmentStream, mime);
         }

+ 2 - 2
MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs

@@ -542,8 +542,8 @@ namespace MediaBrowser.MediaEncoding.Probing
 
             if (streamInfo.tags != null)
             {
-                attachment.Filename = GetDictionaryValue(streamInfo.tags, "filename");
-                attachment.MIMEType = GetDictionaryValue(streamInfo.tags, "mimetype");
+                attachment.FileName = GetDictionaryValue(streamInfo.tags, "filename");
+                attachment.MimeType = GetDictionaryValue(streamInfo.tags, "mimetype");
                 attachment.Comment = GetDictionaryValue(streamInfo.tags, "comment");
             }
 

+ 2 - 2
MediaBrowser.Model/Entities/MediaAttachment.cs

@@ -33,13 +33,13 @@ namespace MediaBrowser.Model.Entities
         /// Gets or sets the filename.
         /// </summary>
         /// <value>The filename.</value>
-        public string Filename { get; set; }
+        public string FileName { get; set; }
 
         /// <summary>
         /// Gets or sets the MIME type.
         /// </summary>
         /// <value>The MIME type.</value>
-        public string MIMEType { get; set; }
+        public string MimeType { get; set; }
 
         /// <summary>
         /// Gets or sets the delivery URL.