kapouer / url-inspector

Get metadata about any url
MIT License
28 stars 8 forks source link

pipe to exiftool to see if exiftool returns as soon as enough data is gathered #4

Closed kapouer closed 8 years ago

kapouer commented 8 years ago

Instead of getting n bytes then spawning to exiftool, pipe data to exiftool and wait for events on the stdout stream.

kapouer commented 8 years ago

Some formats (jpeg and ...?) can exit early, and since now exiftool stays open, we retry until it finds some tags. Done !