@sellige ☝ This. +1
This would be really useful for me too. I have a bash script based synchronization system for my music, which relies on playlist files. But every time exporting all playlists one by one is really tedious.
Maybe additionally it would make sense to only enable the export for favorited/starred playlists.