This is a quick setup for mpv. You just need to run init.sh. init.sh is a script to download mpv scripts.
Manage your playlist
Show playlist in thumbanail
If you go to previous/next chapter but the video doesn't have any chapter again, Instead it will go to previous/next video
In case you want to watch youtube through mpv, you can set the resolution with this script