removes trailing /
This commit is contained in:
parent
e78ff86924
commit
9970f4833a
@ -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"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user