diff --git a/lib/components/Player/Player.dart b/lib/components/Player/Player.dart index ef9e4d2b..a638298c 100644 --- a/lib/components/Player/Player.dart +++ b/lib/components/Player/Player.dart @@ -138,10 +138,11 @@ class _PlayerState extends State with WidgetsBindingObserver { Future _playTrack(Track currentTrack, Playback playback) async { try { if (currentTrack.id != _currentTrackId) { - if (currentTrack.uri != null) { + Uri? parsedUri = Uri.tryParse(currentTrack.uri!); + if (parsedUri != null && parsedUri.hasAbsolutePath) { await player .setAudioSource( - AudioSource.uri(Uri.parse(currentTrack.uri!)), + AudioSource.uri(parsedUri), preload: true, ) .then((value) async {