mirror of
https://github.com/rumanzo/bt2qbt.git
synced 2024-11-12 13:52:42 +01:00
Merge pull request #16 from rumanzo/issue-15
Correct file priority counting
This commit is contained in:
commit
fae76887f2
@ -134,9 +134,9 @@ func (newstructure *NewTorrentStructure) PrioConvert(src string) {
|
||||
for _, c := range []byte(src) {
|
||||
if i := int(c); (i == 0) || (i == 128) { // if not selected
|
||||
newprio = append(newprio, 0)
|
||||
} else if (i == 4) || (i == 8) { // if low or normal prio
|
||||
} else if (i >= 1) && (i <= 8) { // if low or normal prio
|
||||
newprio = append(newprio, 1)
|
||||
} else if i == 12 { // if high prio
|
||||
} else if (i > 8) && (i <= 15) { // if high prio
|
||||
newprio = append(newprio, 6)
|
||||
} else {
|
||||
newprio = append(newprio, 0)
|
||||
|
Loading…
Reference in New Issue
Block a user