emmental/tests/db
Anna Schumaker 6762916899 db: Give System Playlists knowledge about their Tracks
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>
2023-05-10 17:31:33 -04:00
..
test_albums.py db: Give Albums knowledge about their Media 2023-04-12 10:44:34 -04:00
test_artists.py db: Give Artists knowledge about their Media 2023-04-12 10:44:34 -04:00
test_connection.py db: Add a Playlists Table 2023-04-12 10:44:34 -04:00
test_db.py db: Add a Track Table 2023-05-10 14:42:57 -04:00
test_decades.py db: Give Decades knowledge about their Years 2023-04-12 10:44:34 -04:00
test_genres.py db: Add a Genre Table 2023-04-12 10:44:34 -04:00
test_idle.py db: Add an idle Queue 2023-04-12 10:42:14 -04:00
test_libraries.py db: Give Libraries an idle Tagger 2023-04-12 14:18:17 -04:00
test_media.py db: Add a Media Table 2023-04-12 10:44:34 -04:00
test_playlist.py db: Give Playlists extra properties 2023-05-10 17:31:33 -04:00
test_playlists.py db: Give System Playlists knowledge about their Tracks 2023-05-10 17:31:33 -04:00
test_settings.py db: Give Tables an idle Queue 2023-04-12 10:44:27 -04:00
test_table.py db: Give Tables an idle Queue 2023-04-12 10:44:27 -04:00
test_tagger.py audio: Add Track support to the tagger 2023-04-12 15:09:08 -04:00
test_tracks.py db: Add a TrackidSet 2023-05-10 17:31:33 -04:00
test_years.py db: Add a Year Table 2023-04-12 10:44:34 -04:00