Adapt download.php for series