-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix inconsistent capitalization * Reduce repeat memory allocations due to excessive EnsureCapacity calls * Manually report 100% progress * Use adjusted FileInfo instead of mergeOptions.OutputFile * Reduce allocations when aggregating & sorting comments * Extract comment downloading & aggregating * Use a Range for holding download region * Clarify converted comment adding logic * Fix potential for the last few seconds of chat messages to be not downloaded The number of seconds that can be skipped is <= the number of chat connections * Cleanup * Make videoEnd exclusive to catch comments sent on last second of the broadcast * progress will never be null * Use constrained generic instead of IFormattable * Support TimeSpanHFormat in FilenameService
- Loading branch information
Showing
5 changed files
with
98 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System.Collections.Generic; | ||
using TwitchDownloaderCore.TwitchObjects; | ||
|
||
namespace TwitchDownloaderCore.Tools | ||
{ | ||
public class CommentIdEqualityComparer : IEqualityComparer<Comment> | ||
{ | ||
public bool Equals(Comment x, Comment y) | ||
{ | ||
if (x is null) return y is null; | ||
if (y is null) return false; | ||
|
||
return x._id.Equals(y._id); | ||
} | ||
|
||
public int GetHashCode(Comment obj) => obj._id.GetHashCode(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters