Comments (18)
stack trace? Not getting this error when running the examples, although video urls do need to be updated.
from node-youtube-dl.
PS: I'm using http://github.com/rogerwang/node-webkit
TypeError: Cannot read property 'length' of undefined
at Function.o.extend.each (file:///var/folders/gc/mz7w9_5j6q9_cxgrvpyz_3k00000gn/T/.org.chromium.Chromium.wa2VUu/js/vendor/jquery-2.1.0.min.js:2:2722)
at eval (file:///var/folders/gc/mz7w9_5j6q9_cxgrvpyz_3k00000gn/T/.org.chromium.Chromium.wa2VUu/js/app.js:264:18)
at eval (/private/var/folders/gc/mz7w9_5j6q9_cxgrvpyz_3k00000gn/T/.org.chromium.Chromium.wa2VUu/node_modules/youtube-dl/lib/youtube-dl.js:198:21)
at eval (/private/var/folders/gc/mz7w9_5j6q9_cxgrvpyz_3k00000gn/T/.org.chromium.Chromium.wa2VUu/node_modules/youtube-dl/lib/youtube-dl.js:165:21)
at exithandler (child_process.js:633:7)
at ChildProcess.errorhandler (child_process.js:649:5)
at ChildProcess.EventEmitter.emit (events.js:95:17)
at Process.ChildProcess._handle.onexit (child_process.js:787:12)
from node-youtube-dl.
Did the youtube-dl
file get downloaded inside of the bin
folder when the module was installed? It looks like that's the problem. It would also help to print what the error is from getInfo()
from node-youtube-dl.
Yes, youtube-dl
is in bin
.
Here is the error:
youtube-dl error: Error: spawn EACCES
Edit: Checking folder permissions now (didn't have to do anything when using the code mentioned in fent/node-ytdl#21 (comment))
from node-youtube-dl.
Looks like a permissions issue. Try chmoding the file to give yourself permission to run it.
from node-youtube-dl.
Ok, chmoding doesn't help, maybe it's something related to using node-webkit, but can't find any doc about this :/
Edit: It worked when I used it like this (cf fent/node-ytdl#21 (comment)), I will keep investigating
from node-youtube-dl.
BTW, what is bin/youtube-dl and why youtube-dl.exe is not present anymore (there in previous versions) ?
from node-youtube-dl.
https://github.com/rg3/youtube-dl
I don't recall ever seeing a youtube-dl.exe
file.
from node-youtube-dl.
Does this require python to be installed on the system ?
The guy who used your code (cf issue above) has included it, it's also present in rg3/youtube-dl repo:
https://github.com/rg3/youtube-dl/blob/master/youtube-dl.exe
from node-youtube-dl.
Yes it requires python.
from node-youtube-dl.
It's in fact for windows systems. Because he and I are using node-webkit, it has to be included.
if (process.platform === 'win32') {
file = path.join(__dirname, '..', 'bin', 'youtube-dl.exe')
} else {
file = path.join(__dirname, '..', 'bin', 'youtube-dl')
Still for node-webkit, we also need to spawn('chmod', ['+x',file]);
from node-youtube-dl.
Yeah a different file could be downloaded for windows. I don't have windows though, would not be able to test.
And it does chmod it in the download script.
from node-youtube-dl.
chmoding has to be done locally if using node-webkit (as this will be installed on users systems).
I'm trying to tweak it to make it work for node-webkit.
from node-youtube-dl.
it is
https://github.com/fent/node-youtube-dl/blob/master/scripts/download.js#L67
from node-youtube-dl.
Any update with this?
from node-youtube-dl.
Yes, actually I've switched back to https://github.com/fent/node-ytdl and it works great (I made a stupid versioning mistake). Thx!
from node-youtube-dl.
BTW, you can check here what I'm using ytdl for: http://gethiphop.net/
from node-youtube-dl.
Oh cool. I personally use youtube for a lot of music listening since it tends to have things I can't find on other streaming platforms. I'll keep an eye on hiphop updates.
from node-youtube-dl.
Related Issues (20)
- Any way to cancel/abort a download?
- Environment variable from .yarnrc does not seem to work HOT 1
- Streaming to Discord voice channel? HOT 2
- Failed error HOT 1
- Twitch vods not downloading HOT 1
- Is... Is this... Is this legal? HOT 5
- Installing NPM module in a Docker container, causes ENOENT HOT 3
- getInfo selects sub-optimal videos.
- Only downloading first page of videos. 30
- youtubedl.exec() throws error saying provided callback function is, in fact, not a function HOT 2
- How to use '.on' events when using .exec?
- 'complete' and 'end' are not fired sometimes HOT 1
- Cannot read property 'statusCode' of undefined HOT 2
- Missing .\node_modules\youtube-dl\details
- Missing ./node_modules/youtube-dl/bin/details file, postinstall script failing HOT 1
- 3.4.0 Fails to install required deps HOT 2
- Can't install HOT 5
- Can't install: SyntaxError: Unexpected token *
- Command failed with exit code 1
- TimeoutError HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-youtube-dl.