removes trailing /

This commit is contained in:
Danilo Reyes 2024-12-29 14:52:05 -06:00
parent e78ff86924
commit 9970f4833a

View File

@ -73,7 +73,7 @@ def video_command(video: Video) -> str:
rgx_music = re.compile(r"(https:\/\/music.youtube.*)") rgx_music = re.compile(r"(https:\/\/music.youtube.*)")
if re.search(r"chaturbate", video.link): if re.search(r"chaturbate", video.link):
return f"stream-dl {video.link.split("/")[-1]}" return f"stream-dl {video.link.rstrip("/").split("/")[-1]}"
if rgx_yt.search(video.link): if rgx_yt.search(video.link):
command += " --embed-subs --embed-thumbnail" command += " --embed-subs --embed-thumbnail"