Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

smartplaylists: fix parsing of sort direction from JSON object

  • Loading branch information...
commit 296093925468c2d40d433d4e66a07e0ee6fb12e5 1 parent 0d29a97
Sascha Montellese Montellese authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  xbmc/playlists/SmartPlayList.cpp
2  xbmc/playlists/SmartPlayList.cpp
View
@@ -1403,7 +1403,7 @@ bool CSmartPlaylist::Load(const CVariant &obj)
if (obj.isMember("order") && obj["order"].isMember("method") && obj["order"]["method"].isString())
{
if (obj["order"].isMember("direction") && obj["order"]["direction"].isString())
- m_orderDirection = StringUtils::EqualsNoCase(obj["order"]["direction"].asString(), "ascending") == 0 ? SortOrderAscending : SortOrderDescending;
+ m_orderDirection = StringUtils::EqualsNoCase(obj["order"]["direction"].asString(), "ascending") ? SortOrderAscending : SortOrderDescending;
m_orderField = CSmartPlaylistRule::TranslateOrder(obj["order"]["method"].asString().c_str());
}
Please sign in to comment.
Something went wrong with that request. Please try again.