Mike Fährmann 536c088462
[downloader:http] improve 'adjust-extensions' (#776)
Check file headers against a list of file signatures before
downloading the whole file and writing it to disk.

The file signature check needs some improvements (*),
but it produces usable results for the most part.

(*)
- 'webp', 'wav', and others start with 'RFFI'
- 'svg' uses the same "signature" as all XML documents
- 'webm' has the same signature as 'mkv' files
- only 'mp3' files in an ID3v2 container get recognized
2020-11-29 20:55:35 +01:00
..
2020-11-27 13:55:30 +01:00
2020-10-25 03:05:10 +01:00
2020-11-28 18:18:49 +01:00
2020-05-19 22:32:53 +02:00
2020-11-14 22:40:31 +01:00
2020-11-14 22:40:31 +01:00