mirror of
https://codeberg.org/lucida/lucida.git
synced 2026-11-12 14:47:24 -05:00
hotfix import resolution
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { Artist, Album, Track } from '../../types.js'
|
||||
import fetch from 'node-fetch'
|
||||
import sizeOf from 'image-size'
|
||||
import { imageSize as sizeOf } from 'image-size'
|
||||
|
||||
async function parseCoverArtwork(url: string) {
|
||||
const resp = await fetch(url)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import Librespot from 'librespot'
|
||||
import { parseArtist, parseAlbum, parseTrack } from './parse.js'
|
||||
import { GetByUrlResponse, SearchResults, StreamerWithLogin } from '../../types.js'
|
||||
import { SpotifyAlbum, SpotifyArtist } from 'librespot/build/utils/types'
|
||||
import { SpotifyAlbum, SpotifyArtist } from 'librespot/types'
|
||||
|
||||
class Spotify implements StreamerWithLogin {
|
||||
client: Librespot
|
||||
|
||||
@@ -1,10 +1,5 @@
|
||||
import type {
|
||||
SpotifyAlbum,
|
||||
SpotifyArtist,
|
||||
SpotifyThumbnail,
|
||||
SpotifyTrack
|
||||
} from 'librespot/build/utils/types'
|
||||
import { Album, Artist, Track } from '../../types'
|
||||
import type { SpotifyAlbum, SpotifyArtist, SpotifyThumbnail, SpotifyTrack } from 'librespot/types'
|
||||
import { Album, Artist, Track } from '../../types.js'
|
||||
|
||||
function parseThumbnails(raw: SpotifyThumbnail[]) {
|
||||
return raw
|
||||
|
||||
Reference in New Issue
Block a user