So I have this xml from my Plex server that I want to handle with python.. I got everything working, but the xml sheet generated by the Plex server is not well-formed. If/when the summary contains words wrapped in " " my script fails.
See the code below in the MediaContainer/Video summary="... "don't" ..."
<MediaContainer>
<Video summary="Stupid text I "don't" care about...">
<Media id="Some id">
<Part id="Id I want"/>
</Media>
<Director tag="Name"/>
<Writer tag="Name"/>
</Video>
</MediaContainer>
I know that the proper way, the way it should have been made, would be something like..
<Video summary="Stupid text I "don't" care about...">
I don't care about the text at all so if there is any work around or simply a script that removes all quotes which is inside quotes I would be fine with that.
Another thing I realise now is that if the word is infact don't the single quotation mark ( ' ) in the word don't might course even further problems...
I would prefer a solution in Python(Python 3 if possible), but any help would be greatly appreciated.