raltamirano / ytdl-splitter-core Goto Github PK
View Code? Open in Web Editor NEWNode.js module to download YouTube videos as separate audio files, using the tracklist provided on the description of the video or CUE files.
License: MIT License
Node.js module to download YouTube videos as separate audio files, using the tracklist provided on the description of the video or CUE files.
License: MIT License
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?
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.