mediachain / oldchain-client

[DEPRECATED] old mediachain client experiments
MIT License
4 stars 2 forks source link

separate binary asset loading from get_object api #83

Closed yusefnapora closed 8 years ago

yusefnapora commented 8 years ago

This removes the thumbnail fetching from the get_object method (and canonical_stream, which uses it). Instead, it exposes a new open_binary_asset method, which accepts the asset dictionary and returns a file-like object that will contain the object. It will try to fetch from ipfs first if there's an ipfs link present, otherwise will try to fetch the http uri.