feedparser icon indicating copy to clipboard operation
feedparser copied to clipboard

Itunes image overrides title and link from image

Open H4kor opened this issue 3 years ago • 0 comments

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'}]
        },
    }
}

H4kor avatar Jun 23 '22 12:06 H4kor