Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
cleanup
  • Loading branch information
przemyslawpluta committed Jan 17, 2016
1 parent 3d2f168 commit 1565229
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ I also made a [pure Javascript youtube downloading module](https://github.com/fe

If you're only interested in downloading only from youtube, you should consider using the other module.

NO LONGER ACTIVELY SUPPORTED BY ME.

I don't want to support this anymore, as I have to keep track with the latest youtube-dl, its changes, its workings with other extractors. It's hard to debug, I'd rather not do it. If you like this project and would like to maintain it, feel free to open an issue asking.

# Usage
## Downloading videos

Expand Down Expand Up @@ -79,6 +75,12 @@ video.on('info', function(info) {

video.pipe(fs.createWriteStream('myvideo.mp4', { flags: 'a' }));

// Will be called if download was already completed and there is nothing more to download.
video.on('complete', function complete(info) {
'use strict';
console.log('filename: ' + info._filename + ' already downloaded.');
});

video.on('end', function() {
console.log('finished downloading!');
});
Expand All @@ -97,7 +99,7 @@ size: 5109213
```

```
[jay@macpro ~/nodejs/node-youtube-dl/example]$ node resume.js
[jay@macpro ~/nodejs/node-youtube-dl/example]$ node resume.js
Download started
filename: 1 1 1-179MiZSibco.mp4
size: 5109213
Expand Down
2 changes: 1 addition & 1 deletion example/extractors.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var ytdl = require('..');

ytdl.getExtractors(true, function getExtractors(err, list) {
'use strict';
'use strict';
console.log('Found ' + list.length + ' extractors');

var show = 4;
Expand Down
6 changes: 6 additions & 0 deletions example/resume.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ video.on('info', function(info) {

video.pipe(fs.createWriteStream('myvideo.mp4', {flags: 'a'}));

// Will be called if download was already completed and there is nothing more to download.
video.on('complete', function complete(info) {
'use strict';
console.log('filename: ' + info._filename + ' already downloaded.');
});

video.on('end', function end() {
'use strict';
console.log('finished downloading!');
Expand Down

0 comments on commit 1565229

Please sign in to comment.