Closed Nowa-Ammerlaan closed 4 years ago
I was experiencing the same issue, it's because the string isn't escaped when downloading the youtube-dl
audio here. See for yourself:
youtube-dl -g -f bestaudio 'ytsearch:ytsearch:Apocalyptica - I Don't Care (feat. Adam Gontier) Official Video'
The '
in Don't
ends the string, which is followed by t Care (feat. Adam Gontier) Official Video'
. So everything falls apart and gives weird syntax errors. This can be fixed by either using something other than popen
to launch youtube-dl, or by escaping the title strings.
This also made me realize that Vidify is actually sending the string with ytsearch:
, so it's repeated twice when searching it. To be completely honest I don't even know how it worked before. I should have fixed this a long time ago lol. popen
is also a really dirty function that breaks portability and should be changed. I've opened this issue: https://github.com/vidify/vidify/issues/100 (there are so many issues on Vidify right now haha)
I'm currently quite busy, but I'll try to come up with something once I have more time :)
Closing issue: see https://github.com/vidify/audiosync-rs/issues/2
I think somewhere something is missing some quotation:
Full log: debug-log.txt
I've only observed this with songs that have brackets in the YouTube title. But I expect there would be problems with other special characters too.
Also, does this mean that setting the delay was unsuccessful in VLC?
EDIT: Perhaps it is
execvp("ffmpeg", args);
Line 57 in ffmpeg_pipe.c that needs quotation.