diff --git a/feedgen/ext/podcast.py b/feedgen/ext/podcast.py index c535392..d2cdc32 100644 --- a/feedgen/ext/podcast.py +++ b/feedgen/ext/podcast.py @@ -199,7 +199,7 @@ def itunes_image(self, itunes_image=None): the accompanying image must be at least 1400x1400 pixels. iTunes supports images in JPEG and PNG formats with an RGB color space - (CMYK is not supported). The URL must end in ".jpg" or ".png". If the + (CMYK is not supported). The URL must end in ".jpg", ".jpeg" or ".png". If the tag is not present, iTunes will use the contents of the RSS image tag. @@ -212,10 +212,10 @@ def itunes_image(self, itunes_image=None): :returns: Image of the podcast. ''' if itunes_image is not None: - if itunes_image.endswith('.jpg') or itunes_image.endswith('.png'): + if itunes_image.endswith('.jpg') or itunes_image.endswith('.png') or itunes_image.endswith('.jpeg'): self.__itunes_image = itunes_image else: - ValueError('Image file must be png or jpg') + ValueError('Image file must be png, jpg or jpeg') return self.__itunes_image def itunes_explicit(self, itunes_explicit=None): diff --git a/feedgen/ext/podcast_entry.py b/feedgen/ext/podcast_entry.py index 2d60c2d..fdba99c 100644 --- a/feedgen/ext/podcast_entry.py +++ b/feedgen/ext/podcast_entry.py @@ -134,7 +134,7 @@ def itunes_image(self, itunes_image=None): pixels. iTunes supports images in JPEG and PNG formats with an RGB color space - (CMYK is not supported). The URL must end in ".jpg" or ".png". If the + (CMYK is not supported). The URL must end in ".jpg", ".jpeg" or ".png". If the tag is not present, iTunes will use the contents of the RSS image tag. @@ -147,10 +147,10 @@ def itunes_image(self, itunes_image=None): :returns: Image of the podcast. ''' if itunes_image is not None: - if itunes_image.endswith('.jpg') or itunes_image.endswith('.png'): + if itunes_image.endswith('.jpg') or itunes_image.endswith('.png') or itunes_image.endswith('.jpeg'): self.__itunes_image = itunes_image else: - raise ValueError('Image file must be png or jpg') + raise ValueError('Image file must be png, jpg or jpeg') return self.__itunes_image def itunes_duration(self, itunes_duration=None):