Better parsing of songs

This commit is contained in:
David Doblas Jiménez 2023-12-09 20:05:02 +01:00
parent 3214983b72
commit 5298358a80

View File

@ -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.")