|
@@ -16,9 +16,9 @@ using System.Text;
|
|
|
using System.Text.Json;
|
|
|
using System.Threading;
|
|
|
using System.Threading.Tasks;
|
|
|
-using Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos;
|
|
|
using Jellyfin.Extensions;
|
|
|
using Jellyfin.Extensions.Json;
|
|
|
+using Jellyfin.LiveTv.Listings.SchedulesDirectDtos;
|
|
|
using MediaBrowser.Common.Net;
|
|
|
using MediaBrowser.Controller.Authentication;
|
|
|
using MediaBrowser.Controller.LiveTv;
|
|
@@ -27,7 +27,7 @@ using MediaBrowser.Model.Entities;
|
|
|
using MediaBrowser.Model.LiveTv;
|
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
|
|
-namespace Emby.Server.Implementations.LiveTv.Listings
|
|
|
+namespace Jellyfin.LiveTv.Listings
|
|
|
{
|
|
|
public class SchedulesDirect : IListingsProvider, IDisposable
|
|
|
{
|
|
@@ -613,6 +613,7 @@ namespace Emby.Server.Implementations.LiveTv.Listings
|
|
|
|
|
|
// Response is automatically disposed in the calling function,
|
|
|
// so dispose manually if not returning.
|
|
|
+#pragma warning disable IDISP016, IDISP017
|
|
|
response.Dispose();
|
|
|
if (!enableRetry || (int)response.StatusCode >= 500)
|
|
|
{
|
|
@@ -621,6 +622,7 @@ namespace Emby.Server.Implementations.LiveTv.Listings
|
|
|
null,
|
|
|
response.StatusCode);
|
|
|
}
|
|
|
+#pragma warning restore IDISP016, IDISP017
|
|
|
|
|
|
_tokens.Clear();
|
|
|
options.Headers.TryAddWithoutValidation("token", await GetToken(providerInfo, cancellationToken).ConfigureAwait(false));
|