Go to file
dependabot[bot] 6af3c1da60 Bump prettier from 2.8.1 to 2.8.2
Bumps [prettier](https://github.com/prettier/prettier) from 2.8.1 to 2.8.2.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.8.1...2.8.2)

- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-10 06:34:07 +00:00
.github [ci] Dropped support for Node v16 2022-08-26 17:58:15 +05:30
src Prettier fixes 2022-08-26 18:36:33 +05:30
test [style] Fix lint issues 2022-08-26 17:55:45 +05:30
.editorconfig Initial commit 2017-06-08 01:44:09 +05:30
.gitignore Version Bump (1.0.4) 2021-06-28 15:04:41 +05:30
.npmignore add npm ignore 2021-06-01 12:35:39 +05:30
CHANGELOG.md [docs] Update CHANGELOG 2022-08-26 17:22:07 +05:30
index.js Prettier fixes 2022-08-26 18:36:33 +05:30
package-lock.json Bump prettier from 2.8.1 to 2.8.2 2023-01-10 06:34:07 +00:00
package.json 1.0.10 2022-08-26 18:36:36 +05:30
README.md Change flags to --timestamps and --durations 2021-07-28 17:22:36 +05:30

youtube-cue npm Libraries.io dependency status for latest release NPM Snyk Vulnerabilities for npm package Total Dependencies

Generate CUE sheet from timestamps in youtube video description.

What is this for?

  1. If you have DJ-mix or album on YouTube that you'd like to generate a CUE sheet for.
  2. The video has timestamps in the video description.
  3. The video is publicly available on Youtube.

youtube-cue will read the video description, get the timestamps and generate a CUE sheet accordingly. It will also work if track durations are used instead of timestamps.


  1. It does not download tracks from YouTube
  2. It does not split your tracks
  3. It does not tag your tracks.

For all of the above, there are better tools available, such as youtube-dl, m4acut, mp3splt, cuetools, beets and many more. youtube-cue tries to do one thing well.


npm install -g youtube-cue


npm update -g youtube-cue


You need to pass 2 parameters, a Youtube URL and a output CUE filename. YouTube short URLs (youtu.be) are accepted. You can additionally pass a audio-file argument which is used for the FILE specified in the CUE file.

youtube-cue [--audio-file audio.m4a] <youtube_url> [output_file]

  --help, Show help
  --audio-file, Input Audio File (optional) that is written to the CUE sheet

The default audio file is set to %VIDEOTITLE.m4a
The default output file is set to %VIDEOTITLE.cue

where $VIDEOTITLE is the title of the YouTube video.

Generally the parser detects whether numbers are positional timestamps or track durations.
To enforce a desired interpretation you can use these flags:

--timestamps Parse as positional timestamps (relative to the start of the playlist)
--durations Parse as track durations

The above 2 are only needed to force behaviour in
very specific edge cases, they should not be required for most files.

  $ youtube-cue --audio-file audio.m4a "https://www.youtube.com/watch?v=THzUassmQwE"
    "T A Y L O R  S W I F T  Folklore [Full album].cue" saved
  $ youtube-cue "https://youtu.be/THzUassmQwE" folklore.cue
    folklore.cue saved

Personal Usage

I have this in my .bashrc to download, split, tag, and import albums:

function ytdl.album() {
  cd $(mktemp -d)
  youtube-dl -f "bestaudio[ext=m4a]" --output "audio.m4a" "$1"
  youtube-cue --audio-file "audio.m4a" "$1" tracks.cue
  m4acut -C tracks.cue "audio.m4a" && \
  trash audio.m4a && \
  beet import -map .


  • If it does not work on a specific video, please attach the complete output
  • Pull Requests are welcome that add support for a better parser without breaking the existing tests
  • Please add tests for any new functionality


Licensed under the MIT License