3.1.0 • Published 5 months ago

yt-dm-stream-url v3.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

yt-dm-stream-url

Node project to get the live m3u8 streaming links from youtube & dailymotion

Installation

Node.js required

npm install yt-dm-stream-url

Usage

Require YouTube channel-id.

Example:

https://www.youtube.com/channel/your_youtube_channel_id https://www.youtube.com/watch?v=your_youtube_video_id https://www.dailymotion.com/video/your_dailymotion_video_id https://www.hungama.com/live-tv/your_hungama_video_id/

Note:

Only supports links given in above formats

import yt from 'yt-dm-stream-url';

// returns .m3u8 link for the live stream 
await yt.getStream("https://www.youtube.com/channel/UCiLfeVOBJoAPUbiKxrHBcuw")
    .then(data => console.log(data))

    OR

await yt.getStream("https://www.hungama.com/live-tv/dil-se/41239464/")
    .then(data => console.log(data))

Example output:

'https://manifest.googlevideo.com/api/manifest/hls_variant/expire/1671561211/ei/m6uhY42gMteA4-EPlYu0kAM/ip/223.178.21.214/id/2yj5oU6ZfNM.1/source/yt_live_broadcast/requiressl/yes/hfr/1/playlist_duration/30/manifest_duration/30/maudio/1/vprv/1/go/1/pacing/0/nvgoi/1/keepalive/yes/fexp/24001373,24007246/dover/11/itag/0/playlist_type/DVR/sparams/expire,ei,ip,id,source,requiressl,hfr,playlist_duration,manifest_duration,maudio,vprv,go,itag,playlist_type/sig/AOq0QJ8wRQIhAI4HISSkAiN76lFG62EP0h6nN9rob9jUz2_fz3ADyzNfAiAbi-JOQNbbKVpa8dXiu11lpAM_UadQIsrQv2XVMcUi4Q==/file/index.m3u8'

Contribute

Did you find a bug? Do you have an idea or a feature request? Open an issue!

License

ISC

3.0.2

5 months ago

3.1.0

5 months ago

3.0.1

10 months ago

3.0.0

10 months ago

2.0.3

10 months ago

2.0.2

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.2.3

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago