Skip to content
This repository was archived by the owner on May 16, 2020. It is now read-only.

Remote url support#7

Open
Maxou44 wants to merge 2 commits intom-rots:masterfrom
Maxou44:master
Open

Remote url support#7
Maxou44 wants to merge 2 commits intom-rots:masterfrom
Maxou44:master

Conversation

@Maxou44
Copy link

@Maxou44 Maxou44 commented Jan 10, 2020

Hello,

Thanks for your project, it looks nice and works well 😉

This PR adds the URL support, now you can put any http(s) url to get information about any remote file 🥰

import mediainfo from '../src';

mediainfo('http://dl5.webmfiles.org/big-buck-bunny_trailer.webm').then(
  (response) => {
    console.log(JSON.stringify(
      response, null, 2,
    ));
  },
).catch((err) => {
  console.error(err);
});

The mediainfo function now takes an headers object as second paramters, in case of you need to send auth headers 😎

I made changes about the package export, can you check if I broke something?
I didn't updated the yarn.lock file, can you update it?

Have a great day,
I hope you'll merge and release it asap 😏

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant