Added example

This commit is contained in:
Mike Nolan 2022-05-11 19:32:51 -05:00
parent 788f3baddf
commit 4a15cb4c20
1 changed files with 3 additions and 4 deletions

View File

@ -103,12 +103,11 @@ 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>(item);
sub.Base=this; sub.Base=this;
yield return await Task.FromResult(sub); yield return await Task.FromResult(sub);
}
} }
} }
/// <summary> /// <summary>