Skip to content

Commit 32b76c6

Browse files
committed
Fix: Cache radio error
1 parent b42ce79 commit 32b76c6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app/utils/player.native.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,9 @@ export const downloadNextSong = async (queue, currentIndex) => {
134134

135135
for (let i = -1; i < maxIndex; i++) {
136136
const index = (currentIndex + queue.length + i) % queue.length
137-
await downloadSong(urlStream(global.config, queue[index].id, global.streamFormat, global.maxBitRate), queue[index].id)
137+
if (!queue[index].isLiveStream && queue[index].id.match(/^[a-zA-Z0-9-]*$/)) {
138+
await downloadSong(urlStream(global.config, queue[index].id, global.streamFormat, global.maxBitRate), queue[index].id)
139+
}
138140
}
139141
}
140142

0 commit comments

Comments
 (0)