Code Monkey home page Code Monkey logo

ytdl-splitter-core's People

Contributors

raltamirano avatar

Stargazers

 avatar  avatar

Watchers

 avatar

ytdl-splitter-core's Issues

ytdlCore.getInfo: error: Error: could not find `player config`

Just trying the README.md code with node v14.17.1 and ytdl-splitter-core v1.0.4 and ytdl-core v0.6.1 returns an error in parsing video info:

events.js:366
    throw err; // Unhandled 'error' event
    ^

Error [ERR_UNHANDLED_ERROR]: Unhandled error. ({
  url: 'https://www.youtube.com/watch?v=K6GqtFRhmFE',
  error: Error: could not find `player config`
      at node_modules/ytdl-splitter-core/node_modules/ytdl-core/lib/info.js:59:27
      at IncomingMessage.<anonymous> (node_modules/ytdl-splitter-core/node_modules/ytdl-core/lib/request.js:34:9)
      at IncomingMessage.emit (events.js:387:35)
      at endReadableNT (internal/streams/readable.js:1317:12)
      at processTicksAndRejections (internal/process/task_queues.js:82:21)
})
    at YTDLSplitterCore.emit (events.js:364:17)
    at node_modules/ytdl-splitter-core/index.js:131:9
    at node_modules/ytdl-splitter-core/node_modules/ytdl-core/lib/info.js:59:18
    at IncomingMessage.<anonymous> (node_modules/ytdl-splitter-core/node_modules/ytdl-core/lib/request.js:34:9)
    at IncomingMessage.emit (events.js:387:35)
    at endReadableNT (internal/streams/readable.js:1317:12)
    at processTicksAndRejections (internal/process/task_queues.js:82:21) {
  code: 'ERR_UNHANDLED_ERROR',
  context: {
    url: 'https://www.youtube.com/watch?v=K6GqtFRhmFE',
    error: Error: could not find `player config`
        at node_modules/ytdl-splitter-core/node_modules/ytdl-core/lib/info.js:59:27
        at IncomingMessage.<anonymous> (node_modules/ytdl-splitter-core/node_modules/ytdl-core/lib/request.js:34:9)
        at IncomingMessage.emit (events.js:387:35)
        at endReadableNT (internal/streams/readable.js:1317:12)
        at processTicksAndRejections (internal/process/task_queues.js:82:21)
  }
}

ytdl-core version included in this is old and seems not to work anymore, simply using a newer version doesn't work. Are there any plans to update this project to work again with current ytdl-core version?

No hour number detection in description

Hi. Is about time for the first one.

Testing the module, i see there isn't support for detection "hours" decimal in the tracklist selection. There are description like this:

0:00 Track 1
05:08 Track 2
15:15 Track 3
30:54 Track 4
45:28 Track 5
57: 53 Track 6
1:07:49 Track 7
1:11:21 Track 8

And when i used ytdl-splitter-core (through ytdl-splitter) something like this example, it begans to fail converting since Track 6.

It seems the regular expression https://github.com/raltamirano/ytdl-splitter-core/blob/master/index.js#L27 is not prepared for optional hours number (HHH:)MM:SS, only for MM:SS. momentToSeconds function https://github.com/raltamirano/ytdl-splitter-core/blob/master/index.js#L215 and, maybe if is needed, secondsToMoment https://github.com/raltamirano/ytdl-splitter-core/blob/master/index.js#L220 should be fixed too to add support to manage the hours decimal.

Thanks in advance.

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.