Fixed bug of TorrentFile catalog not using full Names and fixed bug in FileManifest and torrent file inconsistency in manifest names.
Change-Id: I2ccb98c8d336cc69f0949a3d46796b807ed185b1
diff --git a/src/torrent-file.cpp b/src/torrent-file.cpp
index c230401..dafeb41 100644
--- a/src/torrent-file.cpp
+++ b/src/torrent-file.cpp
@@ -275,7 +275,7 @@
currentTorrentName.appendSequenceNumber(static_cast<int>(manifestFileCounter));
currentTorrentFile = TorrentFile(currentTorrentName, commonPrefix, {});
}
- currentTorrentFile.insert(currentManifestPair.first[0].getName());
+ currentTorrentFile.insert(currentManifestPair.first[0].getFullName());
currentManifestPair.first.shrink_to_fit();
currentManifestPair.second.shrink_to_fit();
manifestPairs.push_back(currentManifestPair);