1
0
mirror of https://github.com/snobu/destreamer.git synced 2026-01-21 07:22:15 +00:00

Fix for group download IRL this time

This commit is contained in:
Adrian Calinescu
2020-11-14 20:09:45 +02:00
committed by GitHub
parent 0f2d902d2e
commit 461df7b726

View File

@@ -20,8 +20,8 @@ async function extractGuids(url: string, client: ApiClient): Promise<Array<strin
return [videoMatch[1]];
}
else if (groupMatch) {
const videoNumber: number = await client.callApi(`groups/${groupMatch[1]}`, 'get')
.then((response: AxiosResponse<any> | undefined) => response?.data.metrics.videos);
// const videoNumber: number = await client.callApi(`groups/${groupMatch[1]}`, 'get')
// .then((response: AxiosResponse<any> | undefined) => response?.data.metrics.videos);
// Anything above $top=100 results in 400 Bad Request
const result: Array<string> = await client.callApi(`groups/${groupMatch[1]}/videos?$top=100&$orderby=publishedDate asc`, 'get')