mirror of
https://github.com/rumanzo/bt2qbt.git
synced 2024-11-22 02:12:39 +01:00
Path fix
This commit is contained in:
parent
b77c41b1a3
commit
d3fb9c545d
@ -393,6 +393,8 @@ func logic(key string, value map[string]interface{}, bitdir *string, with_label
|
||||
}
|
||||
if value["path"].(string)[len(value["path"].(string))-1] == os.PathSeparator {
|
||||
newstructure.path = value["path"].(string)[:len(value["path"].(string))-1]
|
||||
} else {
|
||||
newstructure.path = value["path"].(string)
|
||||
}
|
||||
newstructure.Active_time = value["runtime"].(int64)
|
||||
newstructure.Added_time = value["added_on"].(int64)
|
||||
|
Loading…
Reference in New Issue
Block a user