mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-20 04:51:16 +00:00
fix(linter): remove unneeded vars and add jsdoc
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
const Axios = require('axios');
|
||||
const Stream = require('stream');
|
||||
const Parser = require('./parser');
|
||||
const CancelToken = Axios.CancelToken;
|
||||
const EventEmitter = require('events');
|
||||
|
||||
const OAuth = require('./core/OAuth');
|
||||
@@ -20,11 +17,8 @@ const Search = require('./parser/youtube/Search');
|
||||
|
||||
const Utils = require('./utils/Utils');
|
||||
const Request = require('./utils/Request');
|
||||
const Constants = require('./utils/Constants');
|
||||
|
||||
const Proto = require('./proto');
|
||||
const NToken = require('./deciphers/NToken');
|
||||
const Signature = require('./deciphers/Signature');
|
||||
const Channel = require('./parser/youtube/Channel');
|
||||
const Playlist = require('./parser/youtube/Playlist');
|
||||
const FilterableFeed = require('./core/FilterableFeed');
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
const NToken = require('../../../deciphers/NToken');
|
||||
const Signature = require('../../../deciphers/Signature');
|
||||
const QueryString = require('querystring');
|
||||
|
||||
class Format {
|
||||
constructor(data) {
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
const Parser = require('..');
|
||||
'use strict';
|
||||
|
||||
//const Parser = require('..');
|
||||
|
||||
// TODO: implement all renderers related to this
|
||||
class RichSection {
|
||||
type = 'RichSection';
|
||||
|
||||
constructor(data) {
|
||||
constructor(/* data */) {
|
||||
// this.contents = Parser.parse(data.content);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,6 +20,7 @@ class VideoInfo {
|
||||
* @param {object} data - API response.
|
||||
* @param {import('../../core/Actions')} actions
|
||||
* @param {import('../../core/Player')} player
|
||||
* @param {string} cpn - Client Playback Nonce
|
||||
*/
|
||||
constructor(data, actions, player, cpn) {
|
||||
this.#actions = actions;
|
||||
@@ -306,6 +307,7 @@ class VideoInfo {
|
||||
* @param {object} [options.range] - download range, indicates which bytes should be downloaded.
|
||||
* @param {number} options.range.start - the beginning of the range.
|
||||
* @param {number} options.range.end - the end of the range.
|
||||
* @param {PassThrough} [_stream]
|
||||
* @returns {PassThrough}
|
||||
*/
|
||||
download(options = {}, _stream) {
|
||||
|
||||
Reference in New Issue
Block a user