Better parsing of songs
This commit is contained in:
parent
3214983b72
commit
5298358a80
@ -37,6 +37,9 @@ def main():
|
||||
|
||||
channel_name = args.channel_name
|
||||
song = args.song
|
||||
# this assumes a song is passed as
|
||||
# https://youtu.be/eEnyi9L6KP4
|
||||
song = str(song).split("/")[-1]
|
||||
|
||||
if channel_name not in channels:
|
||||
print(f"Error: Channel '{channel_name}' not found.")
|
||||
|
Loading…
Reference in New Issue
Block a user