Skip to content

Commit

Permalink
Update streams.py and streaming.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SantiiRepair committed Sep 22, 2023
1 parent 8f56282 commit adb5079
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion bot/callbacks/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
@kreacher.on_callback_query(filters.regex("pause_or_resume"))
@only_managers
async def _(client: Client, callback: CallbackQuery):

if VOICE_CHATS[callback.message.chat.id].is_video_paused:
await VOICE_CHATS[callback.message.chat.id].set_pause(False)
return await callback.edit_message_text(
Expand Down
4 changes: 2 additions & 2 deletions bot/plugins/commands/streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ async def _(client: Client, message: Message):
f"**__Yeehaw, I found the {media['type']} you asked for...__**"
)
await sleep(2)
await msg.edit("💾 **__Downloading...__**")
image_scraper = ImageScraper(
tmp, search_key=f"{media['caption']} poster"
)
image_urls = image_scraper.find_image_urls()
photo = image_scraper.save_images(image_urls, keep_filenames=True)
await msg.edit("💾 **__Downloading...__**")
photo = image_scraper.save_images(image_urls, keep_filenames=True)
if media["type"] == "serie":
video = await assistant.download_media(
media["file_id"],
Expand Down

0 comments on commit adb5079

Please sign in to comment.