Commit b9bc8309 authored by kaniini's avatar kaniini
Browse files

Merge branch 'ogg-theora-detection' into 'develop'

Add Theora detection to upload.ex

See merge request !479
parents 5ae6088d 0d229613
Pipeline #4731 passed with stages
in 7 minutes and 57 seconds
......@@ -162,7 +162,13 @@ def get_content_type(file) do
<<0x4F, 0x67, 0x67, 0x53, 0x00, 0x02, 0x00, 0x00>> ->
case IO.binread(f, 27) do
<<_::size(160), 0x80, 0x74, 0x68, 0x65, 0x6F, 0x72, 0x61>> ->
_ ->
<<0x52, 0x49, 0x46, 0x46, _, _, _, _>> ->
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment