Implement download support for media_repository