github.com/fnep/mtv_dlmtv_dl allows searching the Mediathekview database from the command line and download all videos that haven’t already been downloaded and that fit the search. I use it to download new episodes from TV shows that I’m interested in