Update 'playlists'

Anna Schumaker 2023-05-10 16:32:27 -04:00
parent 4d3f8de9ce
commit e4a2facf6e
1 changed files with 20 additions and 9 deletions

@ -32,13 +32,24 @@ The `playlists_view` joins the `playlists` table with the [[playlist_properties]
| [sort_order](playlist_properties) | The sort order of this playlist |
| [current_trackid](playlist_properties) | The current track of this playlist |
### Track Views
These other views are used to select tracks that belong to each of the default playlists. The only column they have to select is the [trackid](tracks), and are used to filter out tracks that are being deleted.
| View Name | Description |
| -------------------- | ----------------------------------------------------------------------------------------- |
| collection_view | Tracks where the associated [library](libraries) is enabled |
| favorite_view | Tracks where [track.favorite](tracks) is TRUE |
| most_played_view | Tracks where [track.playcount](tracks) is greater than the average playcount (rounded up) |
| new_tracks_view | Tracks where [track.added](tracks) is a date within the last 7 days |
| unplayed_tracks_view | Tracks where [track.playcount](tracks) is 0 |
### Default System Playlists
| Name | Destription |
| ------------------ | ------------------------------------------------------------ |
| Collection | A playlist containing all tracks added to the database |
| Favorite Tracks | A playlist containing the user's favorite tracks |
| Most Played Tracks | A playlist containing tracks with an above-average playcount |
| New Tracks | A playlist containing recently added tracks |
| Previous Tracks | A playlist containing recently played tracks |
| Queued Tracks | A playlist containing tracks that will be played soon |
| Unplayed Tracks | A playlist containing tracks that have not been played yet |
| Name | Track View | Destription |
| ------------------ | ----------------------------------- | ------------------------------------------------------------ |
| Collection | collection_view | A playlist containing all tracks added to the database |
| Favorite Tracks | favorite_view | A playlist containing the user's favorite tracks |
| Most Played Tracks | most_played_view | A playlist containing tracks with an above-average playcount |
| New Tracks | new_tracks_view | A playlist containing recently added tracks |
| Previous Tracks | [system_tracks_view](system_tracks) | A playlist containing recently played tracks |
| Queued Tracks | [user_tracks_view](user_tracks) | A playlist containing tracks that will be played soon |
| Unplayed Tracks | unplayed_tracks_view | A playlist containing tracks that have not been played yet |