It first extracts from the embedded metadata, then from the filename and finally supplements it from the internet. If there’s no episode/season found in the metadata it’ll be shown as 0.
See this topic for details on order of extraction:
You can correct the Title from the Conversion Task → Expert Settings page using the metadata correction options.