aboutsummaryrefslogtreecommitdiffstats
path: root/src/storage (unfollow)
Commit message (Collapse)Author
2024-10-14refactor(treewide): Combine the separate crates in one workspaceBenedikt Peetz
2024-10-14feat(videos): Provide a consistent display for the `Video` structBenedikt Peetz
Before, `Video`s where colourized differently, just because the colourization was not standardized. It now is.
2024-08-25style(treewide): ReformatBenedikt Peetz
2024-08-25refactor(treewide): Conform to `cargo clippy`Benedikt Peetz
2024-08-25fix(storage/extractor_hash): Remove useless logsBenedikt Peetz
2024-08-24fix(storage/database): Already borrow the `VideoStatus::ALL` constantBenedikt Peetz
2024-08-24test(storage/setters): Assert the video status in `set_video_watched`Benedikt Peetz
2024-08-24feat(select/cmds): Add a `watched` commandBenedikt Peetz
Otherwise, running `yt select file --done` would mark all your already wached stuff to be watched again.
2024-08-23style(treewide): FormatBenedikt Peetz
2024-08-23fix(storage/setters): Enforce status invariantsBenedikt Peetz
2024-08-23feat(treewide): Use a configuration fileBenedikt Peetz
This allows use to avoid duplication of default values in the codebase and obviously also facilitates changing these without having to re-compile.
2024-08-23refactor(storage/downloader): Remove unused `get_next_video_watchable`Benedikt Peetz
2024-08-23fix(storage/downloader): Sort the next videos to be downloaded like in the ↵Benedikt Peetz
selection file
2024-08-22fix(storage/schema.sql): Tell SQLite to perform type-checkingBenedikt Peetz
Otherwise, SQLite tries to “coerce” types into fitting in the “preferred” type of the table. Now SQLite actually refuses to accept a type mismatch.
2024-08-22refactor(storage/getters): Inline an Option re-creation with `map`Benedikt Peetz
2024-08-22fix(storage/setters): Avoid writing a literal "NULL" string into the dbBenedikt Peetz
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.
2024-08-22refactor(storage): Make all URL parsings panicBenedikt Peetz
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.
2024-08-22fix(storage/get_videos): Also order by `publish_date`Benedikt Peetz
All freshly added videos have a priority of 0. To ensure that they are still ordered, also sort by `publish_date`.
2024-08-22feat(download): Support limiting the downloader by maximal cache sizeBenedikt Peetz