From 279f619ab441eadbcf7d86adcf02cfed1ac2d916 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Thu, 24 Jul 2025 21:50:38 +0200 Subject: chore(version): v1.8.0 --- Cargo.lock | 16 +++--- Cargo.toml | 2 +- NEWS.md | 78 +++++++++++++++++++++++++++ crates/yt/src/select/mod.rs | 1 - crates/yt_dlp/crates/pyo3-pylogger/Cargo.toml | 2 +- 5 files changed, 88 insertions(+), 11 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3381c35..5958efa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -357,7 +357,7 @@ checksum = "b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75" [[package]] name = "colors" -version = "1.7.1" +version = "1.8.0" [[package]] name = "concurrent-queue" @@ -1316,7 +1316,7 @@ checksum = "f9fbbcab51052fe104eb5e5d351cf728d30a5be1fe14d9be8a3b097481fb97de" [[package]] name = "libmpv2" -version = "1.7.1" +version = "1.8.0" dependencies = [ "crossbeam", "libmpv2-sys", @@ -1326,7 +1326,7 @@ dependencies = [ [[package]] name = "libmpv2-sys" -version = "1.7.1" +version = "1.8.0" dependencies = [ "bindgen", ] @@ -1845,7 +1845,7 @@ dependencies = [ [[package]] name = "pyo3-pylogger" -version = "0.5.0" +version = "1.8.0" dependencies = [ "log", "phf", @@ -2611,7 +2611,7 @@ dependencies = [ [[package]] name = "termsize" -version = "1.7.1" +version = "1.8.0" dependencies = [ "libc", "winapi", @@ -2946,7 +2946,7 @@ checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" [[package]] name = "uu_fmt" -version = "1.7.1" +version = "1.8.0" dependencies = [ "unicode-width", ] @@ -3481,7 +3481,7 @@ dependencies = [ [[package]] name = "yt" -version = "1.7.1" +version = "1.8.0" dependencies = [ "anyhow", "blake3", @@ -3515,7 +3515,7 @@ dependencies = [ [[package]] name = "yt_dlp" -version = "1.7.1" +version = "1.8.0" dependencies = [ "curl", "log", diff --git a/Cargo.toml b/Cargo.toml index 1de1b6f..7128bec 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,7 @@ members = [ [workspace.package] edition = "2024" -version = "1.7.1" +version = "1.8.0" rust-version = "1.85.0" authors = ["Benedikt Peetz "] repository = "https://git.vhack.eu/soispha/clients/yt" diff --git a/NEWS.md b/NEWS.md index a0715aa..9788514 100644 --- a/NEWS.md +++ b/NEWS.md @@ -14,6 +14,84 @@ If not, see . All notable changes to this project will be documented in this file. See [conventional commits](https://www.conventionalcommits.org/) for commit guidelines. - - - +## [v1.8.0](https://git.foss-syndicate.org/soispha/clients/yt/compare/4276f312926c0b166967066ca06887d42e362561..v1.8.0) - 2025-07-24 +#### Bug Fixes +- **(crates/yt)** Correct imports - ([ac99460](https://git.foss-syndicate.org/soispha/clients/yt/commit/ac99460ed65126d32160ac12641f211d9162db91)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt)** **Always** honor the `config.global.display_colors` config setting - ([e2e88fd](https://git.foss-syndicate.org/soispha/clients/yt/commit/e2e88fdabe9bfb3ed236983e6e737b9790d50cd2)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt)** Add stuff that was missed - ([f09ad6c](https://git.foss-syndicate.org/soispha/clients/yt/commit/f09ad6c85f8d4f3de73de895f370b5773b63177a)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt/cli)** Use the correct `--plackback-speed` option name - ([bda2fd6](https://git.foss-syndicate.org/soispha/clients/yt/commit/bda2fd6e886ae9f699708fd6d6848d9a11bba423)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt/commands)** Add the actual `implm` wrapper - ([1fdae07](https://git.foss-syndicate.org/soispha/clients/yt/commit/1fdae07aa66b298db23cb5f85b41da4a4f0c539b)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt/commands/database)** Correctly format the default for `--kind` - ([51bec16](https://git.foss-syndicate.org/soispha/clients/yt/commit/51bec161d856735bb24545055b9414a0fb8ef9b6)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt/commands/select)** Allow configuring the `yt select url` opener - ([994971a](https://git.foss-syndicate.org/soispha/clients/yt/commit/994971a56d50e8bb6d01583ac71fee90463e855d)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt/config)** Avoid module name re-use in `watch` config - ([dc09734](https://git.foss-syndicate.org/soispha/clients/yt/commit/dc097347be5077b56a70f79c6f06b56a919232ff)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt/config)** Ensure that the download_dir is created - ([59608b3](https://git.foss-syndicate.org/soispha/clients/yt/commit/59608b3ee2473cc2d2b35b286168c932f0c78f2d)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt/db/insert/maintenance)** Re-init - ([ee48fa7](https://git.foss-syndicate.org/soispha/clients/yt/commit/ee48fa727afd1927f20b5d0491344f4afb03bd2e)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt/db/insert/playlist)** Account for playlist_len == 0 - ([2c0e68f](https://git.foss-syndicate.org/soispha/clients/yt/commit/2c0e68f39296e5ab180e28d90c3076cf71dfc080)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt/downloader)** Correctly treat the download as blocking - ([507c961](https://git.foss-syndicate.org/soispha/clients/yt/commit/507c9611232e7b820789ec776159c703acd499ab)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt/select)** Correctly open the persistent file in `select split` - ([e209cce](https://git.foss-syndicate.org/soispha/clients/yt/commit/e209cceacac0d6ee4051d8bb3dce0ad97f2f474d)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt/storage/db/videos/comments)** Don't always associate a reply with its base - ([98c3984](https://git.foss-syndicate.org/soispha/clients/yt/commit/98c3984e1e15a3b98d1eeb191809d1b1ae7be119)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt/storage/migrate)** Merge the `videos` and `video_options` tables - ([e76c029](https://git.foss-syndicate.org/soispha/clients/yt/commit/e76c029e3392283fe0c230bba01a236b71089bbe)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt/update)** Remove the `--grouped` update support - ([32cb3cd](https://git.foss-syndicate.org/soispha/clients/yt/commit/32cb3cd0ac414490e9bd614f8faa59a5bb9ca4e2)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt/{commands/playlist,videos/format_video})** Correctly calculate watch percent - ([ca62bbb](https://git.foss-syndicate.org/soispha/clients/yt/commit/ca62bbb3e2455d4d832b4b359e7247deebf7f5c1)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(nix/package)** Update to include the newest changes - ([a201b66](https://git.foss-syndicate.org/soispha/clients/yt/commit/a201b665bb05ec90622d9850863367e27881e036)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(treewide)** Use `json_try_get!` instead of `json.get(..).map(|| ..)` - ([a9fddbe](https://git.foss-syndicate.org/soispha/clients/yt/commit/a9fddbeebf428eb57c60afab96fbbd38629a636e)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +#### Build system +- **(.cargo/cargo.toml)** Remove pointless `PYO3_PATH` - ([4276f31](https://git.foss-syndicate.org/soispha/clients/yt/commit/4276f312926c0b166967066ca06887d42e362561)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(.envrc)** Set the `PYO3_PYTHON` variable again - ([2e4261a](https://git.foss-syndicate.org/soispha/clients/yt/commit/2e4261a0d28f11abc0bf4df55a9775ad045cd028)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(Cargo.lock)** Update - ([cf8ca00](https://git.foss-syndicate.org/soispha/clients/yt/commit/cf8ca007dadf71af9163d40f3ca741992ad80a52)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(Cargo.toml)** Update to include new changes - ([72445e1](https://git.foss-syndicate.org/soispha/clients/yt/commit/72445e192409d6d628f9af91fa08f3a69c02e459)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt/Cargo.toml)** Remove now pointless `owo-colors` dep - ([211e0bd](https://git.foss-syndicate.org/soispha/clients/yt/commit/211e0bd88d3902e5226022974e3263f34e3a1aa3)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(treewide)** Update - ([58dfb43](https://git.foss-syndicate.org/soispha/clients/yt/commit/58dfb436de0ae70540574195dc113f07e97483b4)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **({update.sh,crates/{libmpv2,yt_dlp}/update.sh})** Remove pointless update instructions - ([ab8605a](https://git.foss-syndicate.org/soispha/clients/yt/commit/ab8605a62fc88255dbcc079a16102f17dbe5e704)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +#### Documentation +- **(contrib/external_commands_script.sh)** Init - ([ebc1fff](https://git.foss-syndicate.org/soispha/clients/yt/commit/ebc1fff767e4a94de1f9f4db27dc955d0748a4dd)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/libmpv2)** Correctly format doc-test - ([d6e9378](https://git.foss-syndicate.org/soispha/clients/yt/commit/d6e937812c26368c594b1e0be036f167be2e7e5d)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +#### Features +- **(crates/yt)** Separate all commands from their implementation code - ([c4524db](https://git.foss-syndicate.org/soispha/clients/yt/commit/c4524db090d2d31af8bc3e7ec64c1ea9f5ec72aa)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt)** Support a `--format` argument for most commands with output - ([d6e1711](https://git.foss-syndicate.org/soispha/clients/yt/commit/d6e17110dae3f1afe35415065e9a08d0f90f2592)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt/commands/cache)** Init - ([a902e8e](https://git.foss-syndicate.org/soispha/clients/yt/commit/a902e8e273262b08a7dbbd3c611d7153d4fa9b4e)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt/commands/database)** Init, to show the txn_log - ([761560f](https://git.foss-syndicate.org/soispha/clients/yt/commit/761560fe7b3d2e5cbc1fd942ea7bb84d440459fe)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt/commands/show)** Also provide thumbnail and info screen - ([5ccf617](https://git.foss-syndicate.org/soispha/clients/yt/commit/5ccf61730945e98f36a3e8621b22cfd3be4ab4eb)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt/commands/watch/mpv_commands)** Hook-up the new show commands - ([99d4f68](https://git.foss-syndicate.org/soispha/clients/yt/commit/99d4f688868ee664470b13a0d61ac65832263bab)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt/select)** Print the currently processed line as progress - ([d8000c8](https://git.foss-syndicate.org/soispha/clients/yt/commit/d8000c8591a4886023aaf52b9298147c67449932)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt/storage)** Migrate inserts to operations and use methods - ([e4d6fc0](https://git.foss-syndicate.org/soispha/clients/yt/commit/e4d6fc04f60cf7b8173df7f261428b25d009ba39)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt/storage/db/insert)** Track all inserted operations - ([f6eb32a](https://git.foss-syndicate.org/soispha/clients/yt/commit/f6eb32ae50a21d0d3b0ed0e992f3871d59966743)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt/subscribe)** Support a `--no-check` argument - ([45a4507](https://git.foss-syndicate.org/soispha/clients/yt/commit/45a45074e1afe0254d7e732d03f5ba29e6b53030)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt/update)** Make the concurrency configurable - ([6095c67](https://git.foss-syndicate.org/soispha/clients/yt/commit/6095c678c42c20810eac0dd6f4fa371199f3ad7a)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt/watch)** Make the time between watch progress saves configurable - ([7dc1f2d](https://git.foss-syndicate.org/soispha/clients/yt/commit/7dc1f2d302b176dc11d2680d7a0fd8d710da6e23)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt/watch)** Support `--headless` and `--provide-ipc-socket` flags - ([8f6d3d0](https://git.foss-syndicate.org/soispha/clients/yt/commit/8f6d3d07f192c3be5348493358c82b697ee26392)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +#### Miscellaneous Chores +- **(crates/yt/Cargo.toml)** Add `pretty-assertions` for tests - ([9b018e2](https://git.foss-syndicate.org/soispha/clients/yt/commit/9b018e276a216e64ae1ebb446ab49a67b7960bff)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(treewide)** Add missing license headers - ([71351b8](https://git.foss-syndicate.org/soispha/clients/yt/commit/71351b83af2cfb142ad536936f613a66059244f6)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +#### Performance Improvements +- **(crates/yt/db/extractor_hash/realize)** Allow passing in a `all_hashes` - ([c254ed0](https://git.foss-syndicate.org/soispha/clients/yt/commit/c254ed0c7d098cf3224e004a4b13a11632e432a3)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +#### Refactoring +- **(crates/bytes)** Move into yt - ([66d56d7](https://git.foss-syndicate.org/soispha/clients/yt/commit/66d56d7a2b64c5ed13860d809d9bf35d86292df2)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/colors)** Don't expose the custom colours module - ([57520fd](https://git.foss-syndicate.org/soispha/clients/yt/commit/57520fd2c02ec4e09d0714b870de6968ac7f6378)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt)** Allow `missing_panic_docs` and use expect - ([e60cf47](https://git.foss-syndicate.org/soispha/clients/yt/commit/e60cf473b3ba1b5c0295d69e93e7d266f62ed60a)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt)** Use the new storage layer - ([95ccd01](https://git.foss-syndicate.org/soispha/clients/yt/commit/95ccd01d26c6664c9917332d4f19c949dfb905cd)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt)** Make every `pub` item `pub(crate)` - ([c3abafd](https://git.foss-syndicate.org/soispha/clients/yt/commit/c3abafd4878df886dc8765a048cb0b70f282f1f3)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt/commands)** Restrict visibility to itself - ([ed9956b](https://git.foss-syndicate.org/soispha/clients/yt/commit/ed9956b784b087f1610f472954339990f79eec49)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt/comments)** Remove dead code - ([860798a](https://git.foss-syndicate.org/soispha/clients/yt/commit/860798a28518b8dccd28433b34102961a0e09045)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt/config)** Always use imported paths in config dec - ([4632928](https://git.foss-syndicate.org/soispha/clients/yt/commit/46329283ef91d023c07aecd856889d496dc69471)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt/config)** Use a macro to generate the config parsing code - ([9753705](https://git.foss-syndicate.org/soispha/clients/yt/commit/97537059b44f5ed336a915a1ba805be215cf6566)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt/constants)** Remove empty module - ([2b61c8b](https://git.foss-syndicate.org/soispha/clients/yt/commit/2b61c8bbb32524ac63ff8e7e814091707a03ef4e)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt/db/insert::Commitable)** Make `Debug` a dependency - ([7ec9b54](https://git.foss-syndicate.org/soispha/clients/yt/commit/7ec9b549510db0e96d5d0b9019ee0e6689e3952d)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt/download/progress_hook)** Use `json_{get,cast}` and owu-colors - ([3c11d06](https://git.foss-syndicate.org/soispha/clients/yt/commit/3c11d068e438da22375a9d0af9abb81c738ebcbb)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt/src/ansi_escape_codes)** Use better name for `erase_in_display_from_cursor` - ([3737b65](https://git.foss-syndicate.org/soispha/clients/yt/commit/3737b653725c2e6ad5323cf6caafcd6e59a938f6)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt_dlp)** Port to `pyo3` again - ([82277ca](https://git.foss-syndicate.org/soispha/clients/yt/commit/82277ca7513eff82365ed54fe9836aae5bd45fe1)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +#### Style +- **(treewide)** Format - ([19d3c02](https://git.foss-syndicate.org/soispha/clients/yt/commit/19d3c02396ac1c00742e50e60a0a840fbfade1ac)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +#### Tests +- **(crates/libmpv2)** Avoid compiling a doc-test - ([8f2dc82](https://git.foss-syndicate.org/soispha/clients/yt/commit/8f2dc825461ad3006c3f8bdfcb9f3b5048fdb861)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt)** Add basic integration tests - ([234b910](https://git.foss-syndicate.org/soispha/clients/yt/commit/234b9105e097fb63f636bc05ac2f471c001c3aac)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt/testenv/run/run_piped)** Finalize the second command after the first one - ([1ffbeef](https://git.foss-syndicate.org/soispha/clients/yt/commit/1ffbeefff7f3817e2dec72ec06c2f139dbaca7ac)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt/tests/_testenv)** Store `Child`s instead of PIDs - ([7cc99ec](https://git.foss-syndicate.org/soispha/clients/yt/commit/7cc99ec385857dc6e33072f9e7865ee2a93a8d69)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt/tests/_testenv::init)** Use appropriate atomic u64 type - ([4e09daf](https://git.foss-syndicate.org/soispha/clients/yt/commit/4e09dafa7a213ce2fcafe7d810cf3ae1f5f9bdb0)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) +- **(crates/yt/tests/watch/focus_switch.rs)** This test simply lacks its purpose - ([889e0b1](https://git.foss-syndicate.org/soispha/clients/yt/commit/889e0b10424542246de14b6a3dcadf56cd46424b)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) + +- - - + ## [v1.7.1](https://git.foss-syndicate.org/soispha/clients/yt/compare/69d1f92c9ff5e76c0c2b91641962f9e21afe2ded..v1.7.1) - 2025-06-28 #### Bug Fixes - **(yt/download/progress_hook)** Remove superfluous apostrophes - ([92e3367](https://git.foss-syndicate.org/soispha/clients/yt/commit/92e3367fbc93b67b2db9d7296630d299294e4c13)) - [@bpeetz](https://git.foss-syndicate.org/bpeetz) diff --git a/crates/yt/src/select/mod.rs b/crates/yt/src/select/mod.rs index 91940ce..b02677f 100644 --- a/crates/yt/src/select/mod.rs +++ b/crates/yt/src/select/mod.rs @@ -11,7 +11,6 @@ pub(crate) mod duration; - // // FIXME: There should be no reason why we need to re-run yt, just to get the help string. But I've // // yet to find a way to do it without the extra exec <2024-08-20> // async fn get_help() -> Result { diff --git a/crates/yt_dlp/crates/pyo3-pylogger/Cargo.toml b/crates/yt_dlp/crates/pyo3-pylogger/Cargo.toml index 6375528..28dfacd 100644 --- a/crates/yt_dlp/crates/pyo3-pylogger/Cargo.toml +++ b/crates/yt_dlp/crates/pyo3-pylogger/Cargo.toml @@ -10,7 +10,7 @@ [package] name = "pyo3-pylogger" -version = "0.5.0" +version = "1.8.0" edition = "2021" authors = [ "Dylan Bobby Storey ", -- cgit 1.4.1