From a7881a14c7eb30c0e4ca5b7ea4387ae23735ea28 Mon Sep 17 00:00:00 2001 From: deranjer Date: Fri, 30 Mar 2018 20:05:18 -0400 Subject: [PATCH] fixing path issue with starting torrent --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 63edce61..984347ab 100644 --- a/main.go +++ b/main.go @@ -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)