This commit is contained in:
2022-01-15 22:22:40 +01:00
parent 7ba44adc33
commit 53c6375b3e
2 changed files with 1 additions and 3 deletions

View File

@@ -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()
} }

View File

@@ -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}`
} }