Simple string sort on listing torrents
This commit is contained in:
@@ -58,7 +58,10 @@ func (t *TorrentManager) RefreshTorrents() []string {
|
||||
// torrents yet to be assigned in a directory
|
||||
strset.Difference(freshKeys, t.allAccessKeys).Each(func(accessKey string) bool {
|
||||
// assign to directories
|
||||
tor, _ := allTorrents.Get(accessKey)
|
||||
tor, ok := allTorrents.Get(accessKey)
|
||||
if !ok {
|
||||
return true
|
||||
}
|
||||
var directories []string
|
||||
t.assignedDirectoryCb(tor, func(directory string) {
|
||||
if strings.HasPrefix(directory, "int__") {
|
||||
|
||||
Reference in New Issue
Block a user