about summary refs log tree commit diff stats
path: root/src/storage/video_database (follow)
Commit message (Collapse)AuthorAge
* style(treewide): ReformatBenedikt Peetz2024-08-25
|
* refactor(treewide): Conform to `cargo clippy`Benedikt Peetz2024-08-25
|
* fix(storage/extractor_hash): Remove useless logsBenedikt Peetz2024-08-25
|
* fix(storage/database): Already borrow the `VideoStatus::ALL` constantBenedikt Peetz2024-08-24
|
* test(storage/setters): Assert the video status in `set_video_watched`Benedikt Peetz2024-08-24
|
* feat(select/cmds): Add a `watched` commandBenedikt Peetz2024-08-24
| | | | | Otherwise, running `yt select file --done` would mark all your already wached stuff to be watched again.
* style(treewide): FormatBenedikt Peetz2024-08-23
|
* fix(storage/setters): Enforce status invariantsBenedikt Peetz2024-08-23
|
* feat(treewide): Use a configuration fileBenedikt Peetz2024-08-23
| | | | | | This allows use to avoid duplication of default values in the codebase and obviously also facilitates changing these without having to re-compile.
* refactor(storage/downloader): Remove unused `get_next_video_watchable`Benedikt Peetz2024-08-23
|
* fix(storage/downloader): Sort the next videos to be downloaded like in the ↵Benedikt Peetz2024-08-23
| | | | selection file
* fix(storage/schema.sql): Tell SQLite to perform type-checkingBenedikt Peetz2024-08-22
| | | | | | Otherwise, SQLite tries to “coerce” types into fitting in the “preferred” type of the table. Now SQLite actually refuses to accept a type mismatch.
* refactor(storage/getters): Inline an Option re-creation with `map`Benedikt Peetz2024-08-22
|
* fix(storage/setters): Avoid writing a literal "NULL" string into the dbBenedikt Peetz2024-08-22
| | | | | | Sqlx supports turning an option to a NULL insertion, but trying to insert a string, containing "NULL", will result in this literal string being written to the database.
* refactor(storage): Make all URL parsings panicBenedikt Peetz2024-08-22
| | | | | | These URLs should be checked *before* they are written to the database, thus being unable to decode them after they've been read from the database is an application bug and not a user input issue.
* fix(storage/get_videos): Also order by `publish_date`Benedikt Peetz2024-08-22
| | | | | All freshly added videos have a priority of 0. To ensure that they are still ordered, also sort by `publish_date`.
* feat(download): Support limiting the downloader by maximal cache sizeBenedikt Peetz2024-08-22
|
* chore: Initial CommitBenedikt Peetz2024-08-21
This repository was migrated out of my nixos-config.