I had already tried adding the tvdb ids, but it was after my original post, and I didn’t bother editing my post (again). It didn’t work anyway.
But after following the instructions for Plex Dance (with the tvdb ids in the folder names), everything is correct now.
Thanks for your help, and thanks to you and @beefsnack for the quick replies.