Added a getType function for feed detection