kurtmckee/feedparser

Itunes image overrides title and link from image

H4kor opened this issue · 0 comments

H4kor commented

When a feed has an image and an itunes:image, the title and link are removed.

Example:

<rss>
    <channel>
        <image>
            <url>https://example.com/image.png</url>
            <title>Image Test</title>
            <link>https://example.com</link>
        </image>
        <itunes:image href="https://example.com/image.png"/>
    </channel>
</rss>

Result:

{
    'feed': {
        'image': {
            'href': 'https: //example.com/image.png'
        },
    }
}

Expected:

{
    'feed': {
        'image': {
            'href': 'https: //example.com/image.png',
            'title: 'Image Test',
            'links': [{'href': 'https://example.com'}]
        },
    }
}