fix: group instead of whole string
This commit is contained in:
parent
560a044ac4
commit
c497d690ca
@ -58,7 +58,7 @@ def process(arguments):
|
|||||||
match = regex.match(channel.name)
|
match = regex.match(channel.name)
|
||||||
if match:
|
if match:
|
||||||
playlist.remove_channel(index)
|
playlist.remove_channel(index)
|
||||||
current_category = channel.name
|
current_category = match.group(1)
|
||||||
|
|
||||||
debug(f"Category matched: {current_category}")
|
debug(f"Category matched: {current_category}")
|
||||||
elif current_category:
|
elif current_category:
|
||||||
@ -77,4 +77,4 @@ if __name__ == "__main__":
|
|||||||
arguments = parse_arguments()
|
arguments = parse_arguments()
|
||||||
verbose = arguments.verbose
|
verbose = arguments.verbose
|
||||||
|
|
||||||
process(arguments)
|
process(arguments)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user