Attempt to detect media type from name alone