Permalink
Browse files

[UPnP] we shouldn't sort unknown container listings, as this squashes…

… the correct sort order returned by the server
  • Loading branch information...
1 parent 33ea386 commit 146b57d96d44d864703d9a7a8f0e468ff3f13582 @alcoheca committed Oct 8, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 xbmc/filesystem/UPnPDirectory.cpp
@@ -487,7 +487,10 @@ CUPnPDirectory::GetDirectory(const CStdString& strPath, CFileItemList &items)
max_count = it->second;
}
}
- items.SetContent(GetContentMapping(max_string));
+ std::string content = GetContentMapping(max_string);
+ items.SetContent(content);
+ if (content == "unknown")
+ items.AddSortMethod(SORT_METHOD_NONE, 551, LABEL_MASKS("%L", "%I", "%L", ""));
}
cleanup:

0 comments on commit 146b57d

Please sign in to comment.