Skip to content

Commit

Permalink
Fix video public_id cleansing pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
TalLevAmi committed Apr 6, 2015
1 parent 577b128 commit c4aed48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudinary/__init__.py
Expand Up @@ -155,7 +155,7 @@ def video_thumbnail(self, **options):
# CloudinaryResource("mymovie.webm").video(source_types = ['webm', 'mp4'], poster = {'effect': 'sepia'})
def video(self, **options):
public_id = options.get('public_id', self.public_id)
source = re.sub("\.{0}$".format("|".join(self.default_source_types())), '', public_id)
source = re.sub("\.({0})$".format("|".join(self.default_source_types())), '', public_id)

source_types = options.pop('source_types', [])
source_transformation = options.pop('source_transformation', {})
Expand Down

0 comments on commit c4aed48

Please sign in to comment.