Skip to content

Commit

Permalink
Fix some GIF speeds
Browse files Browse the repository at this point in the history
  • Loading branch information
lay295 committed Nov 16, 2019
1 parent 2f683ab commit 730340e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
2 changes: 1 addition & 1 deletion TwitchDownloaderWPF/PageChatDownload.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion TwitchDownloaderWPF/PageChatRender.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
{
Expand Down

0 comments on commit 730340e

Please sign in to comment.