mirror of
https://github.com/rumanzo/bt2qbt.git
synced 2024-11-22 02:12:39 +01:00
rename variables in getTrackers
This commit is contained in:
parent
2d91e47377
commit
ef8fd5825a
@ -146,13 +146,13 @@ func (transfer *TransferStructure) GetTrackers(trackers interface{}) {
|
|||||||
switch strct := trackers.(type) {
|
switch strct := trackers.(type) {
|
||||||
case []string:
|
case []string:
|
||||||
for _, str := range strct {
|
for _, str := range strct {
|
||||||
for _, str := range strings.Fields(str) {
|
for _, substr := range strings.Fields(str) {
|
||||||
transfer.Fastresume.Trackers = append(transfer.Fastresume.Trackers, []string{str})
|
transfer.Fastresume.Trackers = append(transfer.Fastresume.Trackers, []string{substr})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
case string:
|
case string:
|
||||||
for _, str := range strings.Fields(strct) {
|
for _, substr := range strings.Fields(strct) {
|
||||||
transfer.Fastresume.Trackers = append(transfer.Fastresume.Trackers, []string{str})
|
transfer.Fastresume.Trackers = append(transfer.Fastresume.Trackers, []string{substr})
|
||||||
}
|
}
|
||||||
case []interface{}:
|
case []interface{}:
|
||||||
for _, st := range strct {
|
for _, st := range strct {
|
||||||
|
Loading…
Reference in New Issue
Block a user