lkiesow / python-feedgen

Python module to generate ATOM feeds, RSS feeds and Podcasts.
https://feedgen.kiesow.be/
BSD 2-Clause "Simplified" License
739 stars 124 forks source link

When adding an image (off url) with extension of jpeg for itunes images - it fails the extension check. #140

Open psyciknz opened 2 months ago

psyciknz commented 2 months ago

Any chance of updating the allowed extensions to the include .jpeg?

if itunes_image is not None:
            if itunes_image.endswith('.jpg') or itunes_image.endswith('.png'):
                self.__itunes_image = itunes_image
            else:
                raise ValueError('Image file must be png or jpg')
        return self.__itunes_image

https://github.com/lkiesow/python-feedgen/blob/97260abb1793eb164c458c10b493690beb413f6d/feedgen/ext/podcast_entry.py#L149