TMDB interface, assorted fixes