perkeep/internal/magic
U-GINA-PC\gina 8e56f1b305 Reduce dependency on OS in determining if file is video.
Introduce magic.IsVideoFileName, add test for it.

Fixes this error:

--- FAIL: TestIsVideo (0.08s)
    search_test.go:41: IsVideo failed video=true filename=movie.mkv mimetype=application/octet-stream
FAIL
FAIL	perkeep.org/pkg/types/camtypes	0.399s

Discussion about this problem is here:
https://groups.google.com/forum/#!topic/perkeep/Wdb_0Os6ZkY

Change-Id: I14f54bd60c9495d6aa665036b83c813673608ad7
2019-04-02 09:56:09 -07:00
..
testdata internal/magic: recognize heic images 2018-04-11 15:27:36 -07:00
magic.go Reduce dependency on OS in determining if file is video. 2019-04-02 09:56:09 -07:00
magic_test.go Reduce dependency on OS in determining if file is video. 2019-04-02 09:56:09 -07:00