-
Notifications
You must be signed in to change notification settings - Fork 811
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add IPv6 block rotating (#713)
* IPv6 Rotating ^-^ * linter got mad at missing semicolon nice * Fixing format Fixing the format of files so eslint does not throw any errors. * adding colon * added test for IPv6 Block * Forgot to lint * Info test and download test improvement * use net instead if .includes * remove chunking-related stuff * Update lib/util.js Co-authored-by: fent <fentbox@gmail.com> * improve tests, fix the check in util * add test for invalid subnet * place done's on separate lines * fix typo in readme * fixing README.md * fixed mistake * fixed other mistake * Update README.md Co-authored-by: fent <fentbox@gmail.com> * Update README.md Co-authored-by: fent <fentbox@gmail.com> * fix conflicts * i forgot about this change * Fix undefined testInfo * ignoring invalid this * fix info test * fix million's await * remove useless part * Adding requested test * remove unrelated dependency * remove unused option * update readme * lint ipv6 example * remove ip6 dependencie * improve test coverage * (es)lint * Update lib/utils.js Co-authored-by: Voltrex <mohammadkeyvanzade94@gmail.com> Co-authored-by: MILLION <apaolini900o@outlook.com> Co-authored-by: Million900o <apaolini900o@gmail.com> Co-authored-by: fent <fentbox@gmail.com> Co-authored-by: MILLION <30964205+Million900o@users.noreply.github.com> Co-authored-by: TimeForANinja <t.kutscha@yahoo.de> Co-authored-by: TimeForANinja <TimeForANinja@users.noreply.github.com> Co-authored-by: Voltrex <mohammadkeyvanzade94@gmail.com>
- Loading branch information
1 parent
b35bdad
commit 06f5611
Showing
10 changed files
with
290 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
const ytdl = require('..'); | ||
|
||
const options = { | ||
quality: 'highest', | ||
IPv6Block: '2001:2::/48', | ||
// Example /48 block provided by: | ||
// https://www.iana.org/assignments/ipv6-unicast-address-assignments/ipv6-unicast-address-assignments.xhtml | ||
}; | ||
const url = 'https://www.youtube.com/watch?v=WhXefyLs-uw'; | ||
const output = path.resolve(__dirname, 'video.mp4'); | ||
|
||
const video = ytdl(url, options); | ||
video.pipe(fs.createWriteStream(output)); | ||
console.log('Downloading...'); | ||
video.on('end', () => { | ||
console.log('Finished downloading.'); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters