aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Attributes/AcceptsImageFileAttribute.cs
diff options
context:
space:
mode:
authorDavid <daullmer@gmail.com>2021-02-13 22:55:33 +0100
committerDavid <daullmer@gmail.com>2021-02-13 22:55:33 +0100
commitfc7377fb9bf2b227a8a2300e6909d7c74862c8ab (patch)
tree667966225e0aa2a4dce983f744f07581e5bfd37f /Jellyfin.Api/Attributes/AcceptsImageFileAttribute.cs
parent7f12b273197204c49862623b6de6b1a573af2cd8 (diff)
parent6616add8c8526456e343d7b576d22df0ed261124 (diff)
Merge remote-tracking branch 'jellyfin/master' into nfo-tests
# Conflicts: # tests/Jellyfin.XbmcMetadata.Tests/Parsers/EpisodeNfoProviderTests.cs # tests/Jellyfin.XbmcMetadata.Tests/Parsers/SeriesNfoParserTests.cs
Diffstat (limited to 'Jellyfin.Api/Attributes/AcceptsImageFileAttribute.cs')
-rw-r--r--Jellyfin.Api/Attributes/AcceptsImageFileAttribute.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/Jellyfin.Api/Attributes/AcceptsImageFileAttribute.cs b/Jellyfin.Api/Attributes/AcceptsImageFileAttribute.cs
new file mode 100644
index 000000000..001f27409
--- /dev/null
+++ b/Jellyfin.Api/Attributes/AcceptsImageFileAttribute.cs
@@ -0,0 +1,18 @@
+namespace Jellyfin.Api.Attributes
+{
+ /// <summary>
+ /// Produces file attribute of "image/*".
+ /// </summary>
+ public class AcceptsImageFileAttribute : AcceptsFileAttribute
+ {
+ private const string ContentType = "image/*";
+
+ /// <summary>
+ /// Initializes a new instance of the <see cref="AcceptsImageFileAttribute"/> class.
+ /// </summary>
+ public AcceptsImageFileAttribute()
+ : base(ContentType)
+ {
+ }
+ }
+}