From 71351b83af2cfb142ad536936f613a66059244f6 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Thu, 24 Jul 2025 17:15:22 +0200 Subject: chore(treewide): Add missing license headers --- LICENSES/Apache-2.0.txt | 73 ++++++++++++++++++++++ contrib/external_commands_script.sh | 10 +++ crates/colors/src/custom.rs | 10 +++ crates/colors/src/lib.rs | 10 +++ crates/colors/src/list.rs | 10 +++ crates/colors/src/support.rs | 10 +++ crates/yt/src/commands/cache/implm.rs | 10 +++ crates/yt/src/commands/cache/mod.rs | 10 +++ crates/yt/src/commands/config/implm.rs | 10 +++ crates/yt/src/commands/config/mod.rs | 10 +++ crates/yt/src/commands/database/implm.rs | 10 +++ crates/yt/src/commands/database/mod.rs | 10 +++ crates/yt/src/commands/download/implm/mod.rs | 10 +++ crates/yt/src/commands/download/mod.rs | 10 +++ crates/yt/src/commands/implm.rs | 10 +++ crates/yt/src/commands/mod.rs | 10 +++ crates/yt/src/commands/playlist/implm.rs | 10 +++ crates/yt/src/commands/playlist/mod.rs | 10 +++ .../src/commands/select/implm/fs_generators/mod.rs | 10 +++ crates/yt/src/commands/select/implm/mod.rs | 10 +++ .../yt/src/commands/select/implm/standalone/mod.rs | 10 +++ crates/yt/src/commands/select/mod.rs | 10 +++ crates/yt/src/commands/show/implm/mod.rs | 10 +++ crates/yt/src/commands/show/mod.rs | 10 +++ crates/yt/src/commands/status/implm.rs | 10 +++ crates/yt/src/commands/status/mod.rs | 10 +++ crates/yt/src/commands/subscriptions/implm.rs | 10 +++ crates/yt/src/commands/subscriptions/mod.rs | 10 +++ crates/yt/src/commands/update/implm/mod.rs | 10 +++ crates/yt/src/commands/update/implm/updater.rs | 10 +++ crates/yt/src/commands/update/mod.rs | 10 +++ crates/yt/src/commands/videos/implm.rs | 10 +++ crates/yt/src/commands/videos/mod.rs | 10 +++ crates/yt/src/commands/watch/implm/mod.rs | 10 +++ crates/yt/src/commands/watch/mod.rs | 10 +++ crates/yt/src/config/mod.rs | 10 +++ crates/yt/src/config/non_empty_vec.rs | 10 +++ crates/yt/src/config/support.rs | 10 +++ crates/yt/src/shared/mod.rs | 10 +++ crates/yt/src/storage/db/get/extractor_hash.rs | 10 +++ crates/yt/src/storage/db/get/mod.rs | 10 +++ crates/yt/src/storage/db/get/playlist.rs | 10 +++ crates/yt/src/storage/db/get/subscription.rs | 10 +++ crates/yt/src/storage/db/get/txn_log.rs | 10 +++ crates/yt/src/storage/db/get/video/mod.rs | 10 +++ crates/yt/src/storage/db/insert/maintenance.rs | 10 +++ crates/yt/src/storage/db/insert/mod.rs | 10 +++ crates/yt/src/storage/db/insert/playlist.rs | 10 +++ crates/yt/src/storage/db/insert/subscription.rs | 10 +++ crates/yt/src/storage/db/insert/video/mod.rs | 10 +++ crates/yt/src/storage/db/mod.rs | 10 +++ crates/yt/src/storage/db/playlist/mod.rs | 10 +++ crates/yt/src/storage/db/subscription.rs | 10 +++ crates/yt/src/storage/db/txn_log.rs | 10 +++ crates/yt/src/storage/db/video/comments/display.rs | 10 +++ crates/yt/src/storage/db/video/comments/mod.rs | 10 +++ crates/yt/src/storage/db/video/comments/raw.rs | 10 +++ crates/yt/src/storage/db/video/comments/tests.rs | 10 +++ crates/yt/src/storage/db/video/mod.rs | 10 +++ crates/yt/src/yt_dlp/mod.rs | 10 +++ crates/yt/tests/_testenv/init.rs | 10 +++ crates/yt/tests/_testenv/mod.rs | 10 +++ crates/yt/tests/_testenv/run.rs | 10 +++ crates/yt/tests/_testenv/util.rs | 10 +++ crates/yt/tests/select/base.rs | 10 +++ crates/yt/tests/select/file.rs | 10 +++ crates/yt/tests/select/mod.rs | 10 +++ crates/yt/tests/select/options.rs | 10 +++ .../subscriptions/import_export/golden.txt.license | 9 +++ crates/yt/tests/subscriptions/import_export/mod.rs | 10 +++ crates/yt/tests/subscriptions/mod.rs | 10 +++ .../naming_subscriptions/golden.txt.license | 9 +++ .../subscriptions/naming_subscriptions/mod.rs | 10 +++ crates/yt/tests/tests.rs | 10 +++ crates/yt/tests/videos/downloading.rs | 10 +++ crates/yt/tests/videos/mod.rs | 10 +++ crates/yt/tests/watch/focus_switch.rs | 10 +++ crates/yt/tests/watch/mod.rs | 10 +++ crates/yt_dlp/crates/pyo3-pylogger/.gitignore | 10 +++ crates/yt_dlp/crates/pyo3-pylogger/Cargo.toml | 10 +++ crates/yt_dlp/crates/pyo3-pylogger/README.md | 12 ++++ crates/yt_dlp/crates/pyo3-pylogger/src/kv.rs | 10 +++ crates/yt_dlp/crates/pyo3-pylogger/src/level.rs | 10 +++ crates/yt_dlp/crates/pyo3-pylogger/src/lib.rs | 10 +++ crates/yt_dlp/crates/pyo3-pylogger/update.sh | 10 +++ crates/yt_dlp/examples/main.rs | 10 +++ 86 files changed, 923 insertions(+) create mode 100644 LICENSES/Apache-2.0.txt create mode 100644 crates/yt/tests/subscriptions/import_export/golden.txt.license create mode 100644 crates/yt/tests/subscriptions/naming_subscriptions/golden.txt.license diff --git a/LICENSES/Apache-2.0.txt b/LICENSES/Apache-2.0.txt new file mode 100644 index 0000000..137069b --- /dev/null +++ b/LICENSES/Apache-2.0.txt @@ -0,0 +1,73 @@ +Apache License +Version 2.0, January 2004 +http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + +"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. + +"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. + +"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. + +"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. + +"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. + +"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. + +"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). + +"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. + +"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." + +"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: + + (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. + + You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + +To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/contrib/external_commands_script.sh b/contrib/external_commands_script.sh index 2e59e94..219eae7 100755 --- a/contrib/external_commands_script.sh +++ b/contrib/external_commands_script.sh @@ -1,5 +1,15 @@ #! /usr/bin/env sh +# yt - A fully featured command line YouTube client +# +# Copyright (C) 2025 Benedikt Peetz +# SPDX-License-Identifier: GPL-3.0-or-later +# +# This file is part of Yt. +# +# You should have received a copy of the License along with this program. +# If not, see . + riverctl focus-output next alacritty --title "floating please" --command "$@" diff --git a/crates/colors/src/custom.rs b/crates/colors/src/custom.rs index 2adcfa9..fd6b7b3 100644 --- a/crates/colors/src/custom.rs +++ b/crates/colors/src/custom.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + // Taken from // at 2025-07-16T18:05:55 CEST. diff --git a/crates/colors/src/lib.rs b/crates/colors/src/lib.rs index 71a5f34..663e19a 100644 --- a/crates/colors/src/lib.rs +++ b/crates/colors/src/lib.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use std::fmt::{Display, Write}; use crate::{ diff --git a/crates/colors/src/list.rs b/crates/colors/src/list.rs index ecbe465..35fcb83 100644 --- a/crates/colors/src/list.rs +++ b/crates/colors/src/list.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use crate::support::prepend_input; prepend_input! { diff --git a/crates/colors/src/support.rs b/crates/colors/src/support.rs index b42ce5d..3c3f87d 100644 --- a/crates/colors/src/support.rs +++ b/crates/colors/src/support.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + pub(super) const CSI: &str = "\x1b["; pub(super) const CSE: &str = "m"; diff --git a/crates/yt/src/commands/cache/implm.rs b/crates/yt/src/commands/cache/implm.rs index f71fe94..fd0fbce 100644 --- a/crates/yt/src/commands/cache/implm.rs +++ b/crates/yt/src/commands/cache/implm.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use crate::{ app::App, commands::CacheCommand, diff --git a/crates/yt/src/commands/cache/mod.rs b/crates/yt/src/commands/cache/mod.rs index b6afa39..4ed4b40 100644 --- a/crates/yt/src/commands/cache/mod.rs +++ b/crates/yt/src/commands/cache/mod.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use clap::Subcommand; mod implm; diff --git a/crates/yt/src/commands/config/implm.rs b/crates/yt/src/commands/config/implm.rs index 47b7fee..00c28a9 100644 --- a/crates/yt/src/commands/config/implm.rs +++ b/crates/yt/src/commands/config/implm.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use crate::{app::App, commands::config::ConfigCommand}; use anyhow::Result; diff --git a/crates/yt/src/commands/config/mod.rs b/crates/yt/src/commands/config/mod.rs index ff97aab..503b4f7 100644 --- a/crates/yt/src/commands/config/mod.rs +++ b/crates/yt/src/commands/config/mod.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use clap::Parser; mod implm; diff --git a/crates/yt/src/commands/database/implm.rs b/crates/yt/src/commands/database/implm.rs index 8d81f2e..07d346b 100644 --- a/crates/yt/src/commands/database/implm.rs +++ b/crates/yt/src/commands/database/implm.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use crate::{ app::App, commands::DatabaseCommand, diff --git a/crates/yt/src/commands/database/mod.rs b/crates/yt/src/commands/database/mod.rs index 92b120f..06e3169 100644 --- a/crates/yt/src/commands/database/mod.rs +++ b/crates/yt/src/commands/database/mod.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use std::fmt::{self, Display}; use clap::{Subcommand, ValueEnum}; diff --git a/crates/yt/src/commands/download/implm/mod.rs b/crates/yt/src/commands/download/implm/mod.rs index f681aea..c74a909 100644 --- a/crates/yt/src/commands/download/implm/mod.rs +++ b/crates/yt/src/commands/download/implm/mod.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use std::sync::Arc; use crate::{ diff --git a/crates/yt/src/commands/download/mod.rs b/crates/yt/src/commands/download/mod.rs index 432865f..15026ba 100644 --- a/crates/yt/src/commands/download/mod.rs +++ b/crates/yt/src/commands/download/mod.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use anyhow::Context; use clap::Parser; diff --git a/crates/yt/src/commands/implm.rs b/crates/yt/src/commands/implm.rs index ff29ce5..7c60c6a 100644 --- a/crates/yt/src/commands/implm.rs +++ b/crates/yt/src/commands/implm.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use std::sync::Arc; use crate::commands::Command; diff --git a/crates/yt/src/commands/mod.rs b/crates/yt/src/commands/mod.rs index 2b847f7..431acef 100644 --- a/crates/yt/src/commands/mod.rs +++ b/crates/yt/src/commands/mod.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use std::{ffi::OsStr, thread}; use clap::Subcommand; diff --git a/crates/yt/src/commands/playlist/implm.rs b/crates/yt/src/commands/playlist/implm.rs index 52a0977..603184b 100644 --- a/crates/yt/src/commands/playlist/implm.rs +++ b/crates/yt/src/commands/playlist/implm.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use std::{fmt::Write, path::Path}; use crate::{ diff --git a/crates/yt/src/commands/playlist/mod.rs b/crates/yt/src/commands/playlist/mod.rs index 6f7b255..8d3407d 100644 --- a/crates/yt/src/commands/playlist/mod.rs +++ b/crates/yt/src/commands/playlist/mod.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use clap::Parser; mod implm; diff --git a/crates/yt/src/commands/select/implm/fs_generators/mod.rs b/crates/yt/src/commands/select/implm/fs_generators/mod.rs index 8ccda3c..10da032 100644 --- a/crates/yt/src/commands/select/implm/fs_generators/mod.rs +++ b/crates/yt/src/commands/select/implm/fs_generators/mod.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use std::{ collections::HashMap, env, diff --git a/crates/yt/src/commands/select/implm/mod.rs b/crates/yt/src/commands/select/implm/mod.rs index 155012c..f39c77f 100644 --- a/crates/yt/src/commands/select/implm/mod.rs +++ b/crates/yt/src/commands/select/implm/mod.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use crate::{app::App, commands::select::SelectCommand, storage::db::insert::Operations}; use anyhow::Result; diff --git a/crates/yt/src/commands/select/implm/standalone/mod.rs b/crates/yt/src/commands/select/implm/standalone/mod.rs index 8b1008e..9512e32 100644 --- a/crates/yt/src/commands/select/implm/standalone/mod.rs +++ b/crates/yt/src/commands/select/implm/standalone/mod.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use std::io::{Write, stderr}; use crate::{ diff --git a/crates/yt/src/commands/select/mod.rs b/crates/yt/src/commands/select/mod.rs index 3ab2972..db69238 100644 --- a/crates/yt/src/commands/select/mod.rs +++ b/crates/yt/src/commands/select/mod.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use std::{ fmt::{self, Display, Formatter}, str::FromStr, diff --git a/crates/yt/src/commands/show/implm/mod.rs b/crates/yt/src/commands/show/implm/mod.rs index 66f9fa7..a2e40fd 100644 --- a/crates/yt/src/commands/show/implm/mod.rs +++ b/crates/yt/src/commands/show/implm/mod.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use std::{ fs::{self, OpenOptions}, io, diff --git a/crates/yt/src/commands/show/mod.rs b/crates/yt/src/commands/show/mod.rs index fe583c0..60f2e51 100644 --- a/crates/yt/src/commands/show/mod.rs +++ b/crates/yt/src/commands/show/mod.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use clap::Subcommand; mod implm; diff --git a/crates/yt/src/commands/status/implm.rs b/crates/yt/src/commands/status/implm.rs index bdce6ee..dabc5df 100644 --- a/crates/yt/src/commands/status/implm.rs +++ b/crates/yt/src/commands/status/implm.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use std::time::Duration; use crate::{ diff --git a/crates/yt/src/commands/status/mod.rs b/crates/yt/src/commands/status/mod.rs index d333fb4..4a8dee7 100644 --- a/crates/yt/src/commands/status/mod.rs +++ b/crates/yt/src/commands/status/mod.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use clap::Parser; mod implm; diff --git a/crates/yt/src/commands/subscriptions/implm.rs b/crates/yt/src/commands/subscriptions/implm.rs index 6001c85..31b714e 100644 --- a/crates/yt/src/commands/subscriptions/implm.rs +++ b/crates/yt/src/commands/subscriptions/implm.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use std::str::FromStr; use crate::{ diff --git a/crates/yt/src/commands/subscriptions/mod.rs b/crates/yt/src/commands/subscriptions/mod.rs index 57d065b..edd41c6 100644 --- a/crates/yt/src/commands/subscriptions/mod.rs +++ b/crates/yt/src/commands/subscriptions/mod.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use std::path::PathBuf; use clap::Subcommand; diff --git a/crates/yt/src/commands/update/implm/mod.rs b/crates/yt/src/commands/update/implm/mod.rs index 0bb6d99..53c7415 100644 --- a/crates/yt/src/commands/update/implm/mod.rs +++ b/crates/yt/src/commands/update/implm/mod.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use crate::{ app::App, commands::update::{UpdateCommand, implm::updater::Updater}, diff --git a/crates/yt/src/commands/update/implm/updater.rs b/crates/yt/src/commands/update/implm/updater.rs index 3e4bc85..ee61fa1 100644 --- a/crates/yt/src/commands/update/implm/updater.rs +++ b/crates/yt/src/commands/update/implm/updater.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use std::sync::atomic::{AtomicUsize, Ordering}; use anyhow::{Context, Result}; diff --git a/crates/yt/src/commands/update/mod.rs b/crates/yt/src/commands/update/mod.rs index 6c605b4..cb29148 100644 --- a/crates/yt/src/commands/update/mod.rs +++ b/crates/yt/src/commands/update/mod.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use clap::Parser; use clap_complete::ArgValueCompleter; diff --git a/crates/yt/src/commands/videos/implm.rs b/crates/yt/src/commands/videos/implm.rs index 0441b31..2a018c7 100644 --- a/crates/yt/src/commands/videos/implm.rs +++ b/crates/yt/src/commands/videos/implm.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use crate::{ app::App, commands::videos::VideosCommand, diff --git a/crates/yt/src/commands/videos/mod.rs b/crates/yt/src/commands/videos/mod.rs index 298f13d..ca20715 100644 --- a/crates/yt/src/commands/videos/mod.rs +++ b/crates/yt/src/commands/videos/mod.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use clap::{ArgAction, Subcommand}; use crate::storage::db::extractor_hash::LazyExtractorHash; diff --git a/crates/yt/src/commands/watch/implm/mod.rs b/crates/yt/src/commands/watch/implm/mod.rs index 9eba858..8182216 100644 --- a/crates/yt/src/commands/watch/implm/mod.rs +++ b/crates/yt/src/commands/watch/implm/mod.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use std::{ fs, path::PathBuf, diff --git a/crates/yt/src/commands/watch/mod.rs b/crates/yt/src/commands/watch/mod.rs index b106370..ea4c513 100644 --- a/crates/yt/src/commands/watch/mod.rs +++ b/crates/yt/src/commands/watch/mod.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use clap::Parser; mod implm; diff --git a/crates/yt/src/config/mod.rs b/crates/yt/src/config/mod.rs index a19c25c..05bb4cf 100644 --- a/crates/yt/src/config/mod.rs +++ b/crates/yt/src/config/mod.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use std::sync::atomic::{AtomicBool, Ordering}; use crate::config::support::mk_config; diff --git a/crates/yt/src/config/non_empty_vec.rs b/crates/yt/src/config/non_empty_vec.rs index 0ca864b..bd2c5e3 100644 --- a/crates/yt/src/config/non_empty_vec.rs +++ b/crates/yt/src/config/non_empty_vec.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use std::{ collections::VecDeque, fmt::{Display, Write}, diff --git a/crates/yt/src/config/support.rs b/crates/yt/src/config/support.rs index 880eba7..96e7ba4 100644 --- a/crates/yt/src/config/support.rs +++ b/crates/yt/src/config/support.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + macro_rules! mk_config { ( $(use $usage_path:path;)* diff --git a/crates/yt/src/shared/mod.rs b/crates/yt/src/shared/mod.rs index 14e4949..d3cc563 100644 --- a/crates/yt/src/shared/mod.rs +++ b/crates/yt/src/shared/mod.rs @@ -1 +1,11 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + pub(crate) mod bytes; diff --git a/crates/yt/src/storage/db/get/extractor_hash.rs b/crates/yt/src/storage/db/get/extractor_hash.rs index d10b326..c8e150a 100644 --- a/crates/yt/src/storage/db/get/extractor_hash.rs +++ b/crates/yt/src/storage/db/get/extractor_hash.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use anyhow::Result; use blake3::Hash; use sqlx::{SqliteConnection, query}; diff --git a/crates/yt/src/storage/db/get/mod.rs b/crates/yt/src/storage/db/get/mod.rs index 58f1dd6..dca16fc 100644 --- a/crates/yt/src/storage/db/get/mod.rs +++ b/crates/yt/src/storage/db/get/mod.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + pub(crate) mod subscription; pub(crate) mod video; pub(crate) mod extractor_hash; diff --git a/crates/yt/src/storage/db/get/playlist.rs b/crates/yt/src/storage/db/get/playlist.rs index 95a61bf..5094523 100644 --- a/crates/yt/src/storage/db/get/playlist.rs +++ b/crates/yt/src/storage/db/get/playlist.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use crate::{ app::App, storage::db::{ diff --git a/crates/yt/src/storage/db/get/subscription.rs b/crates/yt/src/storage/db/get/subscription.rs index cdb2b9a..16a6e8b 100644 --- a/crates/yt/src/storage/db/get/subscription.rs +++ b/crates/yt/src/storage/db/get/subscription.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use std::collections::HashMap; use crate::{ diff --git a/crates/yt/src/storage/db/get/txn_log.rs b/crates/yt/src/storage/db/get/txn_log.rs index e4a1dcb..1a6df2c 100644 --- a/crates/yt/src/storage/db/get/txn_log.rs +++ b/crates/yt/src/storage/db/get/txn_log.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use crate::{ app::App, storage::db::{insert::Committable, txn_log::TxnLog, video::TimeStamp}, diff --git a/crates/yt/src/storage/db/get/video/mod.rs b/crates/yt/src/storage/db/get/video/mod.rs index 1f847cb..69adb6b 100644 --- a/crates/yt/src/storage/db/get/video/mod.rs +++ b/crates/yt/src/storage/db/get/video/mod.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use std::{fs::File, path::PathBuf}; use anyhow::{Context, Result, bail}; diff --git a/crates/yt/src/storage/db/insert/maintenance.rs b/crates/yt/src/storage/db/insert/maintenance.rs index 6442c48..d87c1ae 100644 --- a/crates/yt/src/storage/db/insert/maintenance.rs +++ b/crates/yt/src/storage/db/insert/maintenance.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use crate::{ app::App, storage::db::{ diff --git a/crates/yt/src/storage/db/insert/mod.rs b/crates/yt/src/storage/db/insert/mod.rs index 60bbc0a..3458608 100644 --- a/crates/yt/src/storage/db/insert/mod.rs +++ b/crates/yt/src/storage/db/insert/mod.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use std::mem; use crate::app::App; diff --git a/crates/yt/src/storage/db/insert/playlist.rs b/crates/yt/src/storage/db/insert/playlist.rs index 2287db9..4d3e140 100644 --- a/crates/yt/src/storage/db/insert/playlist.rs +++ b/crates/yt/src/storage/db/insert/playlist.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use std::{cmp::Ordering, time::Duration}; use anyhow::{Context, Result}; diff --git a/crates/yt/src/storage/db/insert/subscription.rs b/crates/yt/src/storage/db/insert/subscription.rs index 8499966..d25a209 100644 --- a/crates/yt/src/storage/db/insert/subscription.rs +++ b/crates/yt/src/storage/db/insert/subscription.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use crate::storage::db::{ insert::{Committable, Operations}, subscription::{Subscription, Subscriptions}, diff --git a/crates/yt/src/storage/db/insert/video/mod.rs b/crates/yt/src/storage/db/insert/video/mod.rs index 4cc7358..da62e37 100644 --- a/crates/yt/src/storage/db/insert/video/mod.rs +++ b/crates/yt/src/storage/db/insert/video/mod.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use std::{ path::{Path, PathBuf}, time, diff --git a/crates/yt/src/storage/db/mod.rs b/crates/yt/src/storage/db/mod.rs index 5da28ed..f42c3fc 100644 --- a/crates/yt/src/storage/db/mod.rs +++ b/crates/yt/src/storage/db/mod.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + pub(crate) mod get; pub(crate) mod insert; diff --git a/crates/yt/src/storage/db/playlist/mod.rs b/crates/yt/src/storage/db/playlist/mod.rs index 6fca98a..7366e8e 100644 --- a/crates/yt/src/storage/db/playlist/mod.rs +++ b/crates/yt/src/storage/db/playlist/mod.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use std::ops::Add; use crate::storage::db::video::Video; diff --git a/crates/yt/src/storage/db/subscription.rs b/crates/yt/src/storage/db/subscription.rs index eb03e47..c111b52 100644 --- a/crates/yt/src/storage/db/subscription.rs +++ b/crates/yt/src/storage/db/subscription.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use std::collections::HashMap; use anyhow::Result; diff --git a/crates/yt/src/storage/db/txn_log.rs b/crates/yt/src/storage/db/txn_log.rs index 8d6c305..64884b0 100644 --- a/crates/yt/src/storage/db/txn_log.rs +++ b/crates/yt/src/storage/db/txn_log.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use crate::storage::db::{insert::Committable, video::TimeStamp}; pub(crate) struct TxnLog { diff --git a/crates/yt/src/storage/db/video/comments/display.rs b/crates/yt/src/storage/db/video/comments/display.rs index 084e54c..c372603 100644 --- a/crates/yt/src/storage/db/video/comments/display.rs +++ b/crates/yt/src/storage/db/video/comments/display.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use std::fmt::Write; use chrono::{Local, TimeZone}; diff --git a/crates/yt/src/storage/db/video/comments/mod.rs b/crates/yt/src/storage/db/video/comments/mod.rs index e7bd8f5..b89aa63 100644 --- a/crates/yt/src/storage/db/video/comments/mod.rs +++ b/crates/yt/src/storage/db/video/comments/mod.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use std::mem; use regex::{Captures, Regex}; diff --git a/crates/yt/src/storage/db/video/comments/raw.rs b/crates/yt/src/storage/db/video/comments/raw.rs index a79820a..3b7f40f 100644 --- a/crates/yt/src/storage/db/video/comments/raw.rs +++ b/crates/yt/src/storage/db/video/comments/raw.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use serde::{Deserialize, Deserializer}; use url::Url; diff --git a/crates/yt/src/storage/db/video/comments/tests.rs b/crates/yt/src/storage/db/video/comments/tests.rs index 3bd1c73..03e3597 100644 --- a/crates/yt/src/storage/db/video/comments/tests.rs +++ b/crates/yt/src/storage/db/video/comments/tests.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use pretty_assertions::assert_eq; use url::Url; diff --git a/crates/yt/src/storage/db/video/mod.rs b/crates/yt/src/storage/db/video/mod.rs index e768cec..deeb82c 100644 --- a/crates/yt/src/storage/db/video/mod.rs +++ b/crates/yt/src/storage/db/video/mod.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use std::{fmt::Display, path::PathBuf, time::Duration}; use chrono::{DateTime, Utc}; diff --git a/crates/yt/src/yt_dlp/mod.rs b/crates/yt/src/yt_dlp/mod.rs index 0415247..eaa80a1 100644 --- a/crates/yt/src/yt_dlp/mod.rs +++ b/crates/yt/src/yt_dlp/mod.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use std::{borrow::ToOwned, str::FromStr, time::Duration}; use anyhow::{Context, Result}; diff --git a/crates/yt/tests/_testenv/init.rs b/crates/yt/tests/_testenv/init.rs index d797ed8..5970c7c 100644 --- a/crates/yt/tests/_testenv/init.rs +++ b/crates/yt/tests/_testenv/init.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use std::{ env, fs::{self, OpenOptions}, diff --git a/crates/yt/tests/_testenv/mod.rs b/crates/yt/tests/_testenv/mod.rs index 4798d5d..38d1f0a 100644 --- a/crates/yt/tests/_testenv/mod.rs +++ b/crates/yt/tests/_testenv/mod.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + //! This code was taken from *fd* at 30-06-2025. use std::{path::PathBuf, process}; diff --git a/crates/yt/tests/_testenv/run.rs b/crates/yt/tests/_testenv/run.rs index 4df9362..578d823 100644 --- a/crates/yt/tests/_testenv/run.rs +++ b/crates/yt/tests/_testenv/run.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use std::{ collections::HashMap, process::{self, Stdio}, diff --git a/crates/yt/tests/_testenv/util.rs b/crates/yt/tests/_testenv/util.rs index b811bf7..6633fbf 100644 --- a/crates/yt/tests/_testenv/util.rs +++ b/crates/yt/tests/_testenv/util.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use crate::_testenv::TestEnv; use std::{ diff --git a/crates/yt/tests/select/base.rs b/crates/yt/tests/select/base.rs index dddf721..24e198b 100644 --- a/crates/yt/tests/select/base.rs +++ b/crates/yt/tests/select/base.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use std::{collections::HashMap, fs}; use crate::{ diff --git a/crates/yt/tests/select/file.rs b/crates/yt/tests/select/file.rs index 320b27f..b8bd2b5 100644 --- a/crates/yt/tests/select/file.rs +++ b/crates/yt/tests/select/file.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use crate::{ _testenv::util::{self, Subscription}, select::get_videos_in_state, diff --git a/crates/yt/tests/select/mod.rs b/crates/yt/tests/select/mod.rs index 9ee23f5..d7033f8 100644 --- a/crates/yt/tests/select/mod.rs +++ b/crates/yt/tests/select/mod.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use crate::_testenv::TestEnv; mod base; diff --git a/crates/yt/tests/select/options.rs b/crates/yt/tests/select/options.rs index f9456c0..6a0d155 100644 --- a/crates/yt/tests/select/options.rs +++ b/crates/yt/tests/select/options.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use crate::{_testenv::util, select::get_videos_in_state, testenv::TestEnv}; #[test] diff --git a/crates/yt/tests/subscriptions/import_export/golden.txt.license b/crates/yt/tests/subscriptions/import_export/golden.txt.license new file mode 100644 index 0000000..7813eb6 --- /dev/null +++ b/crates/yt/tests/subscriptions/import_export/golden.txt.license @@ -0,0 +1,9 @@ +yt - A fully featured command line YouTube client + +Copyright (C) 2025 Benedikt Peetz +SPDX-License-Identifier: GPL-3.0-or-later + +This file is part of Yt. + +You should have received a copy of the License along with this program. +If not, see . diff --git a/crates/yt/tests/subscriptions/import_export/mod.rs b/crates/yt/tests/subscriptions/import_export/mod.rs index 44d3b8b..1156508 100644 --- a/crates/yt/tests/subscriptions/import_export/mod.rs +++ b/crates/yt/tests/subscriptions/import_export/mod.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use crate::testenv::TestEnv; #[test] diff --git a/crates/yt/tests/subscriptions/mod.rs b/crates/yt/tests/subscriptions/mod.rs index 5b0157f..0b300c5 100644 --- a/crates/yt/tests/subscriptions/mod.rs +++ b/crates/yt/tests/subscriptions/mod.rs @@ -1,2 +1,12 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + mod import_export; mod naming_subscriptions; diff --git a/crates/yt/tests/subscriptions/naming_subscriptions/golden.txt.license b/crates/yt/tests/subscriptions/naming_subscriptions/golden.txt.license new file mode 100644 index 0000000..7813eb6 --- /dev/null +++ b/crates/yt/tests/subscriptions/naming_subscriptions/golden.txt.license @@ -0,0 +1,9 @@ +yt - A fully featured command line YouTube client + +Copyright (C) 2025 Benedikt Peetz +SPDX-License-Identifier: GPL-3.0-or-later + +This file is part of Yt. + +You should have received a copy of the License along with this program. +If not, see . diff --git a/crates/yt/tests/subscriptions/naming_subscriptions/mod.rs b/crates/yt/tests/subscriptions/naming_subscriptions/mod.rs index 255a575..50fe3e4 100644 --- a/crates/yt/tests/subscriptions/naming_subscriptions/mod.rs +++ b/crates/yt/tests/subscriptions/naming_subscriptions/mod.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use crate::testenv::TestEnv; #[test] diff --git a/crates/yt/tests/tests.rs b/crates/yt/tests/tests.rs index 9e6c95a..89c3091 100644 --- a/crates/yt/tests/tests.rs +++ b/crates/yt/tests/tests.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + // Use this, for the background run pids // #![feature(linux_pidfd)] diff --git a/crates/yt/tests/videos/downloading.rs b/crates/yt/tests/videos/downloading.rs index 7cb437c..f026858 100644 --- a/crates/yt/tests/videos/downloading.rs +++ b/crates/yt/tests/videos/downloading.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use crate::{_testenv::util, testenv::TestEnv}; #[test] diff --git a/crates/yt/tests/videos/mod.rs b/crates/yt/tests/videos/mod.rs index 1077d05..6a80761 100644 --- a/crates/yt/tests/videos/mod.rs +++ b/crates/yt/tests/videos/mod.rs @@ -1 +1,11 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + mod downloading; diff --git a/crates/yt/tests/watch/focus_switch.rs b/crates/yt/tests/watch/focus_switch.rs index e2242a8..81246f3 100644 --- a/crates/yt/tests/watch/focus_switch.rs +++ b/crates/yt/tests/watch/focus_switch.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use yt_dlp::json_cast; use crate::{_testenv::util, testenv::TestEnv, watch::MpvControl}; diff --git a/crates/yt/tests/watch/mod.rs b/crates/yt/tests/watch/mod.rs index deea597..7af8b39 100644 --- a/crates/yt/tests/watch/mod.rs +++ b/crates/yt/tests/watch/mod.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use std::{ io::{BufRead, BufReader, Write}, os::unix::net::UnixStream, diff --git a/crates/yt_dlp/crates/pyo3-pylogger/.gitignore b/crates/yt_dlp/crates/pyo3-pylogger/.gitignore index 64f40ab..733c5bc 100644 --- a/crates/yt_dlp/crates/pyo3-pylogger/.gitignore +++ b/crates/yt_dlp/crates/pyo3-pylogger/.gitignore @@ -1,3 +1,13 @@ +# yt - A fully featured command line YouTube client +# +# Copyright (C) 2025 Dylan Bobby Storey , cpu , Warren Snipes +# SPDX-License-Identifier: Apache-2.0 +# +# This file is part of Yt. +# +# You should have received a copy of the License along with this program. +# If not, see . + target Cargo.lock .idea diff --git a/crates/yt_dlp/crates/pyo3-pylogger/Cargo.toml b/crates/yt_dlp/crates/pyo3-pylogger/Cargo.toml index 1deafd9..259ea98 100644 --- a/crates/yt_dlp/crates/pyo3-pylogger/Cargo.toml +++ b/crates/yt_dlp/crates/pyo3-pylogger/Cargo.toml @@ -1,3 +1,13 @@ +# yt - A fully featured command line YouTube client +# +# Copyright (C) 2025 Dylan Bobby Storey , cpu , Warren Snipes +# SPDX-License-Identifier: Apache-2.0 +# +# This file is part of Yt. +# +# You should have received a copy of the License along with this program. +# If not, see . + [package] name = "pyo3-pylogger" version = "0.5.0" diff --git a/crates/yt_dlp/crates/pyo3-pylogger/README.md b/crates/yt_dlp/crates/pyo3-pylogger/README.md index 3160f4c..1f6c419 100644 --- a/crates/yt_dlp/crates/pyo3-pylogger/README.md +++ b/crates/yt_dlp/crates/pyo3-pylogger/README.md @@ -1,3 +1,15 @@ + + # pyo3-pylogger Enables log messages for pyo3 embedded Python applications using Python's `logging` or module. diff --git a/crates/yt_dlp/crates/pyo3-pylogger/src/kv.rs b/crates/yt_dlp/crates/pyo3-pylogger/src/kv.rs index 871a170..67a0c3e 100644 --- a/crates/yt_dlp/crates/pyo3-pylogger/src/kv.rs +++ b/crates/yt_dlp/crates/pyo3-pylogger/src/kv.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Dylan Bobby Storey , cpu , Warren Snipes +// SPDX-License-Identifier: Apache-2.0 +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + //! Key-Value handling module for Python LogRecord attributes. //! //! This module provides functionality to extract and handle custom key-value pairs diff --git a/crates/yt_dlp/crates/pyo3-pylogger/src/level.rs b/crates/yt_dlp/crates/pyo3-pylogger/src/level.rs index 132c65f..d244ef4 100644 --- a/crates/yt_dlp/crates/pyo3-pylogger/src/level.rs +++ b/crates/yt_dlp/crates/pyo3-pylogger/src/level.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Dylan Bobby Storey , cpu , Warren Snipes +// SPDX-License-Identifier: Apache-2.0 +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + /// A wrapper type for logging levels that supports both `tracing` and `log` features. pub(crate) struct Level(pub log::Level); diff --git a/crates/yt_dlp/crates/pyo3-pylogger/src/lib.rs b/crates/yt_dlp/crates/pyo3-pylogger/src/lib.rs index b16e448..3ecb123 100644 --- a/crates/yt_dlp/crates/pyo3-pylogger/src/lib.rs +++ b/crates/yt_dlp/crates/pyo3-pylogger/src/lib.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Dylan Bobby Storey , cpu , Warren Snipes +// SPDX-License-Identifier: Apache-2.0 +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use std::{ ffi::CString, sync::{self, OnceLock}, diff --git a/crates/yt_dlp/crates/pyo3-pylogger/update.sh b/crates/yt_dlp/crates/pyo3-pylogger/update.sh index 2586afe..dd3e57e 100755 --- a/crates/yt_dlp/crates/pyo3-pylogger/update.sh +++ b/crates/yt_dlp/crates/pyo3-pylogger/update.sh @@ -1,5 +1,15 @@ #! /usr/bin/env sh +# yt - A fully featured command line YouTube client +# +# Copyright (C) 2025 Dylan Bobby Storey , cpu , Warren Snipes +# SPDX-License-Identifier: Apache-2.0 +# +# This file is part of Yt. +# +# You should have received a copy of the License along with this program. +# If not, see . + cd "$(dirname "$0")" || exit 1 [ "$1" = "upgrade" ] && cargo upgrade --incompatible cargo update diff --git a/crates/yt_dlp/examples/main.rs b/crates/yt_dlp/examples/main.rs index b3a2dd5..e924407 100644 --- a/crates/yt_dlp/examples/main.rs +++ b/crates/yt_dlp/examples/main.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + fn main() { let yt_dlp = yt_dlp::options::YoutubeDLOptions::new().build().unwrap(); -- cgit 1.4.1