fixed proxy issues hopefully
This commit is contained in:
parent
6d322cd098
commit
d1af5f66c4
|
@ -17,7 +17,7 @@ namespace Tesses.YouTubeDownloader
|
||||||
{
|
{
|
||||||
public IDownloader Downloader {get{return _downloader;} set
|
public IDownloader Downloader {get{return _downloader;} set
|
||||||
{
|
{
|
||||||
SetDownloader(_downloader);
|
SetDownloader(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -526,12 +526,12 @@ namespace Tesses.YouTubeDownloader
|
||||||
|
|
||||||
public async IAsyncEnumerable<Subscription> GetSubscriptionsAsync()
|
public async IAsyncEnumerable<Subscription> GetSubscriptionsAsync()
|
||||||
{
|
{
|
||||||
IAsyncEnumerable<Subscription> subscriptions=null;
|
Func<IAsyncEnumerable<Subscription>> subscriptions=null;
|
||||||
StorageAsStorage((e)=>{
|
StorageAsStorage((e)=>{
|
||||||
subscriptions= e.GetSubscriptionsAsync();
|
subscriptions= e.GetSubscriptionsAsync;
|
||||||
});
|
});
|
||||||
if(subscriptions == null) yield break;
|
if(subscriptions == null) yield break;
|
||||||
await foreach(var item in subscriptions)
|
await foreach(var item in subscriptions())
|
||||||
{
|
{
|
||||||
yield return await Task.FromResult(item);
|
yield return await Task.FromResult(item);
|
||||||
}
|
}
|
||||||
|
@ -571,13 +571,13 @@ namespace Tesses.YouTubeDownloader
|
||||||
public async IAsyncEnumerable<string> GetPersonalPlaylistsAsync()
|
public async IAsyncEnumerable<string> GetPersonalPlaylistsAsync()
|
||||||
{
|
{
|
||||||
if(Downloader == null) yield break;
|
if(Downloader == null) yield break;
|
||||||
IAsyncEnumerable<string> items=null;
|
Func<IAsyncEnumerable<string>> items=null;
|
||||||
DownloaderAsITYTDBase((e)=>{
|
DownloaderAsITYTDBase((e)=>{
|
||||||
items=e.GetPersonalPlaylistsAsync();
|
items=e.GetPersonalPlaylistsAsync;
|
||||||
|
|
||||||
});
|
});
|
||||||
if(items == null) yield break;
|
if(items == null) yield break;
|
||||||
await foreach(var item in items)
|
await foreach(var item in items())
|
||||||
{
|
{
|
||||||
yield return await Task.FromResult(item);
|
yield return await Task.FromResult(item);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue