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 --- 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 ++++++++++ 8 files changed, 82 insertions(+) (limited to 'crates/yt_dlp') 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