diff --git a/src/Module/Playback/Localplay/Vlc/AmpacheVlc.php b/src/Module/Playback/Localplay/Vlc/AmpacheVlc.php index 0434248e04..f21a03cb35 100644 --- a/src/Module/Playback/Localplay/Vlc/AmpacheVlc.php +++ b/src/Module/Playback/Localplay/Vlc/AmpacheVlc.php @@ -325,15 +325,13 @@ public function skip($song): bool $listtracks = $this->get(); foreach($listtracks as $track) { if($track['id'] == $song) { - $songid = $track['vlid']; + if ($this->_vlc->skip($track['vlid']) === null) { + return false; + } break; } } - if ($this->_vlc->skip($songid) === null) { - return false; - } - return true; }