mirror of
https://codeberg.org/lucida/lucida.git
synced 2026-11-15 08:07:22 -05:00
add isrc lookup to applicable services
This commit is contained in:
@@ -300,4 +300,12 @@ export default class Qobuz implements StreamerWithLogin {
|
||||
explicit: true
|
||||
}
|
||||
}
|
||||
async isrcLookup(isrc: string): Promise<Track> {
|
||||
const isrcUrl = (await this.search(isrc)).tracks?.[0]?.url
|
||||
if (!isrcUrl) throw new Error(`Not available on Qobuz.`)
|
||||
else {
|
||||
const track = <Track>(await this.getByUrl(isrcUrl)).metadata
|
||||
return track
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user