Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

[UPnP] we shouldn't sort unknown container listings, as this squashes th... #1568

Merged
merged 1 commit into from

3 participants

@alcoheca
Collaborator

...e correct sort order returned by the server

edit: used the LABEL_MASKS suggested by jm

@Montellese
Owner

Looks alright to me.

@elupus elupus merged commit f0ee3fc into xbmc:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 9, 2012
  1. @alcoheca

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

    alcoheca authored
    … the correct sort order returned by the server
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 1 deletion.
  1. +4 −1 xbmc/filesystem/UPnPDirectory.cpp
View
5 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:
Something went wrong with that request. Please try again.