mirror of
https://github.com/jellyfin/jellyfin-plugin-nextpvr.git
synced 2024-11-26 15:40:35 +00:00
Fix broken JSON handling
JSON PR did not use the correct default for the JSON in this addon
This commit is contained in:
parent
8d22a5be57
commit
c733cda1ff
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user