Improve 'xml-prune' — support xpath for text content matching #325
Labels
enhancement
Improvement of existent feature
Feature request
Adding new feature
Priority: P4
Release: v1.9.70
Resolution: Fixed
Status: Closed
Version: Scriptlets v1.9
Problem
It is impossible to select an element that contains certain text.
Example:
Ads on
https://pluto.tv/en/on-demand/movies/6111bbe29b91f300138dc5d9
Ad config is stored here in the
.MPD
file:https://gist.githubusercontent.com/Alex-302/b8c23ece5fbe1c80deb4efa8af96c51d/raw/8592abecef9398c28033d093f8999c987e6d3499/pluto.mdp
In this case following element contain info about video ad:
Details
and it may be matched by
_ad/creative/
.Proposed solution
Add ability to match element, which contains a text, including using regexp (like
:contains()
in Extended CSS).It is desirable to use a syntax simpler than XPatch
//Period[contains(BaseURL, '_ad/creative/')]
, like in ExtCSS or better like/similar to$jsonprune
of CoreLibs.The text was updated successfully, but these errors were encountered: