mirror of
https://codeberg.org/lucida/lucida.git
synced 2026-11-14 23:57:27 -05:00
change priority
This commit is contained in:
@@ -265,8 +265,8 @@ async function getStream(
|
|||||||
if (hq == true && filter.length == 0) throw new Error('Could not find HQ format.')
|
if (hq == true && filter.length == 0) throw new Error('Could not find HQ format.')
|
||||||
|
|
||||||
if (filter.length == 0) filter = transcodings.filter((x) => x.preset.startsWith('aac_')) // prioritize aac (go+)
|
if (filter.length == 0) filter = transcodings.filter((x) => x.preset.startsWith('aac_')) // prioritize aac (go+)
|
||||||
if (filter.length == 0) filter = transcodings.filter((x) => x.preset.startsWith('opus_')) // then opus
|
|
||||||
if (filter.length == 0) filter = transcodings.filter((x) => x.preset.startsWith('mp3_')) // then mp3
|
if (filter.length == 0) filter = transcodings.filter((x) => x.preset.startsWith('mp3_')) // then mp3
|
||||||
|
if (filter.length == 0) filter = transcodings.filter((x) => x.preset.startsWith('opus_')) // then opus
|
||||||
if (filter.length == 0) throw new Error('Could not find applicable format.') // and this is just in case none of those exist
|
if (filter.length == 0) throw new Error('Could not find applicable format.') // and this is just in case none of those exist
|
||||||
|
|
||||||
const transcoding = filter[0]
|
const transcoding = filter[0]
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ export interface Track {
|
|||||||
album?: Album
|
album?: Album
|
||||||
durationMs?: number
|
durationMs?: number
|
||||||
coverArtwork?: CoverArtwork[]
|
coverArtwork?: CoverArtwork[]
|
||||||
|
regions?: Region[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SearchResults {
|
export interface SearchResults {
|
||||||
|
|||||||
Reference in New Issue
Block a user