diff --git a/src/NzbDrone.Core/ImportLists/Youtube/YoutubeImportListBase.cs b/src/NzbDrone.Core/ImportLists/Youtube/YoutubeImportListBase.cs index dd97727d5..391abc22d 100644 --- a/src/NzbDrone.Core/ImportLists/Youtube/YoutubeImportListBase.cs +++ b/src/NzbDrone.Core/ImportLists/Youtube/YoutubeImportListBase.cs @@ -15,8 +15,6 @@ namespace NzbDrone.Core.ImportLists.Youtube public abstract class YoutubeImportListBase : ImportListBase where TSettings : YoutubePlaylistSettings, new() { - private IHttpClient _httpClient; - protected YoutubeImportListBase(IImportListStatusService importListStatusService, IConfigService configService, IParsingService parsingService, @@ -24,7 +22,6 @@ namespace NzbDrone.Core.ImportLists.Youtube Logger logger) : base(importListStatusService, configService, parsingService, logger) { - _httpClient = httpClient; } public override ImportListType ListType => ImportListType.Youtube; @@ -45,11 +42,6 @@ namespace NzbDrone.Core.ImportLists.Youtube return CleanupListItems(releases); } - public IList MapYoutubeReleases(IList items) - { - return items; - } - public abstract IList Fetch(YouTubeService service); protected override void Test(List failures) diff --git a/src/NzbDrone.Core/ImportLists/Youtube/YoutubePlaylist.cs b/src/NzbDrone.Core/ImportLists/Youtube/YoutubePlaylist.cs index 726550e51..52f88988b 100644 --- a/src/NzbDrone.Core/ImportLists/Youtube/YoutubePlaylist.cs +++ b/src/NzbDrone.Core/ImportLists/Youtube/YoutubePlaylist.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Linq; +using System.Threading; using DryIoc.ImTools; using FluentValidation.Results; using Google.Apis.YouTube.v3; @@ -62,6 +63,7 @@ namespace NzbDrone.Core.ImportLists.Youtube results.Add(listItem); } + Thread.Sleep(TimeSpan.FromSeconds(1)); playlist = req.Execute(); } while (playlist.NextPageToken != null && page < 10);