mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-28 18:40:27 +01:00
debug
This commit is contained in:
@@ -5,7 +5,6 @@ const MS = 1000
|
|||||||
let taskId
|
let taskId
|
||||||
|
|
||||||
async function SpotifyCurrentListeningWatcher(): Promise<void> {
|
async function SpotifyCurrentListeningWatcher(): Promise<void> {
|
||||||
console.log('access: ' + getSpotifyAccount().access)
|
|
||||||
if (getSpotifyAccount().access === '') return
|
if (getSpotifyAccount().access === '') return
|
||||||
await getCurrentPlayingFromSpotify()
|
await getCurrentPlayingFromSpotify()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { Artist, InternalPlayerResponse, PlayerResponse, SpotifyToken } from 'Ap
|
|||||||
import Song from 'App/Models/Song'
|
import Song from 'App/Models/Song'
|
||||||
|
|
||||||
export function getSpotifyAccount(): { access: string; refresh: string } {
|
export function getSpotifyAccount(): { access: string; refresh: string } {
|
||||||
console.log(`spot account : ${JSON.parse(readFileSync('spotify.json').toString())}`)
|
console.log(JSON.parse(readFileSync('spotify.json').toString()))
|
||||||
return JSON.parse(readFileSync('spotify.json').toString())
|
return JSON.parse(readFileSync('spotify.json').toString())
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -19,7 +19,6 @@ export function getAuthorizationURI(): string {
|
|||||||
redirect_uri: `${Env.get('BASE_URL')}/spotify/callback`,
|
redirect_uri: `${Env.get('BASE_URL')}/spotify/callback`,
|
||||||
})
|
})
|
||||||
|
|
||||||
console.log('auth url : ' + `https://accounts.spotify.com/authorize?${query}`)
|
|
||||||
return `https://accounts.spotify.com/authorize?${query}`
|
return `https://accounts.spotify.com/authorize?${query}`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user