1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-12-23 00:23:17 +00:00

Ytdl-core update

This commit is contained in:
MatteZ02 2019-06-12 12:26:54 +03:00
parent 2a308321ae
commit a40248bc4a
10 changed files with 37 additions and 22 deletions

View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/html-entities/-/html-entities-1.2.1.tgz", "_resolved": "https://registry.npmjs.org/html-entities/-/html-entities-1.2.1.tgz",
"_shasum": "0df29351f0721163515dfb9e5543e5f6eed5162f", "_shasum": "0df29351f0721163515dfb9e5543e5f6eed5162f",
"_spec": "html-entities@^1.1.3", "_spec": "html-entities@^1.1.3",
"_where": "C:\\Users\\matia\\Bot Files\\node_modules\\ytdl-core", "_where": "C:\\Users\\matia\\Documents\\GitHub\\Musix\\node_modules\\ytdl-core",
"author": { "author": {
"name": "Marat Dulin", "name": "Marat Dulin",
"email": "mdevils@yandex.ru" "email": "mdevils@yandex.ru"

View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/m3u8stream/-/m3u8stream-0.6.2.tgz", "_resolved": "https://registry.npmjs.org/m3u8stream/-/m3u8stream-0.6.2.tgz",
"_shasum": "c2c62ddce88156d80378dd59be010c8b8e9d120b", "_shasum": "c2c62ddce88156d80378dd59be010c8b8e9d120b",
"_spec": "m3u8stream@^0.6.2", "_spec": "m3u8stream@^0.6.2",
"_where": "C:\\Users\\matia\\Bot Files\\node_modules\\ytdl-core", "_where": "C:\\Users\\matia\\Documents\\GitHub\\Musix\\node_modules\\ytdl-core",
"author": { "author": {
"name": "fent", "name": "fent",
"url": "https://github.com/fent" "url": "https://github.com/fent"

2
node_modules/miniget/package.json generated vendored
View File

@ -22,7 +22,7 @@
"_resolved": "https://registry.npmjs.org/miniget/-/miniget-1.5.1.tgz", "_resolved": "https://registry.npmjs.org/miniget/-/miniget-1.5.1.tgz",
"_shasum": "4f93840d5aaed21634cd12fd07d22f7d64e9d570", "_shasum": "4f93840d5aaed21634cd12fd07d22f7d64e9d570",
"_spec": "miniget@^1.4.0", "_spec": "miniget@^1.4.0",
"_where": "C:\\Users\\matia\\Bot Files\\node_modules\\ytdl-core", "_where": "C:\\Users\\matia\\Documents\\GitHub\\Musix\\node_modules\\ytdl-core",
"author": { "author": {
"name": "fent", "name": "fent",
"url": "https://github.com/fent" "url": "https://github.com/fent"

2
node_modules/sax/package.json generated vendored
View File

@ -22,7 +22,7 @@
"_resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", "_resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz",
"_shasum": "2816234e2378bddc4e5354fab5caa895df7100d9", "_shasum": "2816234e2378bddc4e5354fab5caa895df7100d9",
"_spec": "sax@^1.1.3", "_spec": "sax@^1.1.3",
"_where": "C:\\Users\\matia\\Bot Files\\node_modules\\ytdl-core", "_where": "C:\\Users\\matia\\Documents\\GitHub\\Musix\\node_modules\\ytdl-core",
"author": { "author": {
"name": "Isaac Z. Schlueter", "name": "Isaac Z. Schlueter",
"email": "i@izs.me", "email": "i@izs.me",

2
node_modules/ytdl-core/LICENSE generated vendored
View File

@ -1,6 +1,6 @@
MIT License MIT License
Copyright (C) 2012 by fent Copyright (C) 2012-present by fent
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

8
node_modules/ytdl-core/README.md generated vendored
View File

@ -16,6 +16,9 @@ You can contact us for support on our [chat server](https://discord.gg/V3vSCs7)
```js ```js
const fs = require('fs'); const fs = require('fs');
const ytdl = require('ytdl-core'); const ytdl = require('ytdl-core');
// TypeScript: import ytdl from 'ytdl-core'; with --esModuleInterop
// TypeScript: import * as ytdl from 'ytdl-core'; with --allowSyntheticDefaultImports
// TypeScript: import ytdl = require('ytdl-core'); with neither of the above
ytdl('http://www.youtube.com/watch?v=A02s8omM_hI') ytdl('http://www.youtube.com/watch?v=A02s8omM_hI')
.pipe(fs.createWriteStream('video.flv')); .pipe(fs.createWriteStream('video.flv'));
@ -157,6 +160,11 @@ For getting started with that, you can look at the `extractActions()` function i
npm install ytdl-core npm install ytdl-core
``` ```
Or for Yarn users:
```bash
yarn add ytdl-core
```
# Tests # Tests
Tests are written with [mocha](https://mochajs.org) Tests are written with [mocha](https://mochajs.org)

9
node_modules/ytdl-core/lib/sig.js generated vendored
View File

@ -242,7 +242,14 @@ exports.setDownloadURL = (format, sig, debug) => {
// See https://github.com/fent/node-ytdl-core/issues/127 // See https://github.com/fent/node-ytdl-core/issues/127
query.ratebypass = 'yes'; query.ratebypass = 'yes';
if (sig) { if (sig) {
query.signature = sig; // When YouTube provides a `sp` parameter the signature `sig` must go
// into the parameter it specifies.
// See https://github.com/fent/node-ytdl-core/issues/417
if (format.sp) {
query[format.sp] = sig;
} else {
query.signature = sig;
}
} }
format.url = url.format(parsedUrl); format.url = url.format(parsedUrl);

24
node_modules/ytdl-core/package.json generated vendored
View File

@ -1,28 +1,28 @@
{ {
"_from": "ytdl-core@^0.29.1", "_from": "ytdl-core",
"_id": "ytdl-core@0.29.1", "_id": "ytdl-core@0.29.2",
"_inBundle": false, "_inBundle": false,
"_integrity": "sha512-J/TW3rupqE6y+TczHTTFjuwf23tweA9fasmnbU/5yYH0O2IRFLcwgHbbvEPt3t8mtXWGX207+TWH7uuJpB1FKQ==", "_integrity": "sha512-rQTxqxF09tKGgWxVtvFfi6ga1KWcHNbUGz09yTklirhqQlsIYvaDFCEhJ0K/RlzMH12FquAAMzh+Qi35fkwbFQ==",
"_location": "/ytdl-core", "_location": "/ytdl-core",
"_phantomChildren": {}, "_phantomChildren": {},
"_requested": { "_requested": {
"type": "range", "type": "tag",
"registry": true, "registry": true,
"raw": "ytdl-core@^0.29.1", "raw": "ytdl-core",
"name": "ytdl-core", "name": "ytdl-core",
"escapedName": "ytdl-core", "escapedName": "ytdl-core",
"rawSpec": "^0.29.1", "rawSpec": "",
"saveSpec": null, "saveSpec": null,
"fetchSpec": "^0.29.1" "fetchSpec": "latest"
}, },
"_requiredBy": [ "_requiredBy": [
"#USER", "#USER",
"/" "/"
], ],
"_resolved": "https://registry.npmjs.org/ytdl-core/-/ytdl-core-0.29.1.tgz", "_resolved": "https://registry.npmjs.org/ytdl-core/-/ytdl-core-0.29.2.tgz",
"_shasum": "2d7a1505d47a34a02551639a8d4092af959c4902", "_shasum": "003e5d821aab6dcc2f5c01d10d2abc538cbd92b5",
"_spec": "ytdl-core@^0.29.1", "_spec": "ytdl-core",
"_where": "C:\\Users\\matia\\Bot Files", "_where": "C:\\Users\\matia\\Documents\\GitHub\\Musix",
"author": { "author": {
"name": "fent", "name": "fent",
"url": "https://github.com/fent" "url": "https://github.com/fent"
@ -95,5 +95,5 @@
"test": "istanbul cover node_modules/mocha/bin/_mocha -- -t 16000 test/*-test.js" "test": "istanbul cover node_modules/mocha/bin/_mocha -- -t 16000 test/*-test.js"
}, },
"types": "./typings/index.d.ts", "types": "./typings/index.d.ts",
"version": "0.29.1" "version": "0.29.2"
} }

6
package-lock.json generated
View File

@ -456,9 +456,9 @@
} }
}, },
"ytdl-core": { "ytdl-core": {
"version": "0.29.1", "version": "0.29.2",
"resolved": "https://registry.npmjs.org/ytdl-core/-/ytdl-core-0.29.1.tgz", "resolved": "https://registry.npmjs.org/ytdl-core/-/ytdl-core-0.29.2.tgz",
"integrity": "sha512-J/TW3rupqE6y+TczHTTFjuwf23tweA9fasmnbU/5yYH0O2IRFLcwgHbbvEPt3t8mtXWGX207+TWH7uuJpB1FKQ==", "integrity": "sha512-rQTxqxF09tKGgWxVtvFfi6ga1KWcHNbUGz09yTklirhqQlsIYvaDFCEhJ0K/RlzMH12FquAAMzh+Qi35fkwbFQ==",
"requires": { "requires": {
"html-entities": "^1.1.3", "html-entities": "^1.1.3",
"m3u8stream": "^0.6.2", "m3u8stream": "^0.6.2",

View File

@ -16,6 +16,6 @@
"opusscript": "0.0.6", "opusscript": "0.0.6",
"request": "^2.88.0", "request": "^2.88.0",
"simple-youtube-api": "^5.1.1", "simple-youtube-api": "^5.1.1",
"ytdl-core": "^0.29.1" "ytdl-core": "^0.29.2"
} }
} }