media getting script