neon-jungle / wagtail-videos

Videos for Wagtail CMS, including transcoding
BSD 3-Clause "New" or "Revised" License
65 stars 57 forks source link

Fix mimetype when the URL has params #61

Closed jkevingutierrez closed 3 years ago

jkevingutierrez commented 3 years ago

Using Cloud Storage could generate urls like:

https://storage.googleapis.com/<BUCKET_NAME>/<PATH>/testwebm?Expires=1612931745&GoogleAccessId=<ACCOUNT>&Signature=<SIGNATURE>

Passing parameters to the URL returns None in mime.guess_type(url)

Also, extracting the mimetype to some property that can be reused. Similar to https://github.com/wagtail/wagtail/blob/master/wagtail/documents/models.py#L170

jkevingutierrez commented 3 years ago

Wrong base branch