mirror of
https://github.com/gokadzev/Musify.git
synced 2025-05-17 22:46:05 +08:00
fix: log error when song URL retrieval fails
This commit is contained in:
@ -299,6 +299,11 @@ class MusifyAudioHandler extends BaseAudioHandler {
|
||||
? song['audioPath']
|
||||
: await getSong(song['ytid'], song['isLive']);
|
||||
|
||||
if (songUrl == null) {
|
||||
logger.log('Failed to get song URL for ${song['ytid']}', null, null);
|
||||
return;
|
||||
}
|
||||
|
||||
final audioSource = await buildAudioSource(song, songUrl, isOffline);
|
||||
|
||||
await audioPlayer.setAudioSource(audioSource);
|
||||
|
Reference in New Issue
Block a user