2.0.2 • Published 3 years ago

sync-lc-providers v2.0.2

Weekly downloads
19
License
MIT
Repository
-
Last release
3 years ago

sync-lc-providers

Node.JS library to fetch info from Youtube, Soundcloud and etc.

Supported providers

  • Coub
  • Soundcloud
  • Vimeo
  • Twitch Streams
  • Youtube (including playlists)
  • Video/audio files

!

Right now, it always downloads a bunch of ffmpeg binaries, so the installation might look stuck for some time.

Usage

const providers = require('sync-lc-providers');

// Get single video info
providers.youtube.info('https://www.youtube.com/watch?v=iNCRfh6dx60').then(info => ...).catch(error => ...);
/**
  Returns promise with video info:
  {
      duration: 195,
      title: 'ChunnHEbyou',
      thumbnail: 'https://i.ytimg.com/vi/iNCRfh6dx60/default.jpg',
      url: 'https://www.youtube.com/watch?v=iNCRfh6dx60',
      type: 'youtube',
      id: 'iNCRfh6dx60',
      disableTiming: false
  }
  
  If there's any errors, rejects the promise.
**/

// Get all videos from playlist

providers.youtubeList.entities('https://www.youtube.com/playlist?list=PLN1mjQ-i1XV5zC72G4NyaFANSeVAIL43U').then(entities => ...).catch(error => ...);
/**
  Returns promise with array of entities in the same format as .info
**/
2.0.2

3 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.17

5 years ago