aboutsummaryrefslogtreecommitdiffstats
path: root/crates/yt_dlp/src (unfollow)
Commit message (Collapse)Author
2025-06-28chore(yt_dlp/package_hacks): Add missing license headersBenedikt 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-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-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-16chore(treewide): Add missing copyright headersBenedikt 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-15fix(yt_dlp/json_{cast,get}): Improve error reportingBenedikt 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-14feat({yt/update,yt_dlp}): Use yt_dlp errors againBenedikt Peetz
This code was temporarily commented out, as I had not migrated it in the pyo3 -> rustpython migration.
2025-06-13feat({yt_dlp,yt}): Migrate from pyo3 to rustpythonBenedikt 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.
2025-03-21chore(yt_dlp/wrappers/info_json): Add additional missing fieldBenedikt Peetz
2025-03-21refactor(yt_dlp): Remove the unneeded `async` from the public functionsBenedikt Peetz
2025-02-22chore(treewide): Add/Update the license headersBenedikt Peetz
2025-02-21chore(crates/yt_dlp/wrappers/info_json): Add further fieldsBenedikt Peetz
2025-02-16style(treewide): Re-formatBenedikt Peetz
2025-02-16fix(crates/yt_dlp/wrappers/info_json): Serialize the `InfoType`s with their ↵Benedikt Peetz
correct name
2025-02-16fix(crates/yt_dlp/wrappers/info_json): Don't serialize `None` valuesBenedikt Peetz
This keeps the jsons, which we internally parse, shorter.
2025-02-16feat(crates/yt_dlp/lib): Wrap `process_ie_result` functionBenedikt Peetz
2025-02-16fix(crates/yt_dlp/lib): Actually resolve the `entries` generator objectBenedikt Peetz
Previously, we just ignored it.
2025-02-16fix(crates/yt_dlp/lib): Swallow all error logs from yt_dlpBenedikt Peetz
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.
2025-02-16fix(crates/yt_dlp/progress_hook): Print the progress to stderrBenedikt Peetz
2025-02-16fix(crates/yt_dlp/error::PythonError): Add the python type as `kind`Benedikt Peetz
2025-02-14chore(crates/yt_dlp/wrappers/info_json): Add further fieldsBenedikt Peetz
2025-02-14test(crates/yt_dlp): Ignore tests that hang foreverBenedikt Peetz
2025-02-14fix(crates/yt_dlp): Actually return errors instead of panicingBenedikt Peetz
2025-02-14fix(crates/yt_dlp): Avoid printing the file extension in the progress displayBenedikt Peetz
The file extension should not be relevant for a user.
2024-12-14fix(yt_dlp/wrappers/info_json): Add further fields to `RequestedDownloads`Benedikt Peetz
2024-12-14fix(yt_dlp/wrappers/info_json): Add missing fields to `Subtitle`Benedikt Peetz
2024-12-14fix(yt_dlp/wrappers/info_json): Treat `Extractor` and `ExtractorKey` as StringsBenedikt Peetz
There are too many possible extractors to mandate hard-coding them in a enumeration.
2024-11-16build(treewide): Update dependenciesBenedikt Peetz
2024-11-04fix(yt_dlp/progress_hook): Mark estimates as suchBenedikt Peetz
Currently, the wildly changing estimate numbers are not differentiated from the valid numbers.
2024-10-29style(treewide): FormatBenedikt Peetz
2024-10-29chore(yt_dlp/wrapper/info_json): Add further structure fieldsBenedikt Peetz
2024-10-29fix(yt_dlp/lib/progress_hook): Avoid overriding previous messagesBenedikt Peetz
Otherwise, the hook would simply cancel the already printed line.
2024-10-19fix(yt_dlp/lib/progress_hook): Estimate `total_byte_size` betterBenedikt Peetz
This still is sort of weird, because the total byte size changes whilst downloading, but it is still immensely better than just putting a `0` there.
2024-10-14test(treewide): Fix, so they compile and ignoreBenedikt Peetz
The tests are just not in an ideal state right now. Running them via `cargo test` still works, but the `yt_dlp` test simply seem to deadlock?
2024-10-14refactor(treewide): Conform to the clippy and rust lintsBenedikt Peetz
2024-10-07fix(crates/yt_dlp/wrappers/info_json): Add further info.json fieldsBenedikt Peetz
2024-10-07feat(crates/yt_dlp): Make saving the downloaded info.json configurableBenedikt Peetz
This avoids having to recompile the application to save the downloaded info.json, and simply requires setting an environment variable.
2024-08-25style(treewide): ReformatBenedikt Peetz