Commit message (Collapse) | Author | ||
---|---|---|---|
10 hours | fix(yt/update): Correct the progress display in `--grouped` mode | Benedikt Peetz | |
11 hours | docs(yt/watch/playlist_handler/client_messages): Add TODO about `current_exe` | Benedikt Peetz | |
11 hours | docs(yt_dlp): Fix typo in `Cargo.toml`'s description | Benedikt Peetz | |
11 hours | fix(yt_dlp): Avoid writing the json output to disk | Benedikt Peetz | |
There is no point in doing this anymore, as we no longer need to deserialize it. | |||
11 hours | fix(yt/update/video_entry_to_video): Cast the json objects | Benedikt Peetz | |
Otherwise, we might encounter very weird behaviour if yt_dlp ever changes the types of these keys. | |||
11 hours | feat(yt/update): Print a nice progress number | Benedikt Peetz | |
This number obviously does not actually mean that we have finished updating (as it is incremented on staring). But it still provides some feedback, on how long the update will probably take. | |||
11 hours | feat(yt/update): Support grouped updates | Benedikt Peetz | |
Rustpython currently does not use a garbage collector. Thus, every cyclic reference between Python objects results in a memory leak of these objects (as Rustpython uses (A)RCs). The only real way to workaround the memory leaks, is by restarting the whole process, and this `--grouped` flag seems to be the best solution for that. | |||
12 hours | perf(yt/update/updater): Acknowledge, that `yt_dlp` has a sync API | Benedikt Peetz | |
The previous code was written with the assumption, that `yt_dlp` had an async API (which means, that calls to it should never block). Unfortunately, the API is sync and all calls into it block. Therefore, all the parallelism in the previous code accounted for nothing; The actual update ran completely sequentially. The new version uses a local thread pool to avoid blocking the tokio runtime and as such achieves higher speed. Unfortunately, because the rustpython implementation is way slower than cpython, the whole update takes longer. But that is a problem for another day. | |||
12 hours | feat(yt/select): Support a directory selection process | Benedikt Peetz | |
The single file approach becomes unwieldy once one has more open videos. | |||
12 hours | refactor(yt/select): Split the `select::select` function up | Benedikt Peetz | |
41 hours | feat(yt/update): Specify subscriptions to update as positional args | Benedikt Peetz | |
Having the `-s/--subscription` flag is pointless, as there are no other flags that could make a positional arg ambiguous. | |||
41 hours | feat({yt/update,yt_dlp}): Use yt_dlp errors again | Benedikt Peetz | |
This code was temporarily commented out, as I had not migrated it in the pyo3 -> rustpython migration. | |||
41 hours | docs(yt/update): Add comment about the `unsmuggle_url` invocation | Benedikt Peetz | |
41 hours | fix(yt/update): Avoid printing all the subscriptions that are not updated | Benedikt Peetz | |
This is just too much noise. | |||
43 hours | fix(yt/select/selection_file/duration): Improve the duration parser | Benedikt Peetz | |
The previous parser was very brittle, it failed for (valid) outputs like `1d 10h 30m` (as it only expected two number unit pairs). On top of that, extending it was failure prone (as proven by the roundtrip failure in combination with the `d` unit). | |||
2 days | fix(yt/version): Use yt_dlp's native python version imply | Benedikt Peetz | |
This is just cleaner, compared to running `yt-dlp --version` as command. | |||
2 days | build(treewide): Update | Benedikt Peetz | |
2 days | build(flake): Document for what the `CLANG_*` env vars are needed | Benedikt Peetz | |
2 days | build(flake): Remove `flake-utils` | Benedikt Peetz | |
This library serves no real purpose, and now started failing to updated. | |||
2 days | refactor(yt): Move to `crates/yt` | Benedikt Peetz | |
Having one crate outside the `crates` directory is just weird. | |||
2 days | build(flake): Switch to `nixpkgs-unstable-small` | Benedikt Peetz | |
Small is updated faster, and we need quick updates as `yt_dlp` needs to be always up-to-date so that it actually works with YouTube. | |||
2 days | build(flake): Adapt the dev env to yt_dlp's new dependencies | Benedikt Peetz | |
2 days | fix(yt/subscribe): Deal with moved url value | Benedikt Peetz | |
2 days | fix(yt/downloader/progress_hook): Silence clippy warnings | Benedikt Peetz | |
2 days | refactor(yt): Consolidate the multiple ANSI escape code wrapper functions | Benedikt Peetz | |
2 days | fix(yt/watch/playlist): Workaround terminals, that treat 0 as 1 | Benedikt Peetz | |
2 days | fix(yt/storage/migrate): Correct the two to three migration script | Benedikt Peetz | |
2 days | fix(yt/storage/migrate): Correctly state the upgrade to the topmost version | Benedikt Peetz | |
Previously `$new_version` and `$old_version` were mistakenly swapped. | |||
2 days | feat(yt/status): Show the percentage of videos that were actually watched | Benedikt Peetz | |
2 days | style(yt/cli): Sort the toplevel flags alphabetically | Benedikt Peetz | |
2 days | fix(yt/{se,}dowa): Don't exit completely, if the downloader fails | Benedikt Peetz | |
Otherwise the `yt watch` part exists even if videos are available to be watched. | |||
2 days | feat({yt_dlp,yt}): Migrate from pyo3 to rustpython | Benedikt Peetz | |
That allows us to avoid cpython's GIL and gives us full ability to leverage async/concurrent code to speed up python operations. I have also taken the opportunity to change the `InfoJson` struct to an untyped json value, as that is what it actually is. | |||
2 days | build(treewide): Update | Benedikt Peetz | |
2025-03-21 | build(flake): Add `git-bug` to the devshell | Benedikt Peetz | |
2025-03-21 | fix(yt/storage/migrate): Improve error messages | Benedikt Peetz | |
2025-03-21 | fix(yt/storage/migrate): Account for the fact that DbVersions::Empty means ↵ | Benedikt Peetz | |
no Version | |||
2025-03-21 | style(treewide): Adopt rust edition 2024 rustfmt style | Benedikt Peetz | |
2025-03-21 | chore(yt_dlp/wrappers/info_json): Add additional missing field | Benedikt Peetz | |
2025-03-21 | refactor(yt_dlp): Remove the unneeded `async` from the public functions | Benedikt Peetz | |
2025-03-21 | chore(treewide): Migrate to rust edition 2024 | Benedikt Peetz | |
Even though the diff in the libmpv2 crate is quite big, it really only added `unsafe` blocks to the `unsafe` functions. | |||
2025-03-21 | build(treewide): Update | Benedikt Peetz | |
2025-03-21 | feat(yt/storage/videos): Validate in DB, that is_focused is UNIQUE | Benedikt Peetz | |
This makes the situation where two or more videos are focused impossible to represent in the db. | |||
2025-03-21 | refactor(yt/storage/migrate/sql): Use predictable SQL paths | Benedikt Peetz | |
I.e. `<version_number>_<old_version_name>_to_<new_version_name>.sql` | |||
2025-03-21 | refactor(yt/storage/migrate): Factor out duplicated code into macro | Benedikt Peetz | |
2025-03-07 | fix(yt/storage/video_database/set): Reset the `is_focused` flag | Benedikt Peetz | |
2025-02-22 | chore(version): v1.5.0 v1.5.0 | Benedikt Peetz | |
2025-02-22 | fix(package): Update to account for modifications in `mkdb.sh` | Benedikt Peetz | |
2025-02-22 | build(treewide): Update | Benedikt Peetz | |
2025-02-22 | chore(treewide): Add/Update the license headers | Benedikt Peetz | |
2025-02-22 | refactor(yt/storage/video_database): Move `getters,setters` to `get,set` | Benedikt Peetz | |
This also removes some `get_`/`set_` prefixes from the functions in these modules, as `get::<function>` is more idiomatic than `get_<function>`. |