diff --git a/README.md b/README.md index 408af099..ea19e6c2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ ### TwitchDownloader A Twitch VOD/Clip/Chat downloader I wrote, as well as a chat render feature. + **THIS USES UNDOCUMENTED API ENDPOINTS, MAY BREAK EASILY. I'LL TRY AND UPDATE WHEN IT DOES. THIS PROGRAM REQUIRES [C++ 2015 Redistributable](https://www.microsoft.com/en-us/download/details.aspx?id=52685) TO RENDER CHAT.** ![](https://i.imgur.com/8XyVD00.gif) diff --git a/TwitchDownloaderWPF/PageChatDownload.xaml.cs b/TwitchDownloaderWPF/PageChatDownload.xaml.cs index 49b2406d..d24dfaee 100644 --- a/TwitchDownloaderWPF/PageChatDownload.xaml.cs +++ b/TwitchDownloaderWPF/PageChatDownload.xaml.cs @@ -217,7 +217,7 @@ private void BackgroundDownloadManager_DoWork(object sender, DoWorkEventArgs e) { if (clipInfo.is_json) { - sw.Write(result.ToString(Newtonsoft.Json.Formatting.Indented)); + sw.Write(result.ToString()); } else { diff --git a/TwitchDownloaderWPF/PageChatRender.xaml.cs b/TwitchDownloaderWPF/PageChatRender.xaml.cs index 74c71343..c58c6532 100644 --- a/TwitchDownloaderWPF/PageChatRender.xaml.cs +++ b/TwitchDownloaderWPF/PageChatRender.xaml.cs @@ -1260,7 +1260,7 @@ public GifEmote(Point Offset, string Name, System.Drawing.Image Image, int Image total_duration += duration; } - if (total_duration == 0) + if (total_duration == 0 || total_duration == frames) { for (int i = 0; i < durations.Count; i++) {