Commit 1c2787b3 authored by Alexandre Fernandez's avatar Alexandre Fernandez

Media: Implement listing by play count

parent ce85ed4b
......@@ -448,6 +448,10 @@ std::vector<MediaPtr> Media::listAll( MediaLibraryPtr ml, IMedia::Type type, Sor
case SortingCriteria::ReleaseDate:
req += "release_date";
break;
case SortingCriteria::PlayCount:
req += "play_count";
desc = !desc; // Make decreasing order default for play count sorting
break;
default:
req += "title";
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment