Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added random songs as requested in #1111 #1120

Open
wants to merge 4 commits into
base: edge
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add adapter for randomsongs, see comments in paroj#6
popeen committed Apr 9, 2024

Verified

This commit was signed with the committer’s verified signature.
woodruffw William Woodruff
commit 3241a63925c3f46af7e4a91937ac9b7605591182
Original file line number Diff line number Diff line change
@@ -131,6 +131,8 @@ protected List<Entry> cacheInBackground() throws Exception {
result = service.getAlbumList(type, extra, size, offset, false, context, null);
} else if("genres".equals(type) || "genres-songs".equals(type)) {
result = service.getSongsByGenre(extra, size, offset, context, null);
} else if (type.equals("randomsongs")) {
result = service.getRandomTracks(size, context, null);
}else if(type.indexOf(MainFragment.SONGS_LIST_PREFIX) != -1) {
result = service.getSongList(type, size, offset, context, null);
} else {