fixed some bugs
This commit is contained in:
parent
b718dfd42d
commit
2ece42f6c0
|
@ -224,7 +224,7 @@ namespace TYTD
|
|||
videos.AddEscapedHtml("Description", item.Description);
|
||||
videos.AddEscapedHtml("UploadDate", DateTime.Parse(item.UploadDate).ToShortDateString());
|
||||
|
||||
string res=ApiLoader.RenderFileOrDefault("WebSite/err/video_list/VideoInfo.html", "<!DOCTYPE html><html lang=\"en\"><head><meta charset=\"UTF-8\"><meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><title>Information about {Title}</title></head><body><h1>Video Info for {Title}</h1>Playback: <a href=\"../../Storage/File/NotConverted/{Id}\">SD</a> <a href=\"../../Storage/File/Converted/{Id}\">HD</a> <a href=\"../../Storage/File/Audio/{Id}\">Audio</a><br>Download: <a href=\"../../Storage/VideoRes/1/{Id}\">SD</a> <a href=\"../../Storage/VideoRes/0/{Id}\">HD</a> <a href=\"../../Storage/VideoRes/2/{Id}\">Audio</a> <br><h3>Video Id: {Id}</h3><h3>Video Channel: {AuthorTitle}</h3><h3>Video Channel Id: {AuthorChannelId}</h3><h3>Likes: {Likes}, Dislikes: {Dislikes}, Views: {Views}</h3><h3>Upload Date: {UploadDate}</h3><h3>Duration: {DurationStringLong}</h3><h3>Description:</h3><p>{Description}</p></body></html>", videos);
|
||||
string res=ApiLoader.RenderFileOrDefault("WebSite/err/video_list/VideoInfo.html", "<!DOCTYPE html><html lang=\"en\"><head><meta charset=\"UTF-8\"><meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><title>Information about {Title}</title></head><body><h1>Video Info for {Title}</h1>Playback: <a href=\"../../Storage/File/NotConverted/{Id}.mp4\">SD</a> <a href=\"../../Storage/File/Converted/{Id}.mp4\">HD</a> <a href=\"../../Storage/File/Audio/{Id}.mp4\">Audio</a><br>Download: <a href=\"../../Storage/VideoRes/1/{Id}\">SD</a> <a href=\"../../Storage/VideoRes/0/{Id}\">HD</a> <a href=\"../../Storage/VideoRes/2/{Id}\">Audio</a> <br><h3>Video Id: {Id}</h3><h3>Video Channel: {AuthorTitle}</h3><h3>Video Channel Id: {AuthorChannelId}</h3><h3>Likes: {Likes}, Dislikes: {Dislikes}, Views: {Views}</h3><h3>Upload Date: {UploadDate}</h3><h3>Duration: {DurationStringLong}</h3><h3>Description:</h3><p>{Description}</p></body></html>", videos);
|
||||
response.AsText(res);
|
||||
}
|
||||
else
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue