Skip to content

Commit

Permalink
Merge pull request xbmc#4222 from Montellese/jsonrpc_audiolibrary_fixes
Browse files Browse the repository at this point in the history
jsonrpc: fix AudioLibrary.GetRecentlyAddedSongs/GetRecentlyPlayedSongs (fixes xbmc#14938)
  • Loading branch information
t-nelson committed Feb 17, 2014
2 parents 4af3b54 + c53dbbb commit 457d597
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xbmc/interfaces/json-rpc/AudioLibrary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ JSONRPC_STATUS CAudioLibrary::GetRecentlyAddedSongs(const CStdString &method, IT
amount = 0;

CFileItemList items;
if (!musicdatabase.GetRecentlyAddedAlbumSongs("musicdb://", items, (unsigned int)amount))
if (!musicdatabase.GetRecentlyAddedAlbumSongs("musicdb://songs/", items, (unsigned int)amount))
return InternalError;

JSONRPC_STATUS ret = GetAdditionalSongDetails(parameterObject, items, musicdatabase);
Expand Down Expand Up @@ -359,7 +359,7 @@ JSONRPC_STATUS CAudioLibrary::GetRecentlyPlayedSongs(const CStdString &method, I
return InternalError;

CFileItemList items;
if (!musicdatabase.GetRecentlyPlayedAlbumSongs("musicdb://", items))
if (!musicdatabase.GetRecentlyPlayedAlbumSongs("musicdb://songs/", items))
return InternalError;

JSONRPC_STATUS ret = GetAdditionalSongDetails(parameterObject, items, musicdatabase);
Expand Down

0 comments on commit 457d597

Please sign in to comment.