Parser failures should not return TOTEM_PL_PARSER_RESULT_IGNORED
Parser feed failures should return valid return types ( e.g. TOTEM_PL_PARSER_RESULT_ERROR
) and not TOTEM_PL_PARSER_RESULT_IGNORED
, as below:
$ ninja && plparse/tests/parser file:///home/xyz/totem-pl-parser/plparse/tests/buggy_feed_2 --debug
_get_mime_type_for_name for 'file:///home/xyz/totem-pl-parser/plparse/tests/buggy_feed_2' returned 'application/octet-stream'
URI 'file:///home/xyz/totem-pl-parser/plparse/tests/buggy_feed_2' was opened successfully in _get_mime_type_with_data
_get_mime_type_with_data for 'file:///home/xyz/totem-pl-parser/plparse/tests/buggy_feed_2' returned 'application/rss+xml'
URI 'file:///home/xyz/totem-pl-parser/plparse/tests/buggy_feed_2' is special type 'application/rss+xml'
Using application/rss+xml function for 'file:///home/xyz/totem-pl-parser/plparse/tests/buggy_feed_2'
Ignoring application/rss+xml because it's a text/plain
which is incorrect and misleading.