youtube-ext
Advanced tools
Comparing version 1.1.15 to 1.1.16
@@ -17,3 +17,2 @@ "use strict"; | ||
const extractStreamInfo_1 = require("./extractStreamInfo"); | ||
const utils_1 = require("./utils"); | ||
/** | ||
@@ -23,3 +22,3 @@ * Get full information about a YouTube video. | ||
const videoInfo = (url, options = {}) => __awaiter(void 0, void 0, void 0, function* () { | ||
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, _65, _66, _67; | ||
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, _65, _66; | ||
if (typeof url !== "string") { | ||
@@ -141,8 +140,8 @@ throw new Error(constants_1.constants.errors.type("url", "string", typeof url)); | ||
}, | ||
keywords: (0, utils_1.parseYoutubeKeywords)((_58 = (_57 = initialPlayer === null || initialPlayer === void 0 ? void 0 : initialPlayer.videoDetails) === null || _57 === void 0 ? void 0 : _57.keywords) !== null && _58 !== void 0 ? _58 : ""), | ||
isLive: (_59 = initialPlayer === null || initialPlayer === void 0 ? void 0 : initialPlayer.videoDetails) === null || _59 === void 0 ? void 0 : _59.isLiveContent, | ||
isUnlisted: (_61 = (_60 = initialPlayer === null || initialPlayer === void 0 ? void 0 : initialPlayer.microformat) === null || _60 === void 0 ? void 0 : _60.playerMicroformatRenderer) === null || _61 === void 0 ? void 0 : _61.isUnlisted, | ||
isFamilySafe: (_63 = (_62 = initialPlayer === null || initialPlayer === void 0 ? void 0 : initialPlayer.microformat) === null || _62 === void 0 ? void 0 : _62.playerMicroformatRenderer) === null || _63 === void 0 ? void 0 : _63.isFamilySafe, | ||
category: (_65 = (_64 = initialPlayer === null || initialPlayer === void 0 ? void 0 : initialPlayer.microformat) === null || _64 === void 0 ? void 0 : _64.playerMicroformatRenderer) === null || _65 === void 0 ? void 0 : _65.category, | ||
embed: (_67 = (_66 = initialPlayer === null || initialPlayer === void 0 ? void 0 : initialPlayer.microformat) === null || _66 === void 0 ? void 0 : _66.playerMicroformatRenderer) === null || _67 === void 0 ? void 0 : _67.embed, | ||
keywords: (_57 = initialPlayer === null || initialPlayer === void 0 ? void 0 : initialPlayer.videoDetails) === null || _57 === void 0 ? void 0 : _57.keywords, | ||
isLive: (_58 = initialPlayer === null || initialPlayer === void 0 ? void 0 : initialPlayer.videoDetails) === null || _58 === void 0 ? void 0 : _58.isLiveContent, | ||
isUnlisted: (_60 = (_59 = initialPlayer === null || initialPlayer === void 0 ? void 0 : initialPlayer.microformat) === null || _59 === void 0 ? void 0 : _59.playerMicroformatRenderer) === null || _60 === void 0 ? void 0 : _60.isUnlisted, | ||
isFamilySafe: (_62 = (_61 = initialPlayer === null || initialPlayer === void 0 ? void 0 : initialPlayer.microformat) === null || _61 === void 0 ? void 0 : _61.playerMicroformatRenderer) === null || _62 === void 0 ? void 0 : _62.isFamilySafe, | ||
category: (_64 = (_63 = initialPlayer === null || initialPlayer === void 0 ? void 0 : initialPlayer.microformat) === null || _63 === void 0 ? void 0 : _63.playerMicroformatRenderer) === null || _64 === void 0 ? void 0 : _64.category, | ||
embed: (_66 = (_65 = initialPlayer === null || initialPlayer === void 0 ? void 0 : initialPlayer.microformat) === null || _65 === void 0 ? void 0 : _65.playerMicroformatRenderer) === null || _66 === void 0 ? void 0 : _66.embed, | ||
stream: initialPlayer === null || initialPlayer === void 0 ? void 0 : initialPlayer.streamingData, | ||
@@ -149,0 +148,0 @@ }; |
{ | ||
"name": "youtube-ext", | ||
"version": "1.1.15", | ||
"version": "1.1.16", | ||
"description": "A simple YouTube scraper and downloader.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
81245
1505