gpodder / podcastparser

Simplified, fast RSS parsing library in Python
ISC License
135 stars 35 forks source link

Validate the root element of parsed XML #14

Closed romlok closed 7 years ago

romlok commented 7 years ago

This will make the SAX PodcastHandler check that root elements of XML it's asked to parse are elements it's designed to handle (defined by their presence in the MAPPING dict). It will raise a FeedParseError if not.

As mentioned in the discussion of gpodder/gpodder#261.

thp commented 7 years ago

:x: Build podcastparser 1.0.13 failed (commit https://github.com/gpodder/podcastparser/commit/ca6af7d83b by @romlok)

thp commented 7 years ago

:white_check_mark: Build podcastparser 1.0.14 completed (commit https://github.com/gpodder/podcastparser/commit/f569de9208 by @romlok)

thp commented 7 years ago

:white_check_mark: Build podcastparser 1.0.15 completed (commit https://github.com/gpodder/podcastparser/commit/76cc3f2b98 by @romlok)

romlok commented 7 years ago

Does this require any further changes from my end?