Skip to content

Commit

Permalink
Stable Update
Browse files Browse the repository at this point in the history
  • Loading branch information
KSKOP69 committed Mar 21, 2024
1 parent 0d4a5ee commit ebb1fe9
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 9 deletions.
10 changes: 7 additions & 3 deletions AlexaMusic/core/call.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ async def skip_stream(
video_parameters=video_stream_quality,
)
else:
stream = MediaStream(link, audio_parameters=audio_stream_quality)
stream = MediaStream(link, audio_parameters=audio_stream_quality, video_flags=MediaStream.IGNORE)
await assistant.change_stream(
chat_id,
stream,
Expand All @@ -210,6 +210,7 @@ async def seek_stream(self, chat_id, file_path, to_seek, duration, mode):
file_path,
audio_parameters=audio_stream_quality,
ffmpeg_parameters=f"-ss {to_seek} -to {duration}",
video_flags=MediaStream.IGNORE
)
)
await assistant.change_stream(chat_id, stream)
Expand Down Expand Up @@ -308,7 +309,7 @@ async def join_call(
video_parameters=video_stream_quality,
)
if video
else MediaStream(link, audio_parameters=audio_stream_quality)
else MediaStream(link, audio_parameters=audio_stream_quality, video_flags=MediaStream.IGNORE)
)
try:
await assistant.join_group_call(
Expand Down Expand Up @@ -412,6 +413,7 @@ async def change_stream(self, client, chat_id):
stream = MediaStream(
link,
audio_parameters=audio_stream_quality,
video_flags=MediaStream.IGNORE
)
try:
await client.change_stream(chat_id, stream)
Expand Down Expand Up @@ -471,6 +473,7 @@ async def change_stream(self, client, chat_id):
stream = MediaStream(
file_path,
audio_parameters=audio_stream_quality,
video_flags=MediaStream.IGNORE
)
try:
await client.change_stream(chat_id, stream)
Expand Down Expand Up @@ -504,7 +507,7 @@ async def change_stream(self, client, chat_id):
video_parameters=video_stream_quality,
)
if str(streamtype) == "video"
else MediaStream(videoid, audio_parameters=audio_stream_quality)
else MediaStream(videoid, audio_parameters=audio_stream_quality, video_flags=MediaStream.IGNORE)
)
try:
await client.change_stream(chat_id, stream)
Expand Down Expand Up @@ -550,6 +553,7 @@ async def change_stream(self, client, chat_id):
stream = MediaStream(
queued,
audio_parameters=audio_stream_quality,
video_flags=MediaStream.IGNORE
)
try:
await client.change_stream(chat_id, stream)
Expand Down
4 changes: 3 additions & 1 deletion AlexaMusic/utils/database/memorydatabase.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,9 @@ async def maintenance_on():

# Audio Video Limit

from pytgcalls.types import AudioParameters, AudioQuality, VideoParameters, VideoQuality

from pytgcalls.types import AudioQuality, VideoQuality
from pytgcalls.types.raw import AudioParameters, VideoParameters


async def save_audio_bitrate(chat_id: int, bitrate: str):
Expand Down
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
FROM python:3.10-bookworm
FROM python:3.10-bullseye

RUN apt-get update -y && apt-get upgrade -y \
&& apt-get install -y --no-install-recommends ffmpeg \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

COPY . /app/
WORKDIR /app/

RUN pip3 install --no-cache-dir --upgrade pip
RUN pip3 install --no-cache-dir --upgrade --requirement requirements.txt
CMD python3 -m AlexaMusic

CMD python3 -m AlexaMusic
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ hachoir
heroku3
lyricsgenius
motor
ntgcalls==1.0.7
ntgcalls==1.1.0
pillow==9.5.0
psutil
py-tgcalls==1.1.6
py-tgcalls==1.2.2
pykeyboard
pyrofork
python-dotenv
Expand Down
2 changes: 1 addition & 1 deletion runtime.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python-3.10.13
python-3.11.4

0 comments on commit ebb1fe9

Please sign in to comment.