From 8da27c3a4c03026d2a923afc48be17fa6b78b0aa Mon Sep 17 00:00:00 2001 From: hazycora Date: Sun, 17 Sep 2023 01:06:20 -0500 Subject: [PATCH] fix spotify options, bump version --- package.json | 4 ++-- pnpm-lock.yaml | 8 ++++---- src/streamers/spotify/main.ts | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index fcdecb2..9ae55c1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lucida", - "version": "1.1.1", + "version": "1.1.2", "description": "A modular downloader tool", "main": "build/index.js", "type": "module", @@ -31,7 +31,7 @@ "dependencies": { "dotenv": "^16.1.4", "image-size": "^1.0.2", - "librespot": "^0.1.3", + "librespot": "^0.1.4", "node-fetch": "^3.3.1", "xmldom-qsa": "^1.1.3" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3c7db29..addbc90 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,8 +12,8 @@ dependencies: specifier: ^1.0.2 version: 1.0.2 librespot: - specifier: ^0.1.3 - version: 0.1.3 + specifier: ^0.1.4 + version: 0.1.4 node-fetch: specifier: ^3.3.1 version: 3.3.1 @@ -815,8 +815,8 @@ packages: type-check: 0.4.0 dev: true - /librespot@0.1.3: - resolution: {integrity: sha512-G9AGVUunh6zK8tTJE1kwod4gYge2nFJw8yyhCWBzK36HkZBXiHLMEKU1Yq8ANmXMPPPV7ffUFNOJFzJWqWFMwA==} + /librespot@0.1.4: + resolution: {integrity: sha512-Rxa5Ugr626pII81in7JZxzIudE3MY4IVLFw0kyVw/nN7CmHfLP2NhBFQrUdy8JXZNn9S+jMQOtOzJhG+c6zFxw==} dependencies: fast-xml-parser: 4.2.7 node-fetch: 2.7.0 diff --git a/src/streamers/spotify/main.ts b/src/streamers/spotify/main.ts index 1ce405c..6642949 100644 --- a/src/streamers/spotify/main.ts +++ b/src/streamers/spotify/main.ts @@ -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) {