From b95000e9c4af98245de7c229f4d78703bc8e2933 Mon Sep 17 00:00:00 2001 From: Jesse Bannon Date: Wed, 25 Sep 2024 22:36:54 -0700 Subject: [PATCH] regex docs --- docs/source/config_reference/plugins.rst | 2 +- src/ytdl_sub/plugins/regex.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/config_reference/plugins.rst b/docs/source/config_reference/plugins.rst index 5cb786d3..cd0da7f9 100644 --- a/docs/source/config_reference/plugins.rst +++ b/docs/source/config_reference/plugins.rst @@ -796,7 +796,7 @@ regex overrides: description_date_capture: >- { - %regex_capture_many_with_defaults( + %regex_capture_many( description, [ "([0-9]{4})-([0-9]{2})-([0-9]{2})" ], [ upload_year, upload_month, upload_day ] diff --git a/src/ytdl_sub/plugins/regex.py b/src/ytdl_sub/plugins/regex.py index 0874b7f7..8b2bbfc4 100644 --- a/src/ytdl_sub/plugins/regex.py +++ b/src/ytdl_sub/plugins/regex.py @@ -144,7 +144,7 @@ class RegexOptions(ToggleableOptionsDictValidator): overrides: description_date_capture: >- { - %regex_capture_many_with_defaults( + %regex_capture_many( description, [ "([0-9]{4})-([0-9]{2})-([0-9]{2})" ], [ upload_year, upload_month, upload_day ]