fixed some bugs
This commit is contained in:
parent
5f3690b34d
commit
17868d9708
|
@ -472,7 +472,8 @@ namespace TYTD
|
|||
StringBuilder builder = new StringBuilder();
|
||||
foreach (var v in plitem.Videos)
|
||||
{
|
||||
|
||||
try
|
||||
{
|
||||
var item = JsonConvert.DeserializeObject<SavedVideo>(File.ReadAllText(Path.Combine("Info", $"{v}.json")));
|
||||
Dictionary<string, string> videos = new Dictionary<string, string>();
|
||||
videos.AddEscapedHtml("Title", item.Title);
|
||||
|
@ -488,7 +489,10 @@ namespace TYTD
|
|||
videos.AddEscapedHtml("Description", item.Description);
|
||||
videos.AddEscapedHtml("UploadDate", DateTime.Parse(item.UploadDate).ToShortDateString());
|
||||
builder.Append(Templating.RenderString(htmlBeforeProcessed, videos));
|
||||
|
||||
}catch(Exception ex)
|
||||
{
|
||||
_ = ex;
|
||||
}
|
||||
}
|
||||
|
||||
Dictionary<string, string> playlist = new Dictionary<string, string>();
|
||||
|
|
Loading…
Reference in New Issue