TypeError: Cannot read property 'data' of undefined
at filterSpan.map.el (/home/prashant/.nvm/versions/node/v10.14.1/lib/node_modules/parsecoursehunters/src/download/getVideos.js:36:66)
at Array.map (:null:null)
at Node. (/home/prashant/.nvm/versions/node/v10.14.1/lib/node_modules/parsecoursehunters/src/download/getVideos.js:33:22)
at testFn (/home/prashant/.nvm/versions/node/v10.14.1/lib/node_modules/parsecoursehunters/node_modules/cheerio/lib/api/traversing.js:320:22)
at /home/prashant/.nvm/versions/node/v10.14.1/lib/node_modules/parsecoursehunters/node_modules/lodash/_baseFilter.js:14:9
at /home/prashant/.nvm/versions/node/v10.14.1/lib/node_modules/parsecoursehunters/node_modules/lodash/_createBaseEach.js:24:11
Another thing is that on linux, it is more than recommended to not have spaces on your files so, you don't have to escape them. this is a command line app after all.
not only that this is unreadable, but also unusable. If you want to change the path you have to press ctrl+w a number of times and it's frustrating. I would suggest kebab-case (lowercase included) at least for linux.
should add .replace('Урок ', '') to the end of this line, for making findNotExistingVideo.js works properly.
(for now in findNotExistingVideo.js, comparing videos and existing files will always result in false because video.name is like "Урок 1 xxxxx", while existing filename is like "1 xxxxx", remove the 'Урок ' prefix of video.name will fix the issue)
ch-download to download videos and put them in a folder with a custom directory set.
a -D captial d flag to do that?
Motivation:
I have a shell alias that can be called anywhere node ~/absolute/path/to/index.js -e email -p password -d ~/media/courses -u and would love to not have to worry about naming the directory inside media/courses and still use a custom one.
Hi! The app refuses to work with valid credentials. Yesterday everything was fine. I'm able to log in on coursehunters with these credentials and see the course. Password doesn't contain any special symbols, tried to screen it with single quotes, got no success.
SyntaxError: Unexpected token '.'
at wrapSafe (internal/modules/cjs/loader.js:1053:16)
at Module._compile (internal/modules/cjs/loader.js:1101:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
at Module.load (internal/modules/cjs/loader.js:985:32)
at Function.Module._load (internal/modules/cjs/loader.js:878:14)
at Module.require (internal/modules/cjs/loader.js:1025:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object. (C:\Users\ch-download-master\ch-download-master\index.js:23:19)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
npm install -g https://github.com/alekseylovchikov/ch-download
this is not working, should use the good old $>node index -u <url> or do a proper npm publish
This is a great tool that helps me so much! I use it on a raspberry pi to collect courses when sleeping! Really love your guys' amazing work!
Hello there!
I find out that if your password starts with $ sign then app will throw an error Check your email or password. So now I need to escape this sign with backslash.
It will be nice if you can fix this issue.
Cheers!
I am having an issue where the downloader starts but says creating videos.txt and then stops and nothing is downloaded , a video.txt file of 0kb is created (blank)
When we download the course videos one after another, the download materials are downloaded every time we run the code.
Some of them are very large in size and they are not necessary.
Users should be able to choose whether to download the download materials or not.
Adding the choice as an argument in the code could help.
Если указывать параметр --dir или -d на Mac, получаем ошибку "Check your email or password". Но это не настоящая ошибка.
Код настоящей ошибки.
{ Error: EISDIR: illegal operation on a directory, mkdir '/'
at Object.mkdirSync (fs.js:752:3)
at downloadFolder.split.reduce (/Users/phoenix/projects/phoenix-group.by/node_modules/parsecoursehunters/src/create/createFolder.js:12:10)
at Array.reduce (<anonymous>:null:null)
at createFolder (/Users/phoenix/projects/phoenix-group.by/node_modules/parsecoursehunters/src/create/createFolder.js:9:29)
at runGetVideos (/Users/phoenix/projects/phoenix-group.by/node_modules/parsecoursehunters/index.js:81:3)
at getToken.then.token (/Users/phoenix/projects/phoenix-group.by/node_modules/parsecoursehunters/index.js:66:22)
at process._tickCallback (internal/process/next_tick.js:68:7)
errno: -21, syscall: 'mkdir', code: 'EISDIR', path: '/' }
В функции createFolder(downloadFolder) когда происходит проверка на наличие директории / на Mac функция fs.mkdirSync(curDir) возвращает код ошибки EISDIR который сейчас никак не обрабатывается и падает с ошибкой "Check your email or password".