This commit is contained in:
aria
2024-07-23 01:49:56 -04:00
parent 62e032fea8
commit 96d0d2889e
3 changed files with 4 additions and 2 deletions

View File

@@ -167,7 +167,7 @@ export default class Qobuz implements StreamerWithLogin {
await this.#getSigned('track/getFileUrl', params)
)
if (trackFileResponse.sample == true)
throw new Error(`Could not get non-sample file. Make sure the track isn't download-only.`)
throw new Error(`Could not get non-sample file. Make sure the track isn't purchase-only.`)
const streamResponse = await fetch(trackFileResponse.url)
return {
mimeType: trackFileResponse.mime_type,

View File

@@ -138,6 +138,8 @@ export default class Soundcloud implements Streamer {
const type = await this.getTypeFromUrl(url)
const client = this.client || (await this.#getClient())
url = url.replace('//m.', '//')
// getting the IDs and track authorization
const html = await (await fetch(url, { method: 'get', headers: headers() })).text()

View File

@@ -105,7 +105,7 @@ export function parseTrack(raw: RawTrack): Track {
album: parseAlbum(raw.album)
}
if (raw.producers) track.producers = raw.producers
if (raw.composers) track.composers = raw.composers
if (raw.composers && raw.composers[0] != 'Not Documented') track.composers = raw.composers
if (raw.lyricists) track.lyricists = raw.lyricists
if (raw.isrc) track.isrc = raw.isrc
if (raw.copyright) track.copyright = raw.copyright