mirror of
https://github.com/snobu/destreamer.git
synced 2026-01-16 21:12:13 +00:00
Srsly really fixed group download this time
This commit is contained in:
@@ -20,8 +20,8 @@ async function extractGuids(url: string, client: ApiClient): Promise<Array<strin
|
|||||||
return [videoMatch[1]];
|
return [videoMatch[1]];
|
||||||
}
|
}
|
||||||
else if (groupMatch) {
|
else if (groupMatch) {
|
||||||
const videoNumber: number = await client.callApi(`groups/${groupMatch[1]}`, 'get')
|
// const videoNumber: number = await client.callApi(`groups/${groupMatch[1]}`, 'get')
|
||||||
.then((response: AxiosResponse<any> | undefined) => response?.data.metrics.videos);
|
// .then((response: AxiosResponse<any> | undefined) => response?.data.metrics.videos);
|
||||||
|
|
||||||
// Anything over $top=100 will return a 400 Bad Request
|
// Anything over $top=100 will return a 400 Bad Request
|
||||||
let result: Array<string> = await client.callApi(`groups/${groupMatch[1]}/videos?$top=100&$orderby=publishedDate asc`, 'get')
|
let result: Array<string> = await client.callApi(`groups/${groupMatch[1]}/videos?$top=100&$orderby=publishedDate asc`, 'get')
|
||||||
|
|||||||
Reference in New Issue
Block a user