neon-jungle / wagtail-videos

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

Using S3 storage backend, transcoding causes absolute path error #106

Closed Timusan closed 9 months ago

Timusan commented 1 year ago

When using S3 (via Django Storages and Boto3) files have no absolute paths and transcoding will fail with the exception:

NotImplementedError: This backend doesn't support absolute paths.

We should check if we are dealing with a file not stored locally.

Possibly related to #65.

Timusan commented 1 year ago

Above PR fixes the issue for me when running files on S3 using Django Storages Boto3. As mentioned in the PR: Not sure if this scales to all possible causes of the NotImplementedError exception though.