Skip to content

Commit

Permalink
fix HardlinkedOutsideClient for retag and relabel
Browse files Browse the repository at this point in the history
  • Loading branch information
SweetMnM committed Feb 7, 2023
1 parent 8cd083e commit 9c53d82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cmd/relabel.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,9 @@ var relabelCmd = &cobra.Command{
log.Infof("Mapped all torrent file paths to %d unique underlying file IDs in %s", hfm.Length(), time.Since(start))

// add HardlinkedOutsideClient field to torrents
for _, t := range torrents {
for h, t := range torrents {
t.HardlinkedOutsideClient = hfm.HardlinkedOutsideClient(t)
torrents[h] = t
}
} else {
log.Warnf("Not mapping hardlinks for client %q", clientName)
Expand Down
3 changes: 2 additions & 1 deletion cmd/retag.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,9 @@ var retagCmd = &cobra.Command{
log.Infof("Mapped all torrent file paths to %d unique underlying file IDs in %s", hfm.Length(), time.Since(start))

// add HardlinkedOutsideClient field to torrents
for _, t := range torrents {
for h, t := range torrents {
t.HardlinkedOutsideClient = hfm.HardlinkedOutsideClient(t)
torrents[h] = t
}
} else {
log.Warnf("Not mapping hardlinks for client %q", clientName)
Expand Down

0 comments on commit 9c53d82

Please sign in to comment.