DiscordChatExporter/DiscordChatExporter.Core
Kornelius Rohrschneider 1ae03ad206
Fixed appending empty channel exports
Several bugs related to appending empty channel exports have been fixed:
- Previously, the partition index hadn’t been adapted if the existing channel export had been empty. This had resulted in an uncaught exception as the target file had already existed.
- Previously, the HTML last message detection hadn’t worked if the export had been empty, resulting in an uncaught exception.
- Previously, empty TXT exports had been detected as message containing because the footer hadn’t been taken into account. This had resulted in an uncaught exception as no valid timestamp could have been retrieved.
- Previously, empty TXT & CSV exports would have been detected as message containing if they had contained enough empty lines. This has been fixed by testing whether the respective file has enough non-empty lines in a functional and lazy way.

Additionally, there have been multiple other improvements:
- The CSV last message detection has been improved to now use the last non-empty line. Previously, it wouldn’t have worked (and thrown an exception) if there had been any trailing empty lines.
- The info messages that a channel export is being appended had previously not been logged if the export had been empty. Therefore, new specific info logs have been added for this situation.
- If an empty channel had previously been exported and is still empty, the export will now be aborted (and a respective new info message will be logged).
- A comment has been added to the HTML template to prevent it from being changed without corresponding changes in the HTML last message detection.
2025-10-29 00:01:39 +01:00
..
Discord Added explicit handling of existing export files 2025-10-25 19:17:00 +02:00
Exceptions Added an export progress logger 2025-10-28 02:34:21 +01:00
Exporting Fixed appending empty channel exports 2025-10-29 00:01:39 +01:00
Markdown Use .NET 9 2024-11-12 22:19:58 +02:00
Utils Remove the now unnecessary extension method 2025-07-01 19:02:48 +03:00
DiscordChatExporter.Core.csproj Bump the nuget group with 13 updates (#1431) 2025-10-02 16:08:07 +03:00