youtube-ext
Advanced tools
Comparing version 1.1.7 to 1.1.8
@@ -71,5 +71,5 @@ import { AxiosRequestConfig } from "axios"; | ||
/** | ||
* Get full information about a YouTube channel | ||
* Get full information about a YouTube channel. | ||
*/ | ||
export declare const channelInfo: (url: string, options?: ChannelInfoOptions) => Promise<ChannelInfo>; | ||
export default channelInfo; |
@@ -19,3 +19,3 @@ "use strict"; | ||
/** | ||
* Get full information about a YouTube channel | ||
* Get full information about a YouTube channel. | ||
*/ | ||
@@ -22,0 +22,0 @@ const channelInfo = (url, options = {}) => __awaiter(void 0, void 0, void 0, function* () { |
@@ -7,3 +7,5 @@ import { AxiosRequestConfig } from "axios"; | ||
/** | ||
* Get only stream information about a YouTube video | ||
* Get only stream information about a YouTube video. | ||
* | ||
* Note: This might break often. | ||
*/ | ||
@@ -10,0 +12,0 @@ export declare const extractStreamInfo: (url: string, options?: ExtractStreamInfoOptions) => Promise<VideoStream>; |
@@ -19,3 +19,5 @@ "use strict"; | ||
/** | ||
* Get only stream information about a YouTube video | ||
* Get only stream information about a YouTube video. | ||
* | ||
* Note: This might break often. | ||
*/ | ||
@@ -49,3 +51,3 @@ const extractStreamInfo = (url, options = {}) => __awaiter(void 0, void 0, void 0, function* () { | ||
try { | ||
const streamingDataRaw = (0, utils_1.contentBetween)(data, '"streamingData":', ',"playerAds":'); | ||
const streamingDataRaw = (0, utils_1.contentBetween)(data, '"streamingData":', "}]},") + "}]}"; | ||
streamingData = JSON.parse(streamingDataRaw); | ||
@@ -52,0 +54,0 @@ } |
@@ -19,3 +19,5 @@ /// <reference types="node" /> | ||
/** | ||
* Generates Stream URL(s). Always use this to get streams before getting readable streams! | ||
* Generates Stream URL(s). | ||
* | ||
* Always use this to get streams before getting readable streams! | ||
*/ | ||
@@ -28,5 +30,5 @@ export declare const getFormats: (formats: VideoStream, options?: GetFormatsOptions) => Promise<VideoStreamEntity[]>; | ||
/** | ||
* Returns a YouTube stream | ||
* Returns a YouTube stream. | ||
* | ||
* **Info:** Install "m3u8stream" using `npm install m3u8stream` for livestream support | ||
* **Info:** Install "m3u8stream" using `npm install m3u8stream` for livestream support. | ||
*/ | ||
@@ -33,0 +35,0 @@ export declare const getReadableStream: (stream: { |
@@ -19,3 +19,5 @@ "use strict"; | ||
/** | ||
* Generates Stream URL(s). Always use this to get streams before getting readable streams! | ||
* Generates Stream URL(s). | ||
* | ||
* Always use this to get streams before getting readable streams! | ||
*/ | ||
@@ -107,5 +109,5 @@ const getFormats = (formats, options = {}) => __awaiter(void 0, void 0, void 0, function* () { | ||
/** | ||
* Returns a YouTube stream | ||
* Returns a YouTube stream. | ||
* | ||
* **Info:** Install "m3u8stream" using `npm install m3u8stream` for livestream support | ||
* **Info:** Install "m3u8stream" using `npm install m3u8stream` for livestream support. | ||
*/ | ||
@@ -112,0 +114,0 @@ const getReadableStream = (stream, options = {}) => __awaiter(void 0, void 0, void 0, function* () { |
@@ -9,4 +9,4 @@ export * from "./search"; | ||
/** | ||
* Package version | ||
* Package version. | ||
*/ | ||
export declare const version: string; |
@@ -38,4 +38,4 @@ "use strict"; | ||
/** | ||
* Package version | ||
* Package version. | ||
*/ | ||
exports.version = require("../package.json").version; |
@@ -38,5 +38,5 @@ import { AxiosRequestConfig } from "axios"; | ||
/** | ||
* Get full information about a YouTube playlist | ||
* Get full information about a YouTube playlist. | ||
*/ | ||
export declare const playlistInfo: (url: string, options?: PlaylistInfoOptions) => Promise<PlaylistInfo>; | ||
export default playlistInfo; |
@@ -19,3 +19,3 @@ "use strict"; | ||
/** | ||
* Get full information about a YouTube playlist | ||
* Get full information about a YouTube playlist. | ||
*/ | ||
@@ -22,0 +22,0 @@ const playlistInfo = (url, options = {}) => __awaiter(void 0, void 0, void 0, function* () { |
@@ -119,5 +119,5 @@ import { AxiosRequestConfig } from "axios"; | ||
/** | ||
* Get full information about a YouTube video | ||
* Get full information about a YouTube video. | ||
*/ | ||
export declare const videoInfo: (url: string, options?: VideoInfoOptions) => Promise<VideoInfo>; | ||
export default videoInfo; |
@@ -20,3 +20,3 @@ "use strict"; | ||
/** | ||
* Get full information about a YouTube video | ||
* Get full information about a YouTube video. | ||
*/ | ||
@@ -23,0 +23,0 @@ const videoInfo = (url, options = {}) => __awaiter(void 0, void 0, void 0, function* () { |
{ | ||
"name": "youtube-ext", | ||
"version": "1.1.7", | ||
"version": "1.1.8", | ||
"description": "A simple YouTube scraper and downloader.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
70520
1314