This cleans up a couple of TODO items that have been in the code to capture image data from RSS streams.
The first was to correctly parse data within either the content or description elements (usually withing a CDATA structure) to find any <img> specification and capture its specified src= attribute.
The second was to detect any image URL data that was not fully specified as a complete URL (instead being a relative URL), and in this case, the <link> data associated with the item entry is leveraged to fill in the missing information.
The end result is that RSS feeds that include image data within their items are now more likely to capture and post that data (subject to user-specified client options). And the pylint score is now at 8.83 with the removal of the TODO items!
This cleans up a couple of TODO items that have been in the code to capture image data from RSS streams. The first was to correctly parse data within either the content or description elements (usually withing a CDATA structure) to find any
<img>
specification and capture its specifiedsrc=
attribute. The second was to detect any image URL data that was not fully specified as a complete URL (instead being a relative URL), and in this case, the<link>
data associated with the item entry is leveraged to fill in the missing information. The end result is that RSS feeds that include image data within their items are now more likely to capture and post that data (subject to user-specified client options). And the pylint score is now at 8.83 with the removal of the TODO items!