mirror of
https://codeberg.org/lucida/lucida.git
synced 2026-11-17 00:57:25 -05:00
fix spotify options, bump version
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lucida",
|
"name": "lucida",
|
||||||
"version": "1.1.1",
|
"version": "1.1.2",
|
||||||
"description": "A modular downloader tool",
|
"description": "A modular downloader tool",
|
||||||
"main": "build/index.js",
|
"main": "build/index.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"dotenv": "^16.1.4",
|
"dotenv": "^16.1.4",
|
||||||
"image-size": "^1.0.2",
|
"image-size": "^1.0.2",
|
||||||
"librespot": "^0.1.3",
|
"librespot": "^0.1.4",
|
||||||
"node-fetch": "^3.3.1",
|
"node-fetch": "^3.3.1",
|
||||||
"xmldom-qsa": "^1.1.3"
|
"xmldom-qsa": "^1.1.3"
|
||||||
},
|
},
|
||||||
|
|||||||
8
pnpm-lock.yaml
generated
8
pnpm-lock.yaml
generated
@@ -12,8 +12,8 @@ dependencies:
|
|||||||
specifier: ^1.0.2
|
specifier: ^1.0.2
|
||||||
version: 1.0.2
|
version: 1.0.2
|
||||||
librespot:
|
librespot:
|
||||||
specifier: ^0.1.3
|
specifier: ^0.1.4
|
||||||
version: 0.1.3
|
version: 0.1.4
|
||||||
node-fetch:
|
node-fetch:
|
||||||
specifier: ^3.3.1
|
specifier: ^3.3.1
|
||||||
version: 3.3.1
|
version: 3.3.1
|
||||||
@@ -815,8 +815,8 @@ packages:
|
|||||||
type-check: 0.4.0
|
type-check: 0.4.0
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/librespot@0.1.3:
|
/librespot@0.1.4:
|
||||||
resolution: {integrity: sha512-G9AGVUunh6zK8tTJE1kwod4gYge2nFJw8yyhCWBzK36HkZBXiHLMEKU1Yq8ANmXMPPPV7ffUFNOJFzJWqWFMwA==}
|
resolution: {integrity: sha512-Rxa5Ugr626pII81in7JZxzIudE3MY4IVLFw0kyVw/nN7CmHfLP2NhBFQrUdy8JXZNn9S+jMQOtOzJhG+c6zFxw==}
|
||||||
dependencies:
|
dependencies:
|
||||||
fast-xml-parser: 4.2.7
|
fast-xml-parser: 4.2.7
|
||||||
node-fetch: 2.7.0
|
node-fetch: 2.7.0
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import Librespot from 'librespot'
|
import Librespot, { LibrespotOptions } from 'librespot'
|
||||||
import { parseArtist, parseAlbum, parseTrack } from './parse.js'
|
import { parseArtist, parseAlbum, parseTrack } from './parse.js'
|
||||||
import { GetByUrlResponse, SearchResults, StreamerWithLogin } from '../../types.js'
|
import { GetByUrlResponse, SearchResults, StreamerWithLogin } from '../../types.js'
|
||||||
import { SpotifyAlbum, SpotifyArtist } from 'librespot/types'
|
import { SpotifyAlbum, SpotifyArtist } from 'librespot/types'
|
||||||
@@ -6,7 +6,7 @@ import { SpotifyAlbum, SpotifyArtist } from 'librespot/types'
|
|||||||
class Spotify implements StreamerWithLogin {
|
class Spotify implements StreamerWithLogin {
|
||||||
client: Librespot
|
client: Librespot
|
||||||
hostnames = ['open.spotify.com']
|
hostnames = ['open.spotify.com']
|
||||||
constructor(options: never) {
|
constructor(options: LibrespotOptions) {
|
||||||
this.client = new Librespot(options)
|
this.client = new Librespot(options)
|
||||||
}
|
}
|
||||||
login(username: string, password: string) {
|
login(username: string, password: string) {
|
||||||
|
|||||||
Reference in New Issue
Block a user