From 4cbc424e0d1b51c03dc7c3e49dae361cbf4c4b77 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 22 Feb 2025 11:48:23 +0100 Subject: chore(treewide): Add/Update the license headers --- LICENSES/MIT.txt | 18 ++++++++++++++++++ crates/libmpv2/src/mpv/raw_error_warning.txt.license | 9 +++++++++ crates/yt_dlp/src/error.rs | 10 ++++++++++ .../src/python_json_decode_failed.error_msg.license | 9 +++++++++ yt/Cargo.toml | 1 + yt/src/app.rs | 1 + yt/src/cache/mod.rs | 1 + yt/src/cli.rs | 1 + yt/src/comments/comment.rs | 1 + yt/src/comments/description.rs | 1 + yt/src/comments/display.rs | 1 + yt/src/comments/mod.rs | 1 + yt/src/comments/output.rs | 1 + yt/src/config/default.rs | 1 + yt/src/config/definitions.rs | 1 + yt/src/config/file_system.rs | 1 + yt/src/config/mod.rs | 1 + yt/src/constants.rs | 1 + yt/src/download/download_options.rs | 1 + yt/src/download/mod.rs | 1 + yt/src/main.rs | 1 + yt/src/select/cmds/add.rs | 10 ++++++++++ yt/src/select/cmds/mod.rs | 1 + yt/src/select/mod.rs | 1 + yt/src/select/selection_file/duration.rs | 1 + yt/src/select/selection_file/help.str.license | 1 + yt/src/select/selection_file/mod.rs | 1 + yt/src/status/mod.rs | 1 + yt/src/storage/migrate/mod.rs | 10 ++++++++++ yt/src/storage/migrate/sql/00_empty_to_zero.sql | 1 + yt/src/storage/migrate/sql/01_zero_to_one.sql | 10 ++++++++++ yt/src/storage/migrate/sql/02_one_to_two.sql | 10 ++++++++++ yt/src/storage/mod.rs | 1 + yt/src/storage/subscriptions.rs | 1 + yt/src/storage/video_database/downloader.rs | 1 + yt/src/storage/video_database/extractor_hash.rs | 1 + yt/src/storage/video_database/get/mod.rs | 1 + yt/src/storage/video_database/get/playlist/iterator.rs | 10 ++++++++++ yt/src/storage/video_database/get/playlist/mod.rs | 10 ++++++++++ yt/src/storage/video_database/mod.rs | 1 + yt/src/storage/video_database/notify.rs | 10 ++++++++++ yt/src/storage/video_database/set/mod.rs | 1 + yt/src/storage/video_database/set/playlist.rs | 10 ++++++++++ yt/src/subscribe/mod.rs | 1 + yt/src/unreachable.rs | 1 + yt/src/update/mod.rs | 1 + yt/src/update/updater.rs | 10 ++++++++++ yt/src/version/mod.rs | 10 ++++++++++ yt/src/videos/display/format_video.rs | 1 + yt/src/videos/display/mod.rs | 1 + yt/src/videos/mod.rs | 1 + yt/src/watch/mod.rs | 1 + yt/src/watch/playlist.rs | 10 ++++++++++ yt/src/watch/playlist_handler/client_messages/mod.rs | 10 ++++++++++ yt/src/watch/playlist_handler/mod.rs | 10 ++++++++++ 55 files changed, 214 insertions(+) create mode 100644 LICENSES/MIT.txt create mode 100644 crates/libmpv2/src/mpv/raw_error_warning.txt.license create mode 100644 crates/yt_dlp/src/python_json_decode_failed.error_msg.license diff --git a/LICENSES/MIT.txt b/LICENSES/MIT.txt new file mode 100644 index 0000000..fc2cf8e --- /dev/null +++ b/LICENSES/MIT.txt @@ -0,0 +1,18 @@ +MIT License + +Copyright (c) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and +associated documentation files (the "Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the +following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial +portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO +EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/crates/libmpv2/src/mpv/raw_error_warning.txt.license b/crates/libmpv2/src/mpv/raw_error_warning.txt.license new file mode 100644 index 0000000..7813eb6 --- /dev/null +++ b/crates/libmpv2/src/mpv/raw_error_warning.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_dlp/src/error.rs b/crates/yt_dlp/src/error.rs index 489abd3..3881f0b 100644 --- a/crates/yt_dlp/src/error.rs +++ b/crates/yt_dlp/src/error.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, io}; use pyo3::Python; diff --git a/crates/yt_dlp/src/python_json_decode_failed.error_msg.license b/crates/yt_dlp/src/python_json_decode_failed.error_msg.license new file mode 100644 index 0000000..7813eb6 --- /dev/null +++ b/crates/yt_dlp/src/python_json_decode_failed.error_msg.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/yt/Cargo.toml b/yt/Cargo.toml index 2a93f40..381211a 100644 --- a/yt/Cargo.toml +++ b/yt/Cargo.toml @@ -1,6 +1,7 @@ # yt - A fully featured command line YouTube client # # Copyright (C) 2024 Benedikt Peetz +# Copyright (C) 2025 Benedikt Peetz # SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Yt. diff --git a/yt/src/app.rs b/yt/src/app.rs index bf8ad0f..15a9388 100644 --- a/yt/src/app.rs +++ b/yt/src/app.rs @@ -1,6 +1,7 @@ // yt - A fully featured command line YouTube client // // Copyright (C) 2024 Benedikt Peetz +// Copyright (C) 2025 Benedikt Peetz // SPDX-License-Identifier: GPL-3.0-or-later // // This file is part of Yt. diff --git a/yt/src/cache/mod.rs b/yt/src/cache/mod.rs index f5a0da9..83d5ee0 100644 --- a/yt/src/cache/mod.rs +++ b/yt/src/cache/mod.rs @@ -1,6 +1,7 @@ // yt - A fully featured command line YouTube client // // Copyright (C) 2024 Benedikt Peetz +// Copyright (C) 2025 Benedikt Peetz // SPDX-License-Identifier: GPL-3.0-or-later // // This file is part of Yt. diff --git a/yt/src/cli.rs b/yt/src/cli.rs index 9851211..037f45c 100644 --- a/yt/src/cli.rs +++ b/yt/src/cli.rs @@ -1,6 +1,7 @@ // yt - A fully featured command line YouTube client // // Copyright (C) 2024 Benedikt Peetz +// Copyright (C) 2025 Benedikt Peetz // SPDX-License-Identifier: GPL-3.0-or-later // // This file is part of Yt. diff --git a/yt/src/comments/comment.rs b/yt/src/comments/comment.rs index c998cdb..6b8cf73 100644 --- a/yt/src/comments/comment.rs +++ b/yt/src/comments/comment.rs @@ -1,6 +1,7 @@ // yt - A fully featured command line YouTube client // // Copyright (C) 2024 Benedikt Peetz +// Copyright (C) 2025 Benedikt Peetz // SPDX-License-Identifier: GPL-3.0-or-later // // This file is part of Yt. diff --git a/yt/src/comments/description.rs b/yt/src/comments/description.rs index e743e46..d22a40f 100644 --- a/yt/src/comments/description.rs +++ b/yt/src/comments/description.rs @@ -1,6 +1,7 @@ // yt - A fully featured command line YouTube client // // Copyright (C) 2024 Benedikt Peetz +// Copyright (C) 2025 Benedikt Peetz // SPDX-License-Identifier: GPL-3.0-or-later // // This file is part of Yt. diff --git a/yt/src/comments/display.rs b/yt/src/comments/display.rs index 4d678bc..6166b2b 100644 --- a/yt/src/comments/display.rs +++ b/yt/src/comments/display.rs @@ -1,6 +1,7 @@ // yt - A fully featured command line YouTube client // // Copyright (C) 2024 Benedikt Peetz +// Copyright (C) 2025 Benedikt Peetz // SPDX-License-Identifier: GPL-3.0-or-later // // This file is part of Yt. diff --git a/yt/src/comments/mod.rs b/yt/src/comments/mod.rs index 1482f15..daecf8d 100644 --- a/yt/src/comments/mod.rs +++ b/yt/src/comments/mod.rs @@ -1,6 +1,7 @@ // yt - A fully featured command line YouTube client // // Copyright (C) 2024 Benedikt Peetz +// Copyright (C) 2025 Benedikt Peetz // SPDX-License-Identifier: GPL-3.0-or-later // // This file is part of Yt. diff --git a/yt/src/comments/output.rs b/yt/src/comments/output.rs index 9b3d684..cb3a9c4 100644 --- a/yt/src/comments/output.rs +++ b/yt/src/comments/output.rs @@ -1,6 +1,7 @@ // yt - A fully featured command line YouTube client // // Copyright (C) 2024 Benedikt Peetz +// Copyright (C) 2025 Benedikt Peetz // SPDX-License-Identifier: GPL-3.0-or-later // // This file is part of Yt. diff --git a/yt/src/config/default.rs b/yt/src/config/default.rs index 9f33001..a1d327a 100644 --- a/yt/src/config/default.rs +++ b/yt/src/config/default.rs @@ -1,6 +1,7 @@ // yt - A fully featured command line YouTube client // // Copyright (C) 2024 Benedikt Peetz +// Copyright (C) 2025 Benedikt Peetz // SPDX-License-Identifier: GPL-3.0-or-later // // This file is part of Yt. diff --git a/yt/src/config/definitions.rs b/yt/src/config/definitions.rs index 106c261..ce8c0d4 100644 --- a/yt/src/config/definitions.rs +++ b/yt/src/config/definitions.rs @@ -1,6 +1,7 @@ // yt - A fully featured command line YouTube client // // Copyright (C) 2024 Benedikt Peetz +// Copyright (C) 2025 Benedikt Peetz // SPDX-License-Identifier: GPL-3.0-or-later // // This file is part of Yt. diff --git a/yt/src/config/file_system.rs b/yt/src/config/file_system.rs index 0755aee..2463e9d 100644 --- a/yt/src/config/file_system.rs +++ b/yt/src/config/file_system.rs @@ -1,6 +1,7 @@ // yt - A fully featured command line YouTube client // // Copyright (C) 2024 Benedikt Peetz +// Copyright (C) 2025 Benedikt Peetz // SPDX-License-Identifier: GPL-3.0-or-later // // This file is part of Yt. diff --git a/yt/src/config/mod.rs b/yt/src/config/mod.rs index f4bbfca..a10f7c2 100644 --- a/yt/src/config/mod.rs +++ b/yt/src/config/mod.rs @@ -1,6 +1,7 @@ // yt - A fully featured command line YouTube client // // Copyright (C) 2024 Benedikt Peetz +// Copyright (C) 2025 Benedikt Peetz // SPDX-License-Identifier: GPL-3.0-or-later // // This file is part of Yt. diff --git a/yt/src/constants.rs b/yt/src/constants.rs index 54cae89..0f5b918 100644 --- a/yt/src/constants.rs +++ b/yt/src/constants.rs @@ -1,6 +1,7 @@ // yt - A fully featured command line YouTube client // // Copyright (C) 2024 Benedikt Peetz +// Copyright (C) 2025 Benedikt Peetz // SPDX-License-Identifier: GPL-3.0-or-later // // This file is part of Yt. diff --git a/yt/src/download/download_options.rs b/yt/src/download/download_options.rs index 0d28553..8f5a609 100644 --- a/yt/src/download/download_options.rs +++ b/yt/src/download/download_options.rs @@ -1,6 +1,7 @@ // yt - A fully featured command line YouTube client // // Copyright (C) 2024 Benedikt Peetz +// Copyright (C) 2025 Benedikt Peetz // SPDX-License-Identifier: GPL-3.0-or-later // // This file is part of Yt. diff --git a/yt/src/download/mod.rs b/yt/src/download/mod.rs index 168c1b2..984d400 100644 --- a/yt/src/download/mod.rs +++ b/yt/src/download/mod.rs @@ -1,6 +1,7 @@ // yt - A fully featured command line YouTube client // // Copyright (C) 2024 Benedikt Peetz +// Copyright (C) 2025 Benedikt Peetz // SPDX-License-Identifier: GPL-3.0-or-later // // This file is part of Yt. diff --git a/yt/src/main.rs b/yt/src/main.rs index 9141fac..ffb3e14 100644 --- a/yt/src/main.rs +++ b/yt/src/main.rs @@ -1,6 +1,7 @@ // yt - A fully featured command line YouTube client // // Copyright (C) 2024 Benedikt Peetz +// Copyright (C) 2025 Benedikt Peetz // SPDX-License-Identifier: GPL-3.0-or-later // // This file is part of Yt. diff --git a/yt/src/select/cmds/add.rs b/yt/src/select/cmds/add.rs index 154bb0a..da58ec2 100644 --- a/yt/src/select/cmds/add.rs +++ b/yt/src/select/cmds/add.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, download::download_options::download_opts, diff --git a/yt/src/select/cmds/mod.rs b/yt/src/select/cmds/mod.rs index 66dfa4c..ea41f99 100644 --- a/yt/src/select/cmds/mod.rs +++ b/yt/src/select/cmds/mod.rs @@ -1,6 +1,7 @@ // yt - A fully featured command line YouTube client // // Copyright (C) 2024 Benedikt Peetz +// Copyright (C) 2025 Benedikt Peetz // SPDX-License-Identifier: GPL-3.0-or-later // // This file is part of Yt. diff --git a/yt/src/select/mod.rs b/yt/src/select/mod.rs index 4c34d16..54db65c 100644 --- a/yt/src/select/mod.rs +++ b/yt/src/select/mod.rs @@ -1,6 +1,7 @@ // yt - A fully featured command line YouTube client // // Copyright (C) 2024 Benedikt Peetz +// Copyright (C) 2025 Benedikt Peetz // SPDX-License-Identifier: GPL-3.0-or-later // // This file is part of Yt. diff --git a/yt/src/select/selection_file/duration.rs b/yt/src/select/selection_file/duration.rs index 4fb3d4c..77c4fc5 100644 --- a/yt/src/select/selection_file/duration.rs +++ b/yt/src/select/selection_file/duration.rs @@ -1,6 +1,7 @@ // yt - A fully featured command line YouTube client // // Copyright (C) 2024 Benedikt Peetz +// Copyright (C) 2025 Benedikt Peetz // SPDX-License-Identifier: GPL-3.0-or-later // // This file is part of Yt. diff --git a/yt/src/select/selection_file/help.str.license b/yt/src/select/selection_file/help.str.license index d4d410f..a0e196c 100644 --- a/yt/src/select/selection_file/help.str.license +++ b/yt/src/select/selection_file/help.str.license @@ -1,6 +1,7 @@ yt - A fully featured command line YouTube client Copyright (C) 2024 Benedikt Peetz +Copyright (C) 2025 Benedikt Peetz SPDX-License-Identifier: GPL-3.0-or-later This file is part of Yt. diff --git a/yt/src/select/selection_file/mod.rs b/yt/src/select/selection_file/mod.rs index 5e5643d..abd26c4 100644 --- a/yt/src/select/selection_file/mod.rs +++ b/yt/src/select/selection_file/mod.rs @@ -1,6 +1,7 @@ // yt - A fully featured command line YouTube client // // Copyright (C) 2024 Benedikt Peetz +// Copyright (C) 2025 Benedikt Peetz // SPDX-License-Identifier: GPL-3.0-or-later // // This file is part of Yt. diff --git a/yt/src/status/mod.rs b/yt/src/status/mod.rs index 4dc8fab..bc45cfb 100644 --- a/yt/src/status/mod.rs +++ b/yt/src/status/mod.rs @@ -1,6 +1,7 @@ // yt - A fully featured command line YouTube client // // Copyright (C) 2024 Benedikt Peetz +// Copyright (C) 2025 Benedikt Peetz // SPDX-License-Identifier: GPL-3.0-or-later // // This file is part of Yt. diff --git a/yt/src/storage/migrate/mod.rs b/yt/src/storage/migrate/mod.rs index 767fe0f..badeb6f 100644 --- a/yt/src/storage/migrate/mod.rs +++ b/yt/src/storage/migrate/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, future::Future, diff --git a/yt/src/storage/migrate/sql/00_empty_to_zero.sql b/yt/src/storage/migrate/sql/00_empty_to_zero.sql index 2e890e5..d703bfc 100644 --- a/yt/src/storage/migrate/sql/00_empty_to_zero.sql +++ b/yt/src/storage/migrate/sql/00_empty_to_zero.sql @@ -1,6 +1,7 @@ -- yt - A fully featured command line YouTube client -- -- Copyright (C) 2024 Benedikt Peetz +-- Copyright (C) 2025 Benedikt Peetz -- SPDX-License-Identifier: GPL-3.0-or-later -- -- This file is part of Yt. diff --git a/yt/src/storage/migrate/sql/01_zero_to_one.sql b/yt/src/storage/migrate/sql/01_zero_to_one.sql index d33eb05..da9315b 100644 --- a/yt/src/storage/migrate/sql/01_zero_to_one.sql +++ b/yt/src/storage/migrate/sql/01_zero_to_one.sql @@ -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 . + -- Is the video currently in a playlist? ALTER TABLE videos ADD in_playlist INTEGER NOT NULL DEFAULT 0 CHECK (in_playlist IN (0, 1)); UPDATE videos SET in_playlist = 0; diff --git a/yt/src/storage/migrate/sql/02_one_to_two.sql b/yt/src/storage/migrate/sql/02_one_to_two.sql index dd85737..806de07 100644 --- a/yt/src/storage/migrate/sql/02_one_to_two.sql +++ b/yt/src/storage/migrate/sql/02_one_to_two.sql @@ -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 . + ALTER TABLE videos DROP in_playlist; diff --git a/yt/src/storage/mod.rs b/yt/src/storage/mod.rs index d945d0d..8653eb3 100644 --- a/yt/src/storage/mod.rs +++ b/yt/src/storage/mod.rs @@ -1,6 +1,7 @@ // yt - A fully featured command line YouTube client // // Copyright (C) 2024 Benedikt Peetz +// Copyright (C) 2025 Benedikt Peetz // SPDX-License-Identifier: GPL-3.0-or-later // // This file is part of Yt. diff --git a/yt/src/storage/subscriptions.rs b/yt/src/storage/subscriptions.rs index f819dc6..3673eee 100644 --- a/yt/src/storage/subscriptions.rs +++ b/yt/src/storage/subscriptions.rs @@ -1,6 +1,7 @@ // yt - A fully featured command line YouTube client // // Copyright (C) 2024 Benedikt Peetz +// Copyright (C) 2025 Benedikt Peetz // SPDX-License-Identifier: GPL-3.0-or-later // // This file is part of Yt. diff --git a/yt/src/storage/video_database/downloader.rs b/yt/src/storage/video_database/downloader.rs index e843d6d..a95081e 100644 --- a/yt/src/storage/video_database/downloader.rs +++ b/yt/src/storage/video_database/downloader.rs @@ -1,6 +1,7 @@ // yt - A fully featured command line YouTube client // // Copyright (C) 2024 Benedikt Peetz +// Copyright (C) 2025 Benedikt Peetz // SPDX-License-Identifier: GPL-3.0-or-later // // This file is part of Yt. diff --git a/yt/src/storage/video_database/extractor_hash.rs b/yt/src/storage/video_database/extractor_hash.rs index 57f4f19..df545d7 100644 --- a/yt/src/storage/video_database/extractor_hash.rs +++ b/yt/src/storage/video_database/extractor_hash.rs @@ -1,6 +1,7 @@ // yt - A fully featured command line YouTube client // // Copyright (C) 2024 Benedikt Peetz +// Copyright (C) 2025 Benedikt Peetz // SPDX-License-Identifier: GPL-3.0-or-later // // This file is part of Yt. diff --git a/yt/src/storage/video_database/get/mod.rs b/yt/src/storage/video_database/get/mod.rs index 8fe0754..6a4220e 100644 --- a/yt/src/storage/video_database/get/mod.rs +++ b/yt/src/storage/video_database/get/mod.rs @@ -1,6 +1,7 @@ // yt - A fully featured command line YouTube client // // Copyright (C) 2024 Benedikt Peetz +// Copyright (C) 2025 Benedikt Peetz // SPDX-License-Identifier: GPL-3.0-or-later // // This file is part of Yt. diff --git a/yt/src/storage/video_database/get/playlist/iterator.rs b/yt/src/storage/video_database/get/playlist/iterator.rs index e8ee190..4c45bf7 100644 --- a/yt/src/storage/video_database/get/playlist/iterator.rs +++ b/yt/src/storage/video_database/get/playlist/iterator.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, path::{Path, PathBuf}, diff --git a/yt/src/storage/video_database/get/playlist/mod.rs b/yt/src/storage/video_database/get/playlist/mod.rs index 7d5e000..f6aadbf 100644 --- a/yt/src/storage/video_database/get/playlist/mod.rs +++ b/yt/src/storage/video_database/get/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 . + //! This file contains the getters for the internal playlist use std::{ops::Add, path::PathBuf}; diff --git a/yt/src/storage/video_database/mod.rs b/yt/src/storage/video_database/mod.rs index 34b91fe..74d09f0 100644 --- a/yt/src/storage/video_database/mod.rs +++ b/yt/src/storage/video_database/mod.rs @@ -1,6 +1,7 @@ // yt - A fully featured command line YouTube client // // Copyright (C) 2024 Benedikt Peetz +// Copyright (C) 2025 Benedikt Peetz // SPDX-License-Identifier: GPL-3.0-or-later // // This file is part of Yt. diff --git a/yt/src/storage/video_database/notify.rs b/yt/src/storage/video_database/notify.rs index 56599ba..b55c00a 100644 --- a/yt/src/storage/video_database/notify.rs +++ b/yt/src/storage/video_database/notify.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}, sync::mpsc, diff --git a/yt/src/storage/video_database/set/mod.rs b/yt/src/storage/video_database/set/mod.rs index c1f771c..4006fde 100644 --- a/yt/src/storage/video_database/set/mod.rs +++ b/yt/src/storage/video_database/set/mod.rs @@ -1,6 +1,7 @@ // yt - A fully featured command line YouTube client // // Copyright (C) 2024 Benedikt Peetz +// Copyright (C) 2025 Benedikt Peetz // SPDX-License-Identifier: GPL-3.0-or-later // // This file is part of Yt. diff --git a/yt/src/storage/video_database/set/playlist.rs b/yt/src/storage/video_database/set/playlist.rs index 8a7b2f6..7e97239 100644 --- a/yt/src/storage/video_database/set/playlist.rs +++ b/yt/src/storage/video_database/set/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 anyhow::Result; use log::debug; use sqlx::query; diff --git a/yt/src/subscribe/mod.rs b/yt/src/subscribe/mod.rs index 7e5c68f..455ccb1 100644 --- a/yt/src/subscribe/mod.rs +++ b/yt/src/subscribe/mod.rs @@ -1,6 +1,7 @@ // yt - A fully featured command line YouTube client // // Copyright (C) 2024 Benedikt Peetz +// Copyright (C) 2025 Benedikt Peetz // SPDX-License-Identifier: GPL-3.0-or-later // // This file is part of Yt. diff --git a/yt/src/unreachable.rs b/yt/src/unreachable.rs index 3ce895c..436fbb6 100644 --- a/yt/src/unreachable.rs +++ b/yt/src/unreachable.rs @@ -1,6 +1,7 @@ // yt - A fully featured command line YouTube client // // Copyright (C) 2024 Benedikt Peetz +// Copyright (C) 2025 Benedikt Peetz // SPDX-License-Identifier: GPL-3.0-or-later // // This file is part of Yt. diff --git a/yt/src/update/mod.rs b/yt/src/update/mod.rs index c462b1e..7efe0da 100644 --- a/yt/src/update/mod.rs +++ b/yt/src/update/mod.rs @@ -1,6 +1,7 @@ // yt - A fully featured command line YouTube client // // Copyright (C) 2024 Benedikt Peetz +// Copyright (C) 2025 Benedikt Peetz // SPDX-License-Identifier: GPL-3.0-or-later // // This file is part of Yt. diff --git a/yt/src/update/updater.rs b/yt/src/update/updater.rs index 70cdecd..2b13378 100644 --- a/yt/src/update/updater.rs +++ b/yt/src/update/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::io::{Write, stderr}; use anyhow::{Context, Result}; diff --git a/yt/src/version/mod.rs b/yt/src/version/mod.rs index 5e5b9a7..05d85e0 100644 --- a/yt/src/version/mod.rs +++ b/yt/src/version/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::process::Command; use anyhow::{Context, Result}; diff --git a/yt/src/videos/display/format_video.rs b/yt/src/videos/display/format_video.rs index 535a418..b97acb1 100644 --- a/yt/src/videos/display/format_video.rs +++ b/yt/src/videos/display/format_video.rs @@ -1,6 +1,7 @@ // yt - A fully featured command line YouTube client // // Copyright (C) 2024 Benedikt Peetz +// Copyright (C) 2025 Benedikt Peetz // SPDX-License-Identifier: GPL-3.0-or-later // // This file is part of Yt. diff --git a/yt/src/videos/display/mod.rs b/yt/src/videos/display/mod.rs index 2b87add..1188569 100644 --- a/yt/src/videos/display/mod.rs +++ b/yt/src/videos/display/mod.rs @@ -1,6 +1,7 @@ // yt - A fully featured command line YouTube client // // Copyright (C) 2024 Benedikt Peetz +// Copyright (C) 2025 Benedikt Peetz // SPDX-License-Identifier: GPL-3.0-or-later // // This file is part of Yt. diff --git a/yt/src/videos/mod.rs b/yt/src/videos/mod.rs index 2860ad4..e821772 100644 --- a/yt/src/videos/mod.rs +++ b/yt/src/videos/mod.rs @@ -1,6 +1,7 @@ // yt - A fully featured command line YouTube client // // Copyright (C) 2024 Benedikt Peetz +// Copyright (C) 2025 Benedikt Peetz // SPDX-License-Identifier: GPL-3.0-or-later // // This file is part of Yt. diff --git a/yt/src/watch/mod.rs b/yt/src/watch/mod.rs index 16d4899..6827b2c 100644 --- a/yt/src/watch/mod.rs +++ b/yt/src/watch/mod.rs @@ -1,6 +1,7 @@ // yt - A fully featured command line YouTube client // // Copyright (C) 2024 Benedikt Peetz +// Copyright (C) 2025 Benedikt Peetz // SPDX-License-Identifier: GPL-3.0-or-later // // This file is part of Yt. diff --git a/yt/src/watch/playlist.rs b/yt/src/watch/playlist.rs index 9b07b09..6ac8b12 100644 --- a/yt/src/watch/playlist.rs +++ b/yt/src/watch/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::path::Path; use crate::{ diff --git a/yt/src/watch/playlist_handler/client_messages/mod.rs b/yt/src/watch/playlist_handler/client_messages/mod.rs index 4c6d9d5..6f7a59e 100644 --- a/yt/src/watch/playlist_handler/client_messages/mod.rs +++ b/yt/src/watch/playlist_handler/client_messages/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::{env, time::Duration}; use crate::{app::App, comments}; diff --git a/yt/src/watch/playlist_handler/mod.rs b/yt/src/watch/playlist_handler/mod.rs index e6ceece..2672ff5 100644 --- a/yt/src/watch/playlist_handler/mod.rs +++ b/yt/src/watch/playlist_handler/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::{cmp::Ordering, time::Duration}; use crate::{ -- cgit 1.4.1