VLC Player not saving YouTube files

So I had a heck of a time getting VLC Player to save youtube files, and from another forum I updated this file:
/usr/lib/x86_64-linux-gnu/vlc/lua/playlist/youtube.luac

then it works, but sporadically. Why doesn’t it always work?