From c497d690caa69aed82c4af39ea854e1f4ac109a2 Mon Sep 17 00:00:00 2001 From: franek <97941280+sadorowo@users.noreply.github.com> Date: Tue, 27 Feb 2024 11:11:38 +0100 Subject: [PATCH] fix: group instead of whole string --- __main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/__main__.py b/__main__.py index 7fa5344..c0078c9 100644 --- a/__main__.py +++ b/__main__.py @@ -58,7 +58,7 @@ def process(arguments): match = regex.match(channel.name) if match: playlist.remove_channel(index) - current_category = channel.name + current_category = match.group(1) debug(f"Category matched: {current_category}") elif current_category: @@ -77,4 +77,4 @@ if __name__ == "__main__": arguments = parse_arguments() verbose = arguments.verbose - process(arguments) \ No newline at end of file + process(arguments)