aboutsummaryrefslogtreecommitdiffstats
path: root/crates/yt_dlp
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-07-24 17:15:22 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-07-24 17:15:22 +0200
commit71351b83af2cfb142ad536936f613a66059244f6 (patch)
tree7dcbbb632d4c18485509bcd3caaf3bde0db75b5b /crates/yt_dlp
parenttest(crates/libmpv2): Avoid compiling a doc-test (diff)
downloadyt-71351b83af2cfb142ad536936f613a66059244f6.zip
chore(treewide): Add missing license headers
Diffstat (limited to 'crates/yt_dlp')
-rw-r--r--crates/yt_dlp/crates/pyo3-pylogger/.gitignore10
-rw-r--r--crates/yt_dlp/crates/pyo3-pylogger/Cargo.toml10
-rw-r--r--crates/yt_dlp/crates/pyo3-pylogger/README.md12
-rw-r--r--crates/yt_dlp/crates/pyo3-pylogger/src/kv.rs10
-rw-r--r--crates/yt_dlp/crates/pyo3-pylogger/src/level.rs10
-rw-r--r--crates/yt_dlp/crates/pyo3-pylogger/src/lib.rs10
-rwxr-xr-xcrates/yt_dlp/crates/pyo3-pylogger/update.sh10
-rw-r--r--crates/yt_dlp/examples/main.rs10
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();