fix: group instead of whole string

This commit is contained in:
franek 2024-02-27 11:11:38 +01:00 committed by GitHub
parent 560a044ac4
commit c497d690ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)
process(arguments)