Added example
This commit is contained in:
parent
4a15cb4c20
commit
b44e365af2
|
@ -103,11 +103,12 @@ namespace Tesses.YouTubeDownloader
|
||||||
|
|
||||||
await foreach(var item in EnumerateFilesAsync("Subscriptions"))
|
await foreach(var item in EnumerateFilesAsync("Subscriptions"))
|
||||||
{
|
{
|
||||||
|
if(Path.GetExtension(item).Equals(".json"))
|
||||||
|
{
|
||||||
var sub=JsonConvert.DeserializeObject<Subscription>(await ReadAllTextAsync(item));
|
var sub=JsonConvert.DeserializeObject<Subscription>(await ReadAllTextAsync(item));
|
||||||
sub.Base=this;
|
sub.Base=this;
|
||||||
yield return await Task.FromResult(sub);
|
yield return await Task.FromResult(sub);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in New Issue