changing StreamType() property for fixing the bug

This commit is contained in:
Shohih Abdul 2021-11-11 13:54:03 +07:00 committed by GitHub
parent c074737b1b
commit 123338b65e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()