mirror of
https://github.com/Relintai/ytdl_link_gen.git
synced 2024-12-20 01:16:50 +01:00
Properly handle quotes and double quotes in the urls.
This commit is contained in:
parent
2ca772ec50
commit
d829af3d7c
@ -809,7 +809,10 @@ class ChannelEntry:
|
||||
|
||||
files[main_fname] = 1
|
||||
|
||||
command = "yt-dlp " + l["cmdparams"] + " -o './" + self.video_output_dir + "/" + main_fname + ".%(ext)s' " + s["url"]
|
||||
url_escaped = s["url"].replace("'", "\\'")
|
||||
url_escaped = url_escaped.replace('"', '\\"')
|
||||
|
||||
command = "yt-dlp " + l["cmdparams"] + " -o './" + self.video_output_dir + "/" + main_fname + ".%(ext)s' " + url_escaped
|
||||
|
||||
command_outfile.write(command + "\n")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user