youtube.ts
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -46,3 +46,3 @@ "use strict"; | ||
(function () { return __awaiter(void 0, void 0, void 0, function () { | ||
var cookie, key; | ||
var cookie, key, c; | ||
return __generator(this, function (_a) { | ||
@@ -53,12 +53,6 @@ switch (_a.label) { | ||
key = "lJGPgo6rkJXi8_l2BUDvkNOJM2V8MTU3MTg5MzMwM0AxNTcxODA2OTAz"; | ||
// await youtube.util.downloadMyVideo("mLJQ0HO5Alc", key, cookie, "./videos") | ||
// await youtube.util.downloadMyVideos("tenpi", key, cookie, "./videos/tenpi") | ||
return [4 /*yield*/, youtube.util.downloadMP3("mLJQ0HO5Alc", "./videos/ytdl/bad") | ||
// await youtube.util.downloadChannelVideos("UC8qU4aFe81jzG1attsyQ5wQ", "./videos/tenpi") | ||
// console.log(result.items[0]) | ||
]; | ||
return [4 /*yield*/, youtube.videos.comments("https://www.youtube.com/watch?v=cZDsFjEmlDg")]; | ||
case 1: | ||
// await youtube.util.downloadMyVideo("mLJQ0HO5Alc", key, cookie, "./videos") | ||
// await youtube.util.downloadMyVideos("tenpi", key, cookie, "./videos/tenpi") | ||
_a.sent(); | ||
c = _a.sent(); | ||
console.log(c); | ||
return [2 /*return*/]; | ||
@@ -65,0 +59,0 @@ } |
@@ -26,4 +26,4 @@ import { YoutubeThumbnail } from "./index"; | ||
high: YoutubeThumbnail; | ||
standard: YoutubeThumbnail; | ||
maxres: YoutubeThumbnail; | ||
standard?: YoutubeThumbnail; | ||
maxres?: YoutubeThumbnail; | ||
}; | ||
@@ -30,0 +30,0 @@ channelTitle: string; |
@@ -44,4 +44,4 @@ export interface YoutubeVideo { | ||
high: YoutubeThumbnail; | ||
standard: YoutubeThumbnail; | ||
maxres: YoutubeThumbnail; | ||
standard?: YoutubeThumbnail; | ||
maxres?: YoutubeThumbnail; | ||
}; | ||
@@ -48,0 +48,0 @@ channelTitle: string; |
@@ -17,5 +17,7 @@ import Youtube from "./Youtube" | ||
// await youtube.util.downloadMyVideos("tenpi", key, cookie, "./videos/tenpi") | ||
await youtube.util.downloadMP3("mLJQ0HO5Alc", "./videos/ytdl/bad") | ||
// await youtube.util.downloadMP3("mLJQ0HO5Alc", "./videos/ytdl/bad") | ||
// await youtube.util.downloadChannelVideos("UC8qU4aFe81jzG1attsyQ5wQ", "./videos/tenpi") | ||
// console.log(result.items[0]) | ||
const c = await youtube.videos.comments("https://www.youtube.com/watch?v=cZDsFjEmlDg") | ||
console.log(c) | ||
})() |
{ | ||
"name": "youtube.ts", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Wrapper for the YouTube API with typings.", | ||
@@ -5,0 +5,0 @@ "main": "dist/youtube.js", |
@@ -28,4 +28,4 @@ import {YoutubeThumbnail} from "./index" | ||
high: YoutubeThumbnail | ||
standard: YoutubeThumbnail | ||
maxres: YoutubeThumbnail | ||
standard?: YoutubeThumbnail | ||
maxres?: YoutubeThumbnail | ||
}, | ||
@@ -32,0 +32,0 @@ channelTitle: string |
@@ -48,4 +48,4 @@ export interface YoutubeVideo { | ||
high: YoutubeThumbnail | ||
standard: YoutubeThumbnail | ||
maxres: YoutubeThumbnail | ||
standard?: YoutubeThumbnail | ||
maxres?: YoutubeThumbnail | ||
}, | ||
@@ -52,0 +52,0 @@ channelTitle: string |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
152320
3213