diff options
| author | Cody Robibero <cody@robibe.ro> | 2024-03-31 21:58:06 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-31 21:58:06 -0600 |
| commit | 3ade3a8e63204becb856bbc268ce877c82a44a2c (patch) | |
| tree | 00125cfc5213dcf805e48350b4fbe3446a786ff0 /src | |
| parent | d9fe900952db446ded5ebdb937bd9e242b4a96de (diff) | |
Lowercase CollectionTypeOptions to match legacy experience (#11272)
Diffstat (limited to 'src')
| -rw-r--r-- | src/Jellyfin.Extensions/Json/Converters/JsonLowerCaseConverter.cs | 25 | ||||
| -rw-r--r-- | src/Jellyfin.LiveTv/Recordings/RecordingsManager.cs | 4 |
2 files changed, 2 insertions, 27 deletions
diff --git a/src/Jellyfin.Extensions/Json/Converters/JsonLowerCaseConverter.cs b/src/Jellyfin.Extensions/Json/Converters/JsonLowerCaseConverter.cs deleted file mode 100644 index cd582ced6..000000000 --- a/src/Jellyfin.Extensions/Json/Converters/JsonLowerCaseConverter.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Jellyfin.Extensions.Json.Converters -{ - /// <summary> - /// Converts an object to a lowercase string. - /// </summary> - /// <typeparam name="T">The object type.</typeparam> - public class JsonLowerCaseConverter<T> : JsonConverter<T> - { - /// <inheritdoc /> - public override T? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - return JsonSerializer.Deserialize<T>(ref reader, options); - } - - /// <inheritdoc /> - public override void Write(Utf8JsonWriter writer, T value, JsonSerializerOptions options) - { - writer.WriteStringValue(value?.ToString()?.ToLowerInvariant()); - } - } -} diff --git a/src/Jellyfin.LiveTv/Recordings/RecordingsManager.cs b/src/Jellyfin.LiveTv/Recordings/RecordingsManager.cs index 92605a1eb..2f4caa386 100644 --- a/src/Jellyfin.LiveTv/Recordings/RecordingsManager.cs +++ b/src/Jellyfin.LiveTv/Recordings/RecordingsManager.cs @@ -159,7 +159,7 @@ public sealed class RecordingsManager : IRecordingsManager, IDisposable { Locations = [customPath], Name = "Recorded Movies", - CollectionType = CollectionTypeOptions.Movies + CollectionType = CollectionTypeOptions.movies }; } @@ -172,7 +172,7 @@ public sealed class RecordingsManager : IRecordingsManager, IDisposable { Locations = [customPath], Name = "Recorded Shows", - CollectionType = CollectionTypeOptions.TvShows + CollectionType = CollectionTypeOptions.tvshows }; } } |
