Git Product home page Git Product logo

Comments (18)

fent avatar fent commented on May 20, 2024

stack trace? Not getting this error when running the examples, although video urls do need to be updated.

from node-youtube-dl.

romaincointepas avatar romaincointepas commented on May 20, 2024

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.

fent avatar fent commented on May 20, 2024

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.

romaincointepas avatar romaincointepas commented on May 20, 2024

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.

fent avatar fent commented on May 20, 2024

Looks like a permissions issue. Try chmoding the file to give yourself permission to run it.

from node-youtube-dl.

romaincointepas avatar romaincointepas commented on May 20, 2024

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.

romaincointepas avatar romaincointepas commented on May 20, 2024

BTW, what is bin/youtube-dl and why youtube-dl.exe is not present anymore (there in previous versions) ?

from node-youtube-dl.

fent avatar fent commented on May 20, 2024

https://github.com/rg3/youtube-dl

I don't recall ever seeing a youtube-dl.exe file.

from node-youtube-dl.

romaincointepas avatar romaincointepas commented on May 20, 2024

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.

fent avatar fent commented on May 20, 2024

Yes it requires python.

from node-youtube-dl.

romaincointepas avatar romaincointepas commented on May 20, 2024

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.

fent avatar fent commented on May 20, 2024

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.

romaincointepas avatar romaincointepas commented on May 20, 2024

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.

fent avatar fent commented on May 20, 2024

it is
https://github.com/fent/node-youtube-dl/blob/master/scripts/download.js#L67

from node-youtube-dl.

fent avatar fent commented on May 20, 2024

Any update with this?

from node-youtube-dl.

romaincointepas avatar romaincointepas commented on May 20, 2024

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.

romaincointepas avatar romaincointepas commented on May 20, 2024

BTW, you can check here what I'm using ytdl for: http://gethiphop.net/

from node-youtube-dl.

fent avatar fent commented on May 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.