@jiangcaiyang the error you posted points to client-side code. The code you posted is pretty clearly server-side.
[nodebb-plugin-youtube-lite] Server side modifications
I've put a bit of work into transfering the work done in the Youtube Lite plugin from the client to the server:
For one, the API key wasn't being sent to the client, and for two, it shouldn't be. It gracefully degrades if you don't have an API key and uses an LRU cache to keep API usage to a minimum.
Seems good to me
Pull request maybe?
@exodo Just put it in:
@a_5mith are you still there? Maybe it's time to fork...
I'm sure he's still there. Nothing wrong with forking though, you could always merge later.