diff options
Diffstat (limited to 'crates/yt_dlp/src')
| -rw-r--r-- | crates/yt_dlp/src/options.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/yt_dlp/src/options.rs b/crates/yt_dlp/src/options.rs index cdbdb45..5fdcb18 100644 --- a/crates/yt_dlp/src/options.rs +++ b/crates/yt_dlp/src/options.rs @@ -12,7 +12,7 @@ use std::sync; use pyo3::{ Bound, IntoPyObjectExt, PyAny, PyResult, Python, intern, - types::{PyAnyMethods, PyCFunction, PyDict, PyList, PyTuple}, + types::{PyAnyMethods, PyCFunction, PyDict, PyTuple}, }; use pyo3_pylogger::setup_logging; @@ -159,13 +159,13 @@ signal.signal(signal.SIGINT, signal.SIG_DFL) }); } - { + if !options.match_filters.is_empty() { // TODO: Make this work with more than one match filter. <2026-11-07> assert_eq!(options.match_filters.len(), 1); opts.set_item( intern!(py, "match_filter"), - pp(py) + options.match_filters[0](py) .wrap_exc(py, "convertion match filter function to python")? .into_bound_py_any(py) .wrap_exc(py, "converting match filter function to any type")?, |
