https://github.com/fnep/mtv_dl
mtv_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