fixing path issue with starting torrent

This commit is contained in:
2018-03-30 20:05:18 -04:00
parent 128ec774bd
commit a7881a14c7

View File

@@ -522,7 +522,7 @@ func main() {
singleTorrent.CancelPieces(1, NumPieces) //cancel all of the pieces to use file priority
for _, file := range singleTorrent.Files() {
for _, sentFile := range oldTorrentInfo.TorrentFilePriority {
if file.Path() == sentFile.TorrentFilePath {
if file.DisplayPath() == sentFile.TorrentFilePath {
switch sentFile.TorrentFilePriority {
case "High":
file.SetPriority(torrent.PiecePriorityHigh)