fix spotify options, bump version

This commit is contained in:
hazycora
2023-09-17 02:06:20 -04:00
parent 418f106f7c
commit 8da27c3a4c
3 changed files with 8 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
import Librespot from 'librespot'
import Librespot, { LibrespotOptions } from 'librespot'
import { parseArtist, parseAlbum, parseTrack } from './parse.js'
import { GetByUrlResponse, SearchResults, StreamerWithLogin } from '../../types.js'
import { SpotifyAlbum, SpotifyArtist } from 'librespot/types'
@@ -6,7 +6,7 @@ import { SpotifyAlbum, SpotifyArtist } from 'librespot/types'
class Spotify implements StreamerWithLogin {
client: Librespot
hostnames = ['open.spotify.com']
constructor(options: never) {
constructor(options: LibrespotOptions) {
this.client = new Librespot(options)
}
login(username: string, password: string) {