Extract the media downloading into a shared method