Skip to content

Commit 1b96856

Browse files
committed
fapposen funker ikke+
1 parent 460de2b commit 1b96856

File tree

304 files changed

+78717
-153
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

304 files changed

+78717
-153
lines changed

Diff for: bundle.js

+117-125
Large diffs are not rendered by default.

Diff for: irl-test.js

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
const assert = require('assert');
2+
const nock = require('nock');
3+
const ytdl = require('..');
4+
5+
6+
const videos = {
7+
'Regular video': 'mgOS64BF2eU',
8+
'Age restricted': 'Zc09khxyXfA',
9+
'Embed domain restricted': 'B3eAMGXFw1o',
10+
'No embed allowed': 'GFg8BP01F5Q',
11+
Offensive: 'hCKDsjLt_qU',
12+
'Live broadcast': '5qap5aO4i9A',
13+
};
14+
15+
16+
process.env.YTDL_NO_UPDATE = 'true';
17+
describe('Try using ytdl-core without mocking', () => {
18+
before(() => {
19+
nock.cleanAll();
20+
nock.enableNetConnect();
21+
});
22+
afterEach(() => {
23+
ytdl.cache.sig.clear();
24+
ytdl.cache.info.clear();
25+
ytdl.cache.cookie.clear();
26+
});
27+
28+
describe('Try starting a download', () => {
29+
for (let [desc, videoID] of Object.entries(videos)) {
30+
describe(desc, () => {
31+
it('Request status code is 2xx', done => {
32+
const stream = ytdl(videoID);
33+
stream.on('error', done);
34+
stream.once('response', res => {
35+
stream.destroy();
36+
assert.ok(res.statusCode >= 200 && res.statusCode < 300);
37+
done();
38+
});
39+
});
40+
});
41+
}
42+
});
43+
});

Diff for: node_modules/.bin/extract-zip

+16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: node_modules/.bin/extract-zip.cmd

+17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: node_modules/.bin/extract-zip.ps1

+28
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)