diff options
Diffstat (limited to 'crates/yt_dlp')
-rw-r--r-- | crates/yt_dlp/crates/pyo3-pylogger/.gitignore | 10 | ||||
-rw-r--r-- | crates/yt_dlp/crates/pyo3-pylogger/Cargo.toml | 10 | ||||
-rw-r--r-- | crates/yt_dlp/crates/pyo3-pylogger/README.md | 12 | ||||
-rw-r--r-- | crates/yt_dlp/crates/pyo3-pylogger/src/kv.rs | 10 | ||||
-rw-r--r-- | crates/yt_dlp/crates/pyo3-pylogger/src/level.rs | 10 | ||||
-rw-r--r-- | crates/yt_dlp/crates/pyo3-pylogger/src/lib.rs | 10 | ||||
-rwxr-xr-x | crates/yt_dlp/crates/pyo3-pylogger/update.sh | 10 | ||||
-rw-r--r-- | crates/yt_dlp/examples/main.rs | 10 |
8 files changed, 82 insertions, 0 deletions
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 <dylan.storey@gmail.com>, cpu <daniel@binaryparadox.net>, Warren Snipes <contact@warrensnipes.dev> +# 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 <https://www.gnu.org/licenses/gpl-3.0.txt>. + 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 <dylan.storey@gmail.com>, cpu <daniel@binaryparadox.net>, Warren Snipes <contact@warrensnipes.dev> +# 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 <https://www.gnu.org/licenses/gpl-3.0.txt>. + [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 @@ +<!-- +yt - A fully featured command line YouTube client + +Copyright (C) 2025 Dylan Bobby Storey <dylan.storey@gmail.com>, cpu <daniel@binaryparadox.net>, Warren Snipes <contact@warrensnipes.dev> +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 <https://www.gnu.org/licenses/gpl-3.0.txt>. +--> + # 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 <dylan.storey@gmail.com>, cpu <daniel@binaryparadox.net>, Warren Snipes <contact@warrensnipes.dev> +// 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 <https://www.gnu.org/licenses/gpl-3.0.txt>. + //! 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 <dylan.storey@gmail.com>, cpu <daniel@binaryparadox.net>, Warren Snipes <contact@warrensnipes.dev> +// 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 <https://www.gnu.org/licenses/gpl-3.0.txt>. + /// 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 <dylan.storey@gmail.com>, cpu <daniel@binaryparadox.net>, Warren Snipes <contact@warrensnipes.dev> +// 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 <https://www.gnu.org/licenses/gpl-3.0.txt>. + 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 <dylan.storey@gmail.com>, cpu <daniel@binaryparadox.net>, Warren Snipes <contact@warrensnipes.dev> +# 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 <https://www.gnu.org/licenses/gpl-3.0.txt>. + 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 <benedikt.peetz@b-peetz.de> +// 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 <https://www.gnu.org/licenses/gpl-3.0.txt>. + fn main() { let yt_dlp = yt_dlp::options::YoutubeDLOptions::new().build().unwrap(); |