From 2b0e7e0e4f5b3a319cee0b1e75618e9f7986983f Mon Sep 17 00:00:00 2001 From: jbannon Date: Sun, 17 Jul 2022 21:17:40 +0000 Subject: [PATCH] [DOCS|HOTFIX] Fix regex match docs --- src/ytdl_sub/plugins/regex.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ytdl_sub/plugins/regex.py b/src/ytdl_sub/plugins/regex.py index d584e058..c60c4b51 100644 --- a/src/ytdl_sub/plugins/regex.py +++ b/src/ytdl_sub/plugins/regex.py @@ -120,13 +120,15 @@ class RegexOptions(PluginOptions): title: # Perform this regex match on it to act as a filter. # This will only download videos with "Official Video" in it. - match: '\[Official Video\]' + match: + - '\[Official Video\]' # For each entry's `description` value... description: # Match with capture groups and defaults. # This tries to scrape a date from the description and produce new source variables - match: "([0-9]{4})-([0-9]{2})-([0-9]{2})" + match: + - "([0-9]{4})-([0-9]{2})-([0-9]{2})" # Each capture group creates these new source variables, respectively, as well # a sanitized version, i.e. `captured_upload_year_sanitized`