Merge pull request #1 from Maathias/fixes
Fixes
This commit was merged in pull request #1.
This commit is contained in:
11 files changed
+270
-69
No files matched your search
@@ -0,0 +1,35 @@
|
||||
# radio-rolnik Player
|
||||
|
||||
## Resources
|
||||
|
||||
Website - https://github.com/Maathias/radio-rolnik/
|
||||
|
||||
API - https://github.com/Maathias/radio-rolnik-api/
|
||||
|
||||
## Requirements
|
||||
|
||||
- shell
|
||||
- VLC
|
||||
- python3
|
||||
- python
|
||||
- dotenv
|
||||
- vlc
|
||||
- pafy
|
||||
- youtube_dl
|
||||
|
||||
## .env
|
||||
|
||||
```ini
|
||||
; api variables
|
||||
DOMAIN=radio.rolniknysa.pl
|
||||
SECRET=<server api secret>
|
||||
|
||||
; playback volume (0-100)
|
||||
VOLUME_DEFAULT=100
|
||||
|
||||
; playback delay (s)
|
||||
OFFSET=60
|
||||
|
||||
; logging level (0-2)
|
||||
VERBOSE=0
|
||||
```
|
||||
@@ -4,7 +4,7 @@ class Track {
|
||||
this.tid = tid
|
||||
this.ytid = id
|
||||
this.title = title
|
||||
this.duration = duration
|
||||
this.duration = duration + 2e3
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import dotenv from 'dotenv'
|
||||
import chalk from 'chalk'
|
||||
|
||||
import { player, queueCommand } from './modules/playback.js'
|
||||
import { getTop, updateNext, updateStatus } from './modules/calls.js'
|
||||
@@ -8,7 +9,9 @@ import Track from './Track.js'
|
||||
|
||||
dotenv.config()
|
||||
|
||||
const defaultVolume = parseInt(process.env.VOLUME_DEFAULT)
|
||||
const defaultVolume = parseInt(process.env.VOLUME_DEFAULT),
|
||||
offset = Number(process.env.OFFSET),
|
||||
verbose = Number(process.env.VERBOSE)
|
||||
|
||||
function play(track) {
|
||||
queueCommand('volume', [defaultVolume])
|
||||
@@ -24,10 +27,14 @@ function sToHM(seconds) {
|
||||
return [h, m]
|
||||
}
|
||||
|
||||
console.info(`Fetching playlist data`)
|
||||
console.info(
|
||||
`Volume: ${chalk.yellow(defaultVolume)}, Verbose: ${chalk.yellow(verbose)}`
|
||||
)
|
||||
|
||||
console.info(`Fetching playlist (${chalk.yellow(process.env.DOMAIN)})`)
|
||||
|
||||
getTop()
|
||||
.then((data) => {
|
||||
.then(async (data) => {
|
||||
console.info(`Parsing playlist`)
|
||||
|
||||
let schedule = durations.map(() => [])
|
||||
@@ -52,19 +59,20 @@ getTop()
|
||||
throw err
|
||||
})
|
||||
.then((schedule) => {
|
||||
let currentSeconds = now()
|
||||
let currentSeconds = now() - offset
|
||||
|
||||
console.info(`Running track scheduler`)
|
||||
console.info(
|
||||
`Running track scheduler @${new Date().toLocaleTimeString()} +${chalk.yellow(
|
||||
offset
|
||||
)}s`
|
||||
)
|
||||
|
||||
for (let nthPrzerwa in seconds) {
|
||||
let [begin, end] = seconds[nthPrzerwa]
|
||||
|
||||
// skip przerwa if it already passed
|
||||
if (begin < currentSeconds) continue
|
||||
|
||||
var tracktotal = 0
|
||||
|
||||
console.info(`Przerwa #${nthPrzerwa}`)
|
||||
console.info(chalk.green(`\nPrzerwa #${nthPrzerwa}`))
|
||||
|
||||
schedule[nthPrzerwa].forEach((track, i) => {
|
||||
tracktotal += (schedule[nthPrzerwa][i - 1]?.duration ?? 0) / 1e3
|
||||
@@ -73,20 +81,38 @@ getTop()
|
||||
|
||||
let [h, m] = sToHM(currentSeconds + sched)
|
||||
|
||||
console.info(`scheduling ${track.tid} @ ${h}:${m} in ${sched}s`)
|
||||
console.info(
|
||||
`scheduling ${track.tid} @ ${chalk.red(`${h}:${m}`)} in ${sched}s`
|
||||
)
|
||||
|
||||
console.info(
|
||||
` (${chalk.cyan((track.duration / 60e3).toFixed(1))}) [${chalk.blue(
|
||||
track.title.slice(0, 50)
|
||||
)}]`
|
||||
)
|
||||
|
||||
if (sched < 0) return
|
||||
|
||||
setTimeout(() => {
|
||||
console.info(
|
||||
`playing ${track.tid} (${track.ytid}) [${track.duration}] ${track.title}`
|
||||
`${chalk.magenta(`${h}:${m}`)} playing ${track.tid} (${track.ytid})`
|
||||
)
|
||||
|
||||
console.info(
|
||||
`(${chalk.cyan((track.duration / 60e3).toFixed(1))}) ${chalk.blue(
|
||||
track.title.slice(0, 50)
|
||||
)} `
|
||||
)
|
||||
|
||||
play(track)
|
||||
updateNext(schedule[nthPrzerwa][i + 1]?.tid ?? null)
|
||||
}, sched * 1e3)
|
||||
})
|
||||
|
||||
setTimeout(() => {
|
||||
console.info(`Beginning of #${nthPrzerwa} approaching`)
|
||||
}, (begin - currentSeconds) * 1e3 - 10e3)
|
||||
verbose > 0 &&
|
||||
setTimeout(() => {
|
||||
console.info(`Beginning of #${nthPrzerwa} in 10s`)
|
||||
}, (begin - currentSeconds) * 1e3 - 10e3)
|
||||
|
||||
let endin = end - currentSeconds,
|
||||
[h, m] = sToHM(end)
|
||||
@@ -95,10 +121,18 @@ getTop()
|
||||
|
||||
setTimeout(() => {
|
||||
console.info(`Ending playback for #${nthPrzerwa}`)
|
||||
player.fadeOut(10)
|
||||
player.fadeOut(6)
|
||||
updateStatus(null, null, null, true)
|
||||
|
||||
if (nthPrzerwa == seconds.length - 1) {
|
||||
console.info(`--- Day Ended ---`)
|
||||
setTimeout(() => {
|
||||
process.exit(0)
|
||||
}, 20e3)
|
||||
}
|
||||
}, endin * 1e3)
|
||||
}
|
||||
|
||||
console.info(`Track scheduling done`)
|
||||
console.info(`\nTrack scheduling done`)
|
||||
console.info(`_______________________________`)
|
||||
})
|
||||
+19
-5
@@ -1,15 +1,19 @@
|
||||
import chalk from 'chalk'
|
||||
import dotenv from 'dotenv'
|
||||
import got from 'got'
|
||||
import spotifyToYt from 'spotify-to-yt'
|
||||
|
||||
dotenv.config()
|
||||
|
||||
const { DOMAIN, SECRET } = process.env,
|
||||
headers = { authorization: 'Bearer ' + SECRET }
|
||||
headers = { authorization: 'Bearer ' + SECRET },
|
||||
verbose = Number(process.env.VERBOSE)
|
||||
|
||||
function updateStatus(tid, progress, duration, paused) {
|
||||
return new Promise((resolve, reject) => {
|
||||
verbose > 1 && console.info(`PUT status`, tid, progress, duration, paused)
|
||||
got
|
||||
.put(`${DOMAIN}/player/set/status`, {
|
||||
.put(`https://${DOMAIN}/api/player/set/status`, {
|
||||
headers,
|
||||
json: {
|
||||
tid,
|
||||
@@ -26,8 +30,9 @@ function updateStatus(tid, progress, duration, paused) {
|
||||
|
||||
function updateNext(tid) {
|
||||
return new Promise((resolve, reject) => {
|
||||
verbose > 1 && console.info(`PUT next`, tid)
|
||||
got
|
||||
.put(`${DOMAIN}/player/set/next`, {
|
||||
.put(`https://${DOMAIN}/api/player/set/next`, {
|
||||
headers,
|
||||
json: {
|
||||
tid,
|
||||
@@ -41,13 +46,22 @@ function updateNext(tid) {
|
||||
|
||||
function getTop() {
|
||||
return new Promise((resolve, reject) => {
|
||||
verbose > 1 && console.info(`GET top`)
|
||||
got
|
||||
.get(`${DOMAIN}/player/get/top`, {
|
||||
.get(`https://${DOMAIN}/api/player/get/top`, {
|
||||
headers,
|
||||
})
|
||||
.json()
|
||||
.then((top) => {
|
||||
resolve(top)
|
||||
console.info(`Resolving ${chalk.cyan(top.length)} tracks`)
|
||||
Promise.all(
|
||||
top.map((tid) => spotifyToYt.trackGet(`spotify:track:${tid}`))
|
||||
).then((yts) => {
|
||||
top.map((tid, i) => {
|
||||
yts[i].tid = tid
|
||||
})
|
||||
resolve(yts)
|
||||
})
|
||||
})
|
||||
.catch((err) => reject(err))
|
||||
})
|
||||
|
||||
+7
-2
@@ -1,6 +1,10 @@
|
||||
import { spawn } from 'child_process'
|
||||
import dotenv from 'dotenv'
|
||||
|
||||
const radio = spawn('python', ['modules/radio.py'])
|
||||
dotenv.config()
|
||||
|
||||
const radio = spawn('python', ['modules/radio.py']),
|
||||
verbose = Number(process.env.VERBOSE)
|
||||
|
||||
var busy = true,
|
||||
waiting = []
|
||||
@@ -10,7 +14,7 @@ radio.stdout.on('data', (data) => {
|
||||
for (let line of lines) {
|
||||
let [status, ...data] = JSON.parse(line)
|
||||
|
||||
console.log(' -> ', status, data)
|
||||
verbose > 0 && console.info(' -> ', status, data)
|
||||
|
||||
if (status == 'waiting')
|
||||
if (data[0]) {
|
||||
@@ -31,6 +35,7 @@ radio.on('close', (code) => {
|
||||
})
|
||||
|
||||
function sendCommand(comm, data = [null]) {
|
||||
verbose > 1 && console.info(' <- ', comm, data)
|
||||
busy = true
|
||||
radio.stdin.write(JSON.stringify(['command', comm, ...data]) + '\n')
|
||||
}
|
||||
|
||||
+1
-1
@@ -66,7 +66,7 @@ def change(args):
|
||||
url, *args = args
|
||||
|
||||
audio = pafy.new(url)
|
||||
best = audio.getbestaudio()
|
||||
best = audio.getbestaudio(preftype="webm")
|
||||
playurl = best.url
|
||||
Media = Instance.media_new(playurl)
|
||||
# Media.get_mrl()
|
||||
|
||||
+1
-36
@@ -14,39 +14,4 @@ function now() {
|
||||
return now.getHours() * 3600 + now.getMinutes() * 60 + now.getSeconds()
|
||||
}
|
||||
|
||||
function isPrzerwa() {
|
||||
let s = now()
|
||||
|
||||
return seconds.some(([start, end]) => s > start && s < end)
|
||||
}
|
||||
|
||||
function getPrzerwa() {
|
||||
let s = now()
|
||||
|
||||
return seconds.findIndex(([start, end]) => s > start && s < end)
|
||||
}
|
||||
|
||||
function howPrzerwa() {
|
||||
let s = now(),
|
||||
n = getPrzerwa(),
|
||||
[start, end] = seconds[n]
|
||||
|
||||
console.log(s, n)
|
||||
|
||||
return [s - start, end - s, end - start]
|
||||
}
|
||||
|
||||
function untilPrzerwa() {
|
||||
if (!isPrzerwa()) {
|
||||
let s = now(),
|
||||
n = seconds.findIndex(([begin, end], i, me) => {
|
||||
let last = me[i - 1]
|
||||
|
||||
return s < begin && s > (last ? last[1] : 0)
|
||||
})
|
||||
if (n === -1) return -1
|
||||
return seconds[n][0] - s
|
||||
} else return 0
|
||||
}
|
||||
|
||||
export { now, isPrzerwa, getPrzerwa, howPrzerwa, untilPrzerwa }
|
||||
export { now }
|
||||
Generated
+136
@@ -4,6 +4,15 @@
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
"@ksolo/spotify-search": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@ksolo/spotify-search/-/spotify-search-1.0.0.tgz",
|
||||
"integrity": "sha512-8Ud6chwN3FRqDgup7Fo2iHFcYzedp63cxvIrrqnt8PU74TzvKe4gKFwBv5O3H/skWONtrk3sz3X2HPO1Tg0s3Q==",
|
||||
"requires": {
|
||||
"axios": "^0.21.1",
|
||||
"buffer": "^6.0.3"
|
||||
}
|
||||
},
|
||||
"@sindresorhus/is": {
|
||||
"version": "4.2.0",
|
||||
"resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.2.0.tgz",
|
||||
@@ -54,6 +63,36 @@
|
||||
"@types/node": "*"
|
||||
}
|
||||
},
|
||||
"ansi-styles": {
|
||||
"version": "4.3.0",
|
||||
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
|
||||
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
|
||||
"requires": {
|
||||
"color-convert": "^2.0.1"
|
||||
}
|
||||
},
|
||||
"axios": {
|
||||
"version": "0.21.4",
|
||||
"resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz",
|
||||
"integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==",
|
||||
"requires": {
|
||||
"follow-redirects": "^1.14.0"
|
||||
}
|
||||
},
|
||||
"base64-js": {
|
||||
"version": "1.5.1",
|
||||
"resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
|
||||
"integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA=="
|
||||
},
|
||||
"buffer": {
|
||||
"version": "6.0.3",
|
||||
"resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz",
|
||||
"integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==",
|
||||
"requires": {
|
||||
"base64-js": "^1.3.1",
|
||||
"ieee754": "^1.2.1"
|
||||
}
|
||||
},
|
||||
"cacheable-lookup": {
|
||||
"version": "5.0.4",
|
||||
"resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-5.0.4.tgz",
|
||||
@@ -73,6 +112,15 @@
|
||||
"responselike": "^2.0.0"
|
||||
}
|
||||
},
|
||||
"chalk": {
|
||||
"version": "4.1.2",
|
||||
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
|
||||
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
|
||||
"requires": {
|
||||
"ansi-styles": "^4.1.0",
|
||||
"supports-color": "^7.1.0"
|
||||
}
|
||||
},
|
||||
"clone-response": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz",
|
||||
@@ -81,6 +129,27 @@
|
||||
"mimic-response": "^1.0.0"
|
||||
}
|
||||
},
|
||||
"color-convert": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
|
||||
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
|
||||
"requires": {
|
||||
"color-name": "~1.1.4"
|
||||
}
|
||||
},
|
||||
"color-name": {
|
||||
"version": "1.1.4",
|
||||
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
|
||||
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
|
||||
},
|
||||
"cross-fetch": {
|
||||
"version": "3.1.4",
|
||||
"resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.4.tgz",
|
||||
"integrity": "sha512-1eAtFWdIubi6T4XPy6ei9iUFoKpUkIF971QLN8lIvvvwueI65+Nw5haMNKUwfJxabqlIIDODJKGrQ66gxC0PbQ==",
|
||||
"requires": {
|
||||
"node-fetch": "2.6.1"
|
||||
}
|
||||
},
|
||||
"decompress-response": {
|
||||
"version": "6.0.0",
|
||||
"resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz",
|
||||
@@ -114,6 +183,11 @@
|
||||
"once": "^1.4.0"
|
||||
}
|
||||
},
|
||||
"follow-redirects": {
|
||||
"version": "1.14.4",
|
||||
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.4.tgz",
|
||||
"integrity": "sha512-zwGkiSXC1MUJG/qmeIFH2HBJx9u0V46QGUe3YR1fXG8bXQxq7fLj0RjLZQ5nubr9qNJUZrH+xUcwXEoXNpfS+g=="
|
||||
},
|
||||
"get-stream": {
|
||||
"version": "5.2.0",
|
||||
"resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz",
|
||||
@@ -140,6 +214,16 @@
|
||||
"responselike": "^2.0.0"
|
||||
}
|
||||
},
|
||||
"has-flag": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
|
||||
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="
|
||||
},
|
||||
"himalaya": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/himalaya/-/himalaya-1.1.0.tgz",
|
||||
"integrity": "sha512-LLase1dHCRMel68/HZTFft0N0wti0epHr3nNY7ynpLbyZpmrKMQ8YIpiOV77TM97cNpC8Wb2n6f66IRggwdWPw=="
|
||||
},
|
||||
"http-cache-semantics": {
|
||||
"version": "4.1.0",
|
||||
"resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz",
|
||||
@@ -154,6 +238,11 @@
|
||||
"resolve-alpn": "^1.0.0"
|
||||
}
|
||||
},
|
||||
"ieee754": {
|
||||
"version": "1.2.1",
|
||||
"resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",
|
||||
"integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA=="
|
||||
},
|
||||
"json-buffer": {
|
||||
"version": "3.0.1",
|
||||
"resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",
|
||||
@@ -182,6 +271,11 @@
|
||||
"resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz",
|
||||
"integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ=="
|
||||
},
|
||||
"node-fetch": {
|
||||
"version": "2.6.1",
|
||||
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz",
|
||||
"integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw=="
|
||||
},
|
||||
"normalize-url": {
|
||||
"version": "6.1.0",
|
||||
"resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz",
|
||||
@@ -227,10 +321,52 @@
|
||||
"lowercase-keys": "^2.0.0"
|
||||
}
|
||||
},
|
||||
"spotify-to-yt": {
|
||||
"version": "1.0.5",
|
||||
"resolved": "https://registry.npmjs.org/spotify-to-yt/-/spotify-to-yt-1.0.5.tgz",
|
||||
"integrity": "sha512-tjudSnTkTDR8eAqylVbo35BFp+ogYpFEkZxsjh59NXw7UvAJ87sZG5b0WroFjJ0XeAriMTj1A7ZDO2VABjRrwg==",
|
||||
"requires": {
|
||||
"@ksolo/spotify-search": "^1.0.0",
|
||||
"spotify-uri": "^2.2.0",
|
||||
"spotify-url-info": "^2.2.3",
|
||||
"youtube-sr": "^4.1.5"
|
||||
}
|
||||
},
|
||||
"spotify-uri": {
|
||||
"version": "2.2.0",
|
||||
"resolved": "https://registry.npmjs.org/spotify-uri/-/spotify-uri-2.2.0.tgz",
|
||||
"integrity": "sha512-uUybj02bfyfCoZ0MJ80MkqbKxtIVRJfbRGk05KJFq1li3zb7yNfN1f+TAw4wcXgp7jLWExeiw2wyPQXZ8PHtfg=="
|
||||
},
|
||||
"spotify-url-info": {
|
||||
"version": "2.2.3",
|
||||
"resolved": "https://registry.npmjs.org/spotify-url-info/-/spotify-url-info-2.2.3.tgz",
|
||||
"integrity": "sha512-cZTE5nOnaAjIiaHG9psVYqKXWOlNUIgSU2e+bNInRaYZNgmVgOcKH0D7V1nSER3gv3h5BXvOo0EJTtrMQQo1bA==",
|
||||
"requires": {
|
||||
"cross-fetch": "~3.1.4",
|
||||
"himalaya": "~1.1.0",
|
||||
"spotify-uri": "~2.2.0"
|
||||
}
|
||||
},
|
||||
"supports-color": {
|
||||
"version": "7.2.0",
|
||||
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
|
||||
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
|
||||
"requires": {
|
||||
"has-flag": "^4.0.0"
|
||||
}
|
||||
},
|
||||
"wrappy": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
|
||||
"integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
|
||||
},
|
||||
"youtube-sr": {
|
||||
"version": "4.1.7",
|
||||
"resolved": "https://registry.npmjs.org/youtube-sr/-/youtube-sr-4.1.7.tgz",
|
||||
"integrity": "sha512-OKbm+561Fq5RlnUtJBmPhnyfS6Zon44zdPhY1v/Y9vpAHzqdfxomD43yc0ZQv6zNsVzSlAkGeWhoweNd6DUUjQ==",
|
||||
"requires": {
|
||||
"node-fetch": "^2.6.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+5
-2
@@ -18,8 +18,11 @@
|
||||
},
|
||||
"homepage": "https://github.com/Maathias/radio-rolnik-player#readme",
|
||||
"dependencies": {
|
||||
"chalk": "^4.1.2",
|
||||
"dotenv": "^10.0.0",
|
||||
"got": "^11.8.2",
|
||||
"ky": "^0.28.5"
|
||||
"ky": "^0.28.5",
|
||||
"spotify-to-yt": "^1.0.5",
|
||||
"youtube-sr": "4.1.7"
|
||||
}
|
||||
}
|
||||
}
|
||||
+14
-6
@@ -1,14 +1,22 @@
|
||||
export default [
|
||||
[
|
||||
[19, 57],
|
||||
[19, 58],
|
||||
[10, 35],
|
||||
[10, 50],
|
||||
],
|
||||
[
|
||||
[19, 53],
|
||||
[19, 54],
|
||||
[9, 40],
|
||||
[9, 50],
|
||||
],
|
||||
[
|
||||
[13, 20],
|
||||
[13, 21],
|
||||
[8, 45],
|
||||
[8, 55],
|
||||
],
|
||||
[
|
||||
[11, 35],
|
||||
[11, 45],
|
||||
],
|
||||
[
|
||||
[12, 30],
|
||||
[12, 40],
|
||||
],
|
||||
]
|
||||
Reference in new issue
Block a user