mirror of
https://github.com/jellyfin/jellyfin-plugin-nextpvr.git
synced 2024-11-26 23:50:45 +00:00
Merge pull request #3 from barronhagerman/sorted-filtered-list-no-compression
Disable compression on POST responses
This commit is contained in:
commit
001df302cf
@ -38,7 +38,6 @@ namespace NextPvr
|
||||
|
||||
private string Sid { get; set; }
|
||||
private DateTimeOffset LastUpdatedSidDateTime { get; set; }
|
||||
private ICryptoProvider _cryptoProvider;
|
||||
private IFileSystem _fileSystem;
|
||||
|
||||
public DateTimeOffset LastRecordingChange = DateTimeOffset.MinValue;
|
||||
@ -49,7 +48,6 @@ namespace NextPvr
|
||||
_jsonSerializer = jsonSerializer;
|
||||
_logger = logger;
|
||||
LastUpdatedSidDateTime = DateTime.UtcNow;
|
||||
_cryptoProvider = cryptoProvider;
|
||||
_fileSystem = fileSystem;
|
||||
}
|
||||
|
||||
@ -144,9 +142,7 @@ namespace NextPvr
|
||||
|
||||
public string GetMd5Hash(string value)
|
||||
{
|
||||
var hashValue = _cryptoProvider.ComputeMD5(new UTF8Encoding().GetBytes(value));
|
||||
//Bit convertor return the byte to string as all caps hex values seperated by "-"
|
||||
return BitConverter.ToString(hashValue).Replace("-", "").ToLowerInvariant();
|
||||
return value.GetMD5().ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -193,7 +189,8 @@ namespace NextPvr
|
||||
var options = new HttpRequestOptions
|
||||
{
|
||||
CancellationToken = cancellationToken,
|
||||
Url = string.Format("{0}/public/ManageService/Get/SortedFilteredList?sid={1}", baseUrl, Sid)
|
||||
Url = string.Format("{0}/public/ManageService/Get/SortedFilteredList?sid={1}", baseUrl, Sid),
|
||||
DecompressionMethod = CompressionMethod.None
|
||||
};
|
||||
|
||||
var filterOptions = new
|
||||
@ -324,7 +321,8 @@ namespace NextPvr
|
||||
var options = new HttpRequestOptions
|
||||
{
|
||||
CancellationToken = cancellationToken,
|
||||
Url = string.Format("{0}/public/ScheduleService/Record?sid={1}", baseUrl, Sid)
|
||||
Url = string.Format("{0}/public/ScheduleService/Record?sid={1}", baseUrl, Sid),
|
||||
DecompressionMethod = CompressionMethod.None
|
||||
};
|
||||
|
||||
var timerSettings = await GetDefaultScheduleSettings(cancellationToken).ConfigureAwait(false);
|
||||
@ -371,7 +369,8 @@ namespace NextPvr
|
||||
var options = new HttpRequestOptions
|
||||
{
|
||||
CancellationToken = cancellationToken,
|
||||
Url = string.Format("{0}/public/ManageService/Get/SortedFilteredList?sid={1}", baseUrl, Sid)
|
||||
Url = string.Format("{0}/public/ManageService/Get/SortedFilteredList?sid={1}", baseUrl, Sid),
|
||||
DecompressionMethod = CompressionMethod.None
|
||||
};
|
||||
|
||||
var filterOptions = new
|
||||
@ -424,7 +423,8 @@ namespace NextPvr
|
||||
var options = new HttpRequestOptions
|
||||
{
|
||||
CancellationToken = cancellationToken,
|
||||
Url = string.Format("{0}/public/ManageService/Get/SortedFilteredList?sid={1}", baseUrl, Sid)
|
||||
Url = string.Format("{0}/public/ManageService/Get/SortedFilteredList?sid={1}", baseUrl, Sid),
|
||||
DecompressionMethod = CompressionMethod.None
|
||||
};
|
||||
|
||||
var filterOptions = new
|
||||
@ -467,7 +467,8 @@ namespace NextPvr
|
||||
var options = new HttpRequestOptions
|
||||
{
|
||||
CancellationToken = cancellationToken,
|
||||
Url = string.Format("{0}/public/ScheduleService/Record?sid={1}", baseUrl, Sid)
|
||||
Url = string.Format("{0}/public/ScheduleService/Record?sid={1}", baseUrl, Sid),
|
||||
DecompressionMethod = CompressionMethod.None
|
||||
};
|
||||
|
||||
var timerSettings = await GetDefaultScheduleSettings(cancellationToken).ConfigureAwait(false);
|
||||
@ -548,7 +549,8 @@ namespace NextPvr
|
||||
var options = new HttpRequestOptions
|
||||
{
|
||||
CancellationToken = cancellationToken,
|
||||
Url = string.Format("{0}/public/ScheduleService/UpdateRecurr?sid={1}", baseUrl, Sid)
|
||||
Url = string.Format("{0}/public/ScheduleService/UpdateRecurr?sid={1}", baseUrl, Sid),
|
||||
DecompressionMethod = CompressionMethod.None
|
||||
};
|
||||
|
||||
var timerSettings = await GetDefaultScheduleSettings(cancellationToken).ConfigureAwait(false);
|
||||
@ -597,7 +599,8 @@ namespace NextPvr
|
||||
var options = new HttpRequestOptions
|
||||
{
|
||||
CancellationToken = cancellationToken,
|
||||
Url = string.Format("{0}/public/ScheduleService/UpdateRec?sid={1}", baseUrl, Sid)
|
||||
Url = string.Format("{0}/public/ScheduleService/UpdateRec?sid={1}", baseUrl, Sid),
|
||||
DecompressionMethod = CompressionMethod.None
|
||||
};
|
||||
|
||||
var timerSettings = await GetDefaultScheduleSettings(cancellationToken).ConfigureAwait(false);
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netstandard2.0;</TargetFrameworks>
|
||||
<AssemblyVersion>1.0.0</AssemblyVersion>
|
||||
<FileVersion>1.0.0</FileVersion>
|
||||
<AssemblyVersion>2.0.0</AssemblyVersion>
|
||||
<FileVersion>2.0.0</FileVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
@ -17,7 +17,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Jellyfin.Controller" Version="10.*" />
|
||||
<PackageReference Include="Jellyfin.Controller" Version="10.4-*" />
|
||||
<PackageReference Include="System.Memory" Version="4.5.1" />
|
||||
</ItemGroup>
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
---
|
||||
name: "jellyfin-plugin-nextpvr"
|
||||
guid: "9574ac10-bf23-49bc-949f-924f23cfa48f"
|
||||
version: "1" # Please increment with each pull request
|
||||
jellyfin_version: "10.3.0" # The earliest binary-compatible version
|
||||
version: "2" # Please increment with each pull request
|
||||
jellyfin_version: "10.4.0" # The earliest binary-compatible version
|
||||
nicename: "NextPVR"
|
||||
description: "Jellyfin LiveTV plugin for NextPVR"
|
||||
overview: >
|
||||
|
Loading…
Reference in New Issue
Block a user