Comparing version 1.0.8 to 1.0.9
@@ -28,2 +28,3 @@ import {Options} from "miniget" | ||
isStream: boolean, | ||
count?: number, | ||
thumbnails: Thumbnail[] | ||
@@ -30,0 +31,0 @@ } |
@@ -20,3 +20,3 @@ { | ||
"description": "Simple youtube search library without need of an api key", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"dependencies": { | ||
@@ -23,0 +23,0 @@ "miniget": "^4.2.1" |
@@ -43,3 +43,9 @@ # simpleYT | ||
isStream: false, | ||
thumbnails: [ [Object], [Object], [Object], [Object] ] | ||
thumbnails: [ | ||
{ | ||
url: 'https://i.ytimg.com/vi/nPuHl_Hl2xI/hqdefault.jpg?sqp=-oaymwEjCOADEI4CSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLDtSUSrI3HJLkr-7mEnNfVYjVVLqQ', | ||
width: 480, | ||
height: 270 | ||
} | ||
] | ||
}, | ||
@@ -57,3 +63,14 @@ ... | ||
count: 1000, | ||
thumbnails: [ [Object], [Object], [Object], [Object], [Object] ] | ||
thumbnails: [ | ||
{ | ||
url: 'https://i.ytimg.com/vi/WhmlNt42pjk/hqdefault.jpg?sqp=-oaymwEWCKgBEF5IWvKriqkDCQgBFQAAiEIYAQ==&rs=AOn4CLCG_urfC1u0JDVyJYBQd3tJ7Tb0kQ', | ||
width: 168, | ||
height: 94 | ||
}, | ||
{ | ||
url: 'https://i.ytimg.com/vi/0aG4E5jJKtQ/default.jpg', | ||
width: 43, | ||
height: 20 | ||
} | ||
] | ||
}, | ||
@@ -63,6 +80,3 @@ ... | ||
``` | ||
## Try our API | ||
You can try this library on our API (thanks to shilu) | ||
`https://ytapi.cf/search/{Query}` | ||
@@ -61,5 +61,5 @@ const miniget = require('miniget') | ||
count: Number(data['videoCount']), | ||
thumbnails: data['thumbnails'] | ||
thumbnails: data['thumbnails'].map(video => video.thumbnails[0]) | ||
} | ||
}) | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
285515
7877
80
3