From d1af5f66c446cff56d8daeb06f60579bc6bd40e3 Mon Sep 17 00:00:00 2001 From: Mike Nolan Date: Tue, 1 Nov 2022 02:51:12 -0500 Subject: [PATCH] fixed proxy issues hopefully --- .../TYTDIDownloaderStorageProxy.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Tesses.YouTubeDownloader/TYTDIDownloaderStorageProxy.cs b/Tesses.YouTubeDownloader/TYTDIDownloaderStorageProxy.cs index 4485152..43aab4f 100644 --- a/Tesses.YouTubeDownloader/TYTDIDownloaderStorageProxy.cs +++ b/Tesses.YouTubeDownloader/TYTDIDownloaderStorageProxy.cs @@ -17,7 +17,7 @@ namespace Tesses.YouTubeDownloader { public IDownloader Downloader {get{return _downloader;} set { - SetDownloader(_downloader); + SetDownloader(value); } } @@ -526,12 +526,12 @@ namespace Tesses.YouTubeDownloader public async IAsyncEnumerable GetSubscriptionsAsync() { - IAsyncEnumerable subscriptions=null; + Func> subscriptions=null; StorageAsStorage((e)=>{ - subscriptions= e.GetSubscriptionsAsync(); + subscriptions= e.GetSubscriptionsAsync; }); if(subscriptions == null) yield break; - await foreach(var item in subscriptions) + await foreach(var item in subscriptions()) { yield return await Task.FromResult(item); } @@ -571,13 +571,13 @@ namespace Tesses.YouTubeDownloader public async IAsyncEnumerable GetPersonalPlaylistsAsync() { if(Downloader == null) yield break; - IAsyncEnumerable items=null; + Func> items=null; DownloaderAsITYTDBase((e)=>{ - items=e.GetPersonalPlaylistsAsync(); + items=e.GetPersonalPlaylistsAsync; }); if(items == null) yield break; - await foreach(var item in items) + await foreach(var item in items()) { yield return await Task.FromResult(item); }