Merge branch 'master' of https://github.com/th-ch/youtube-music into discord

This commit is contained in:
Constantin Piber
2021-08-27 16:37:50 +02:00
3 changed files with 5 additions and 2 deletions

View File

@ -18,7 +18,7 @@ jobs:
- name: Setup NodeJS - name: Setup NodeJS
uses: actions/setup-node@v1 uses: actions/setup-node@v1
with: with:
node-version: "12.x" node-version: "14.x"
- name: Get yarn cache directory path - name: Get yarn cache directory path
id: yarn-cache-dir-path id: yarn-cache-dir-path

View File

@ -60,7 +60,7 @@
"release:win": "yarn run clean && electron-builder --win -p always" "release:win": "yarn run clean && electron-builder --win -p always"
}, },
"engines": { "engines": {
"node": ">=12.20", "node": ">=14.0.0",
"npm": "Please use yarn and not npm" "npm": "Please use yarn and not npm"
}, },
"dependencies": { "dependencies": {

View File

@ -101,6 +101,9 @@ module.exports = (win, {activityTimoutEnabled, activityTimoutTime}) => {
songInfo.uploadDate, songInfo.uploadDate,
songInfo.views.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") + " views" songInfo.views.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") + " views"
].join(' || '), ].join(' || '),
buttons: [
{ label: "Listen Along", url: songInfo.url },
],
}; };
if (songInfo.isPaused) { if (songInfo.isPaused) {