Fix command detection and improve weather timing
This commit is contained in:
@@ -271,7 +271,12 @@ class SpotifyMusicController:
|
||||
r"(следующ|дальше|скип|пропусти|next|skip)",
|
||||
]
|
||||
for pattern in next_patterns:
|
||||
if re.search(pattern, text_lower) and "трек" in text_lower or "песн" in text_lower or "skip" in text_lower or "next" in text_lower:
|
||||
if re.search(pattern, text_lower) and (
|
||||
"трек" in text_lower
|
||||
or "песн" in text_lower
|
||||
or "skip" in text_lower
|
||||
or "next" in text_lower
|
||||
):
|
||||
return self.next_track()
|
||||
|
||||
# Предыдущий трек
|
||||
|
||||
Reference in New Issue
Block a user