diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 2e197c6..67e2125 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -8,14 +8,14 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - node-version: [10.x, 12.x, 13.x] + node-version: [12.x, 14.x, 16.x] os: [ubuntu-latest] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} @@ -25,6 +25,6 @@ jobs: npm run build --if-present npm test - - uses: codecov/codecov-action@v1.0.3 + - uses: codecov/codecov-action@v2 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/bin/ytdl.js b/bin/ytdl.js index 7a38be4..034754c 100755 --- a/bin/ytdl.js +++ b/bin/ytdl.js @@ -288,7 +288,7 @@ if (opts.infoJson) { return; } - output = util.tmpl(output, [info, format]); + output = util.tmpl(output, [info, format, info.videoDetails]); if (!ext && format.container) { output += '.' + format.container; } diff --git a/package.json b/package.json index aed76e3..7e5a6ea 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "nyc": "15.0.1" }, "engines": { - "node": ">=10" + "node": ">=12" }, "license": "MIT" }