Anna Schumaker
6762916899
I need to do something slightly different for each Playlist. * Collection: I load tracks from the collection_view, which filters tracks to those where the library is enabled but not deleting. * Favorite Tracks: I load tracks from the favorites_view, which filters tracks based on the tracks.favorite and library.deleting column. * Most Played Tracks: I load tracks with a playcount greater than the average playcount of all tracks (rounded up to the nearest integer). * New Tracks: I load tracks that have been added within the last week. * Previous Tracks: I load tracks that have been played since startup using the system_tracks table. I take care to clear these entries in the table during startup. * Queued Tracks: Load tracks from the user_tracks table. * Unplayed Tracks: I load tracks with a playcount equal to 0 and remove when they are played. * User-Defined Playlists: Load tracks from the track_playlist_link table. Additionally, I implement move_track_up() and move_track_down() support for user playlists and queued tracks. Finally, I update the have-next-track property to take into account if the Collection has tracks too. Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com> |
||
---|---|---|
audio | ||
aur@405e47e021 | ||
data | ||
db | ||
emmental | ||
icons/scalable | ||
lib | ||
mpris-spec@51e5848f9f | ||
playlist | ||
scanner | ||
sidebar | ||
tests | ||
tools | ||
ui | ||
.debug | ||
.gitignore | ||
.gitmodules | ||
LICENSE | ||
Makefile | ||
README.md | ||
emmental.py | ||
emmental3.py | ||
pytest.ini |
README.md
emmental
A new music player built around Python and GTK