fix some download-related bugs

bugfixes related to downloading episodes. details in commit comments.

will add to this PR separate, self-contained bugfix commits, so feel free to review/merge whenever you get to it.