Skip to content
This repository has been archived by the owner on Sep 26, 2020. It is now read-only.

It doesn't work #1

Open
freecates opened this issue May 27, 2019 · 0 comments
Open

It doesn't work #1

freecates opened this issue May 27, 2019 · 0 comments

Comments

@freecates
Copy link

Hi,
Maybe it's becasue Google has done anything with it's api, but this package doesn't work anymore.
For instance:
`const YoutubeChannel = require('youtube-channel-video-fetcher');

if (process.argv.length < 3) return console.warn('Missing channel argument !');

const ytc = new YoutubeChannel(process.argv[2]);

(async () => {
try {
let continuation = null;
let videos = [];
do {
const videoPage = await ytc.getVideos(continuation);
continuation = videoPage.continuation;
videos = videos.concat(videoPage.videos);
} while (continuation);

console.log(JSON.stringify(videos));

} catch (e) {
console.log('Cathc an error: ', e);
}
})();`

And I pass a youtube channel
node video-fetcher.js UCnUYZLuoy1rq1aVMwx4aTzw > videos.json

And it catch the followgin error:
Cathc an error: Error: Something goes wrong :-( at YoutubeChannel.getVideos (/home/rgil/Documents/feina/code-labs-general/cdbcn/node_modules/youtube-channel-video-fetcher/src/YoutubeChannel.js:98:19)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant