Fix broken JSON handling

JSON PR did not use the correct default for the JSON in this addon
This commit is contained in:
emveepee 2022-03-29 15:48:45 -04:00
parent 8d22a5be57
commit c733cda1ff
10 changed files with 14 additions and 14 deletions

View File

@ -1,4 +1,4 @@
using System.IO;
using System.IO;
using System.Text.Json;
using System.Threading.Tasks;
using Jellyfin.Extensions.Json;
@ -9,7 +9,7 @@ namespace Jellyfin.Plugin.NextPVR.Responses;
public class CancelDeleteRecordingResponse
{
private readonly JsonSerializerOptions _jsonOptions = JsonDefaults.Options;
private readonly JsonSerializerOptions _jsonOptions = JsonDefaults.CamelCaseOptions;
public async Task<bool?> RecordingError(Stream stream, ILogger<LiveTvService> logger)
{

View File

@ -14,7 +14,7 @@ namespace Jellyfin.Plugin.NextPVR.Responses;
public class ChannelResponse
{
private readonly string _baseUrl;
private readonly JsonSerializerOptions _jsonOptions = JsonDefaults.Options;
private readonly JsonSerializerOptions _jsonOptions = JsonDefaults.CamelCaseOptions;
public ChannelResponse(string baseUrl)
{

View File

@ -9,7 +9,7 @@ namespace Jellyfin.Plugin.NextPVR.Responses;
public class InitializeResponse
{
private readonly JsonSerializerOptions _jsonOptions = JsonDefaults.Options;
private readonly JsonSerializerOptions _jsonOptions = JsonDefaults.CamelCaseOptions;
public async Task<bool> LoggedIn(Stream stream, ILogger<LiveTvService> logger)
{

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.IO;
using System.Text.Json;
using System.Threading.Tasks;
@ -11,7 +11,7 @@ namespace Jellyfin.Plugin.NextPVR.Responses;
public class InstantiateResponse
{
private readonly JsonSerializerOptions _jsonOptions = JsonDefaults.Options;
private readonly JsonSerializerOptions _jsonOptions = JsonDefaults.CamelCaseOptions;
public async Task<ClientKeys> GetClientKeys(Stream stream, ILogger<LiveTvService> logger)
{

View File

@ -10,7 +10,7 @@ namespace Jellyfin.Plugin.NextPVR.Responses;
public class LastUpdateResponse
{
private readonly JsonSerializerOptions _jsonOptions = JsonDefaults.Options;
private readonly JsonSerializerOptions _jsonOptions = JsonDefaults.CamelCaseOptions;
public async Task<DateTimeOffset> GetUpdateTime(Stream stream, ILogger<LiveTvService> logger)
{

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
@ -15,7 +15,7 @@ namespace Jellyfin.Plugin.NextPVR.Responses;
public class ListingsResponse
{
private readonly string _baseUrl;
private readonly JsonSerializerOptions _jsonOptions = JsonDefaults.Options;
private readonly JsonSerializerOptions _jsonOptions = JsonDefaults.CamelCaseOptions;
private string _channelId;
public ListingsResponse(string baseUrl)

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
@ -18,7 +18,7 @@ public class RecordingResponse
{
private readonly string _baseUrl;
private readonly ILogger<LiveTvService> _logger;
private readonly JsonSerializerOptions _jsonOptions = JsonDefaults.Options;
private readonly JsonSerializerOptions _jsonOptions = JsonDefaults.CamelCaseOptions;
public RecordingResponse(string baseUrl, ILogger<LiveTvService> logger)
{

View File

@ -15,7 +15,7 @@ namespace Jellyfin.Plugin.NextPVR.Responses;
internal class RecurringResponse
{
private readonly ILogger<LiveTvService> _logger;
private readonly JsonSerializerOptions _jsonOptions = JsonDefaults.Options;
private readonly JsonSerializerOptions _jsonOptions = JsonDefaults.CamelCaseOptions;
public RecurringResponse(ILogger<LiveTvService> logger)
{

View File

@ -10,7 +10,7 @@ namespace Jellyfin.Plugin.NextPVR.Responses;
public class SettingResponse
{
private readonly JsonSerializerOptions _jsonOptions = JsonDefaults.Options;
private readonly JsonSerializerOptions _jsonOptions = JsonDefaults.CamelCaseOptions;
public async Task<bool> GetDefaultSettings(Stream stream, ILogger<LiveTvService> logger)
{

View File

@ -12,7 +12,7 @@ namespace Jellyfin.Plugin.NextPVR.Responses;
public class TunerResponse
{
private readonly JsonSerializerOptions _jsonOptions = JsonDefaults.Options;
private readonly JsonSerializerOptions _jsonOptions = JsonDefaults.CamelCaseOptions;
public async Task<List<LiveTvTunerInfo>> LiveTvTunerInfos(Stream stream)
{