From 123338b65e2b2cac02dff784d688b487fb1042cc Mon Sep 17 00:00:00 2001 From: Shohih Abdul <50512936+DoellBarr@users.noreply.github.com> Date: Thu, 11 Nov 2021 13:54:03 +0700 Subject: [PATCH] changing StreamType() property for fixing the bug --- program/music.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/program/music.py b/program/music.py index db7342f..74b5f85 100644 --- a/program/music.py +++ b/program/music.py @@ -148,7 +148,7 @@ async def play(c: Client, m: Message): AudioPiped( dl, ), - stream_type=StreamType().pulse_stream, + stream_type=StreamType().local_stream, ) add_to_queue(chat_id, songname, dl, link, "Audio", 0) await suhu.delete() @@ -194,7 +194,7 @@ async def play(c: Client, m: Message): AudioPiped( ytlink, ), - stream_type=StreamType().pulse_stream, + stream_type=StreamType().local_stream, ) add_to_queue(chat_id, songname, ytlink, url, "Audio", 0) await suhu.delete() @@ -244,7 +244,7 @@ async def play(c: Client, m: Message): AudioPiped( ytlink, ), - stream_type=StreamType().pulse_stream, + stream_type=StreamType().local_stream, ) add_to_queue(chat_id, songname, ytlink, url, "Audio", 0) await suhu.delete() @@ -363,7 +363,7 @@ async def stream(c: Client, m: Message): AudioPiped( livelink, ), - stream_type=StreamType().pulse_stream, + stream_type=StreamType().live_stream, ) add_to_queue(chat_id, "Radio", livelink, link, "Audio", 0) await suhu.delete()