How to use the imgur.getAlbumInfo function in imgur

To help you get started, we’ve selected a few imgur examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ififfy / flipflip / src / renderer / components / player / SourceScraper.tsx View on Github external
return new CancelablePromise((resolve) => {
    imgur.getAlbumInfo(getFileGroup(url))
      .then((json: any) => {
        const images = json.data.images.map((i: any) => i.link);
        helpers.next = null;
        helpers.count = helpers.count + filterPathsToJustPlayable(IF.any, images, true).length;
        resolve({
          data: filterPathsToJustPlayable(filter, images, true),
          helpers: helpers,
        })
      })
      .catch((err: any) => {
        console.error(err.message);
        resolve(null);
      });
  });
}

imgur

Unofficial JavaScript library for Imgur

AGPL-3.0
Latest version published 10 months ago

Package Health Score

64 / 100
Full package analysis