fixed proxy issues hopefully

This commit is contained in:
Mike Nolan 2022-11-01 02:51:12 -05:00
parent 6d322cd098
commit d1af5f66c4
1 changed files with 7 additions and 7 deletions

View File

@ -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<Subscription> GetSubscriptionsAsync()
{
IAsyncEnumerable<Subscription> subscriptions=null;
Func<IAsyncEnumerable<Subscription>> 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<string> GetPersonalPlaylistsAsync()
{
if(Downloader == null) yield break;
IAsyncEnumerable<string> items=null;
Func<IAsyncEnumerable<string>> 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);
}