Usenet streaming with a WebDAV server and a SABnzbd-compatible API
C#
Fix renaming of extracted obfuscated files
nzbdav-dev691bcbd1fb73
diff --git a/backend/Queue/FileAggregators/RarAggregator.cs b/backend/Queue/FileAggregators/RarAggregator.csindex f657a6e0..1e7ff62f 100644--- a/backend/Queue/FileAggregators/RarAggregator.cs+++ b/backend/Queue/FileAggregators/RarAggregator.cs@@ -47,11 +47,7 @@ public class RarAggregator(DavDatabaseClient dbClient, DavItem mountDirectory) :// If there is only one file in the archive and the file-name is obfuscated,// then rename the file to the same name as the containing mount directory.if (archiveFiles.Count == 1 && ObfuscationUtil.IsProbablyObfuscated(name))- {- var extension = Path.GetExtension(name);- var mountDirName = Path.GetFileNameWithoutExtension(mountDirectory.Name);- name = mountDirName + extension;- }+ name = mountDirectory.Name + Path.GetExtension(name);var davItem = DavItem.New(id: Guid.NewGuid(),