aboutsummaryrefslogtreecommitdiffstats
path: root/crates (unfollow)
Commit message (Collapse)Author
2025-06-28fix(yt/{subscribe,storage/subscriptions}): Fix more instances of the ↵Benedikt Peetz
capitalize Playlist type
2025-06-28chore(yt_dlp/package_hacks): Add missing license headersBenedikt Peetz
2025-06-28chore(yt/storage/video_database/set): Apply some of clippy's suggestionsBenedikt Peetz
2025-06-28fix(yt/select/split): Also use persist the selection fileBenedikt Peetz
This makes re-editing after a selection failure possible.
2025-06-28fix(yt/select/cmds/add): Use the correct names for the download typeBenedikt Peetz
Otherwise, adding anything is impossible.
2025-06-28fix(yt/select/cmds/add): Don't print the title as value, cast it firstBenedikt Peetz
Otherwise, we would silently ignore an invalid type, if the title type ever changes.
2025-06-28fix(yt/download/progress_hook): Remove superfluous apostrophesBenedikt Peetz
The start and end of the title is already apparent, as it is coloured differently than the rest. Adding the single quotes around it does not improve it and is just visual clatter.
2025-06-28build({flake,Cargo}.lock): UpdateBenedikt Peetz
2025-06-28fix(yt_dlp): Polyfill missing rustpython features used in urllib3Benedikt Peetz
Otherwise, anything that depends on urllib3 just fails to initialize.
2025-06-28revert: "build(treewide): Update"Benedikt Peetz
This reverts commit e6aa91c56ca51a8593b9a58ec5746741888db7f9. The update of urllib3 to v2.4.0 broke our `yt-dlp` integration.
2025-06-24build(treewide): UpdateBenedikt Peetz
2025-06-24build(yt_dlp/Cargo.toml): Pin git dependenciesBenedikt Peetz
2025-06-24fix(yt_dlp/post_processors/dearrow): Don't try to access the drained vecBenedikt Peetz
If all titles were declared “bad” the pp previously tried to access the first title in the array, which was already drained. We now simply clone the array to facilitate this usage.
2025-06-24feat(yt/version): Add the (rust)python version againBenedikt Peetz
2025-06-24fix(yt/update/grouped): Don't drop the verbosity levelBenedikt Peetz
Otherwise, the sub-processes run with the default verbosity level.
2025-06-24feat(yt/cli): Also add completion for subscription namesBenedikt Peetz
2025-06-17chore(treewide): Assure that `nix fmt` and `reuse lint` are happyBenedikt Peetz
2025-06-17refactor(yt_dlp): Split the big `lib.rs` file upBenedikt Peetz
2025-06-17refactor(yt_dlp/progress_hook): Use public api via `__priv` moduleBenedikt Peetz
That makes it clear that these parts are only exposed to facilitate macro use and not as part of the public API.
2025-06-17fix(yt_dlp/post_processing/dearrow): Correctly type the `CasualVote` fieldBenedikt Peetz
2025-06-17refactor(yt_dlp/logging): Avoid adding to the `__all__` listBenedikt Peetz
This seems to have no apparent effect on anything. As such I went ahead and removed this dead code.
2025-06-17fix(yt_dlp): Typos in stringsBenedikt Peetz
2025-06-17fix(yt_dlp/post_processors): Register in pythonBenedikt Peetz
We need to tell yt_dlp about our post processors, as they would otherwise not take full effect. For example, changing the title would previously only have changed the title in the *in-memory* info json, the actual file on disk (video and .info.json) would still have the old title, as yt_dlp did not know about our post processor. Registering it via their api also has the upside of being able to determine when to run.
2025-06-17fix(yt_dlp/post_processors/dearrow): Migrate to curl for api requestsBenedikt Peetz
The reqwest crate will panic if it is blockingly run inside another executor. But we cannot make this function async, as the whole api is forced to be sync by python ffi.
2025-06-16fix(yt_dlp/): Include the frozen python stdlibBenedikt Peetz
This avoids the dependency on a real std-library (i.e., python3) at runtime.
2025-06-16style(treewide): ReformatBenedikt Peetz
2025-06-16chore(treewide): Add missing copyright headersBenedikt Peetz
2025-06-16style(yt/select): Apply clippy's suggestionsBenedikt Peetz
2025-06-16fix(yt/update): Also handle the newly introduced error conditionsBenedikt Peetz
2025-06-16feat(yt_dlp): Support a DeArrow post processorBenedikt Peetz
2025-06-16refactor(yt_dlp/lib): De-duplicate the info json sanitize codeBenedikt Peetz
2025-06-16refactor(yt_dlp/lib): Explicitly convert python exceptions into an errorBenedikt Peetz
This avoids having to wrap all blocks into a `match` statement.
2025-06-16refactor(yt/select/selection_file): Migrate from `trinitry` to `shlex`Benedikt Peetz
shlex is better maintained, and _actually_ meant for this purpose .
2025-06-16test(yt/cli): Test the CLIBenedikt Peetz
2025-06-16fix(libmpv2-sys): Avoid generating comments, that confuse rustdocBenedikt Peetz
2025-06-16fix(yt/cli): Remove duplicated short flag key (help also uses 'h')Benedikt Peetz
2025-06-16feat(yt/cli): Add support for command line completionsBenedikt Peetz
2025-06-16feat(yt/select/split): Make sorting configurableBenedikt Peetz
I also moved that to a separate subcommand, as we would otherwise have too many `requires`/`conflicts_with` statements.
2025-06-16feat(yt/videos/list): Replace the nucleo matcher with a simple `contains`Benedikt Peetz
The matching behaviour was not predictable at all (probably due to a bad config), which than led to using `yt videos ls | grep -i <query>` instead.
2025-06-15fix(yt/download/get_file_size): Correct deal with `filesize_approx` = NullBenedikt Peetz
2025-06-15fix(yt_dlp/json_{cast,get}): Improve error reportingBenedikt Peetz
2025-06-15fix(yt/update): Correct the progress display in `--grouped` modeBenedikt Peetz
2025-06-15docs(yt/watch/playlist_handler/client_messages): Add TODO about `current_exe`Benedikt Peetz
2025-06-15docs(yt_dlp): Fix typo in `Cargo.toml`'s descriptionBenedikt Peetz
2025-06-15fix(yt_dlp): Avoid writing the json output to diskBenedikt Peetz
There is no point in doing this anymore, as we no longer need to deserialize it.
2025-06-15fix(yt/update/video_entry_to_video): Cast the json objectsBenedikt Peetz
Otherwise, we might encounter very weird behaviour if yt_dlp ever changes the types of these keys.
2025-06-15feat(yt/update): Print a nice progress numberBenedikt 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.
2025-06-15feat(yt/update): Support grouped updatesBenedikt 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.
2025-06-15perf(yt/update/updater): Acknowledge, that `yt_dlp` has a sync APIBenedikt 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.
2025-06-15feat(yt/select): Support a directory selection processBenedikt Peetz
The single file approach becomes unwieldy once one has more open videos.