Smart playlists (#476)
A playlist is the episodes of the podcasts chosen, those set to play first ahead of the rest, newest or oldest first, unplayed only or all, kept up to date by itself (table `playlists`, /api/playlists). It sits in a folder of its own in the feed list, as Signals do. Played from one, an episode goes on to the playlist's next once Up Next has nothing. The priority ids are written into the ORDER BY, which the page query uses twice, so they are quoted there rather than bound; they are also only ever feed ids this person subscribes to. The folder row first borrowed Signals' `sigs` class, which the tests use to mean Signals' folder; four Signals tests failed until it had its own. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -148,6 +148,18 @@ interface State {
|
||||
sort: {col: string, dir: 'asc' | 'desc'};
|
||||
}
|
||||
|
||||
/// A smart playlist, `/api/playlists` (db.rs PlaylistRow, #476).
|
||||
interface Playlist {
|
||||
id: number;
|
||||
name: string;
|
||||
feeds: string[];
|
||||
priority: string[];
|
||||
only_unplayed: boolean;
|
||||
oldest_first: boolean;
|
||||
/** How many episodes it holds now. */
|
||||
items: number;
|
||||
}
|
||||
|
||||
/// An account, `/api/users` (web.rs list_users).
|
||||
interface Account {
|
||||
id: number;
|
||||
|
||||
Reference in New Issue
Block a user