Skip to content

Commit

Permalink
Don't overwrite download_content_type if already set
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Sep 24, 2024
1 parent 0fae2a2 commit f1da2f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Netkan/Transformers/DownloadAttributeTransformer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public IEnumerable<Metadata> Transform(Metadata metadata, TransformOptions? opts
json["download_hash"] = download_hashJson;

Log.Debug("Calculating download MIME type...");
json["download_content_type"] = _fileService.GetMimetype(file);
json.SafeAdd("download_content_type", _fileService.GetMimetype(file));
}

Log.DebugFormat("Transformed metadata:{0}{1}", Environment.NewLine, json);
Expand Down

0 comments on commit f1da2f4

Please sign in to comment.