aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordkanada <dkanada@users.noreply.github.com>2020-01-08 10:52:48 +0900
committerdkanada <dkanada@users.noreply.github.com>2020-01-08 10:52:48 +0900
commit73fac50e57982ac46aea2b487e9906826c3dc3b2 (patch)
treefba035667905c4cc55798906e584ab7d0f5c5b7f
parent8a0ef4103632b2888249af2f385e1e7bfc06fbfe (diff)
rename two properties based on code suggestions
-rw-r--r--Emby.Server.Implementations/Data/SqliteItemRepository.cs8
-rw-r--r--MediaBrowser.Api/Attachments/AttachmentService.cs2
-rw-r--r--MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs4
-rw-r--r--MediaBrowser.Model/Entities/MediaAttachment.cs4
4 files changed, 9 insertions, 9 deletions
diff --git a/Emby.Server.Implementations/Data/SqliteItemRepository.cs b/Emby.Server.Implementations/Data/SqliteItemRepository.cs
index 2ff19a639..c514846e5 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.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;
diff --git a/MediaBrowser.Api/Attachments/AttachmentService.cs b/MediaBrowser.Api/Attachments/AttachmentService.cs
index ef09951b6..1632ca1b0 100644
--- a/MediaBrowser.Api/Attachments/AttachmentService.cs
+++ b/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);
}
diff --git a/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs b/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs
index f2056c566..6664b34a5 100644
--- a/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs
+++ b/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");
}
diff --git a/MediaBrowser.Model/Entities/MediaAttachment.cs b/MediaBrowser.Model/Entities/MediaAttachment.cs
index 26279b72b..8f8c3efd2 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.