about summary refs log tree commit diff stats
path: root/crates (follow)
Commit message (Collapse)AuthorAge
* perf(yt/update/updater): Acknowledge, that `yt_dlp` has a sync APIBenedikt Peetz3 days
| | | | | | | | | | | | | | | 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.
* feat(yt/select): Support a directory selection processBenedikt Peetz3 days
| | | | The single file approach becomes unwieldy once one has more open videos.
* refactor(yt/select): Split the `select::select` function upBenedikt Peetz3 days
|
* feat(yt/update): Specify subscriptions to update as positional argsBenedikt Peetz4 days
| | | | | Having the `-s/--subscription` flag is pointless, as there are no other flags that could make a positional arg ambiguous.
* feat({yt/update,yt_dlp}): Use yt_dlp errors againBenedikt Peetz4 days
| | | | | This code was temporarily commented out, as I had not migrated it in the pyo3 -> rustpython migration.
* docs(yt/update): Add comment about the `unsmuggle_url` invocationBenedikt Peetz4 days
|
* fix(yt/update): Avoid printing all the subscriptions that are not updatedBenedikt Peetz4 days
| | | | This is just too much noise.
* fix(yt/select/selection_file/duration): Improve the duration parserBenedikt Peetz4 days
| | | | | | | | 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).
* fix(yt/version): Use yt_dlp's native python version implyBenedikt Peetz5 days
| | | | This is just cleaner, compared to running `yt-dlp --version` as command.
* build(treewide): UpdateBenedikt Peetz5 days
|
* refactor(yt): Move to `crates/yt`Benedikt Peetz5 days
| | | | Having one crate outside the `crates` directory is just weird.
* feat({yt_dlp,yt}): Migrate from pyo3 to rustpythonBenedikt Peetz5 days
| | | | | | | | 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.
* chore(yt_dlp/wrappers/info_json): Add additional missing fieldBenedikt Peetz2025-03-21
|
* refactor(yt_dlp): Remove the unneeded `async` from the public functionsBenedikt Peetz2025-03-21
|
* chore(treewide): Migrate to rust edition 2024Benedikt Peetz2025-03-21
| | | | | Even though the diff in the libmpv2 crate is quite big, it really only added `unsafe` blocks to the `unsafe` functions.
* build(treewide): UpdateBenedikt Peetz2025-03-21
|
* chore(treewide): Add/Update the license headersBenedikt Peetz2025-02-22
|
* fix(crates/libmpv2/mpv): Log the setting of propertiesBenedikt Peetz2025-02-21
|
* chore(crates/yt_dlp/wrappers/info_json): Add further fieldsBenedikt Peetz2025-02-21
|
* chore(crates/libmpv2): Make `cargo clippy` happyBenedikt Peetz2025-02-21
|
* style(treewide): Re-formatBenedikt Peetz2025-02-16
|
* build(rustfmt.toml): AddBenedikt Peetz2025-02-16
|
* fix(crates/termsize): Remove all of `clippy`'s warningsBenedikt Peetz2025-02-16
|
* refactor(crates/fmt): Init forked `uu_fmt` libraryBenedikt Peetz2025-02-16
|
* chore(crates/termsize): VendorBenedikt Peetz2025-02-16
|
* fix(crates/yt_dlp/wrappers/info_json): Serialize the `InfoType`s with their ↵Benedikt Peetz2025-02-16
| | | | correct name
* fix(crates/yt_dlp/wrappers/info_json): Don't serialize `None` valuesBenedikt Peetz2025-02-16
| | | | This keeps the jsons, which we internally parse, shorter.
* feat(crates/yt_dlp/lib): Wrap `process_ie_result` functionBenedikt Peetz2025-02-16
|
* fix(crates/yt_dlp/lib): Actually resolve the `entries` generator objectBenedikt Peetz2025-02-16
| | | | Previously, we just ignored it.
* fix(crates/yt_dlp/lib): Swallow all error logs from yt_dlpBenedikt Peetz2025-02-16
| | | | | | These are already returned as `PythonError`s and thus often printed twice. As such, removing the python print gives the consumer more liberty of how to handle the error.
* fix(crates/yt_dlp/progress_hook): Print the progress to stderrBenedikt Peetz2025-02-16
|
* fix(crates/yt_dlp/error::PythonError): Add the python type as `kind`Benedikt Peetz2025-02-16
|
* fix(crates/libmpv2/Mpv::command): Correctly escape argumentsBenedikt Peetz2025-02-14
| | | | | This allows us to avoid all these ad-hoc command escaping `format!` invocations.
* chore(crates/yt_dlp/wrappers/info_json): Add further fieldsBenedikt Peetz2025-02-14
|
* test(crates/yt_dlp): Ignore tests that hang foreverBenedikt Peetz2025-02-14
|
* fix(crates/yt_dlp): Actually return errors instead of panicingBenedikt Peetz2025-02-14
|
* fix(crates/yt_dlp): Avoid printing the file extension in the progress displayBenedikt Peetz2025-02-14
| | | | The file extension should not be relevant for a user.
* fix(crates/libmpv2): Improve the error message for the `RawError`Benedikt Peetz2025-02-14
| | | | | Additionally, this commits migrates the error away from `thiserror`, simply because the crate is not needed at this scale.
* build(treewide): UpdateBenedikt Peetz2025-02-14
|
* fix(yt_dlp/wrappers/info_json): Add further fields to `RequestedDownloads`Benedikt Peetz2024-12-14
|
* build(treewide): UpdateBenedikt Peetz2024-12-14
|
* fix(yt_dlp/wrappers/info_json): Add missing fields to `Subtitle`Benedikt Peetz2024-12-14
|
* fix(yt_dlp/wrappers/info_json): Treat `Extractor` and `ExtractorKey` as StringsBenedikt Peetz2024-12-14
| | | | | There are too many possible extractors to mandate hard-coding them in a enumeration.
* build(treewide): Update dependenciesBenedikt Peetz2024-11-16
|
* build(treewide): UpdateBenedikt Peetz2024-11-04
|
* fix(yt_dlp/progress_hook): Mark estimates as suchBenedikt Peetz2024-11-04
| | | | | Currently, the wildly changing estimate numbers are not differentiated from the valid numbers.
* fix(yt/download): Only print changed bytes sizes, on changed stringBenedikt Peetz2024-11-04
| | | | | | 2_000_000_000 and 2_000_000_001 cache sizes are not the same, but will both print out "1.86 GiB". Obviously, notifying the user about this change is rather counter-productive.
* style(treewide): FormatBenedikt Peetz2024-10-29
|
* chore(yt_dlp/wrapper/info_json): Add further structure fieldsBenedikt Peetz2024-10-29
|
* fix(yt_dlp/lib/progress_hook): Avoid overriding previous messagesBenedikt Peetz2024-10-29
| | | | Otherwise, the hook would simply cancel the already printed line.