rename two properties based on code suggestions
This commit is contained in:
parent
8a0ef41036
commit
73fac50e57
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user