The Free Software Media System - Server Backend & API
rename two properties based on code suggestions
dkanada73fac50e5798
diff --git a/Emby.Server.Implementations/Data/SqliteItemRepository.cs b/Emby.Server.Implementations/Data/SqliteItemRepository.csindex 2ff19a6397..c514846e58 100644--- a/Emby.Server.Implementations/Data/SqliteItemRepository.cs+++ b/Emby.Server.Implementations/Data/SqliteItemRepository.cs@@ -6288,8 +6288,8 @@ where AncestorIdText not null and ItemValues.Value not null and ItemValues.Typestatement.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.Typeif (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;diff --git a/MediaBrowser.Api/Attachments/AttachmentService.cs b/MediaBrowser.Api/Attachments/AttachmentService.csindex ef09951b65..1632ca1b06 100644--- a/MediaBrowser.Api/Attachments/AttachmentService.cs+++ b/MediaBrowser.Api/Attachments/AttachmentService.cs@@ -45,7 +45,7 @@ namespace MediaBrowser.Api.Attachmentspublic 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);}diff --git a/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs b/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.csindex f2056c5663..6664b34a5c 100644--- a/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs+++ b/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs@@ -542,8 +542,8 @@ namespace MediaBrowser.MediaEncoding.Probingif (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");}diff --git a/MediaBrowser.Model/Entities/MediaAttachment.cs b/MediaBrowser.Model/Entities/MediaAttachment.csindex 26279b72b8..8f8c3efd20 100644--- a/MediaBrowser.Model/Entities/MediaAttachment.cs+++ b/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.