yt-dlp already supports downloading playlists. If it doesn't work for a specific site, you might as well write it in python and contribute it to yt-dlp directly, that way everyone else can benefit as well.
Mind you, yt-dlp has a strict policy against cracking DRM, so I have my doubts as to if it will work with Tidal in the first place.