Captain D. Ezio commited on
Commit
d011898
·
1 Parent(s): 125e3f6

Update web_helpers.py

Browse files
Files changed (1) hide show
  1. Powers/utils/web_helpers.py +1 -1
Powers/utils/web_helpers.py CHANGED
@@ -187,7 +187,7 @@ async def youtube_downloader(c:Gojo,m:Message,query:str,is_direct:bool,type_:str
187
  )
188
  if song:
189
  audio_stream= yt.streams.filter(only_audio=True).first()
190
- f_path = audio_stream.download("/youtube_downloads")
191
  file_path = f"./youtube_downloads/{f_name.strip()}.mp3"
192
  os.rename(f_path,file_path)
193
  await m.reply_audio(file_path,caption=cap,reply_markup=kb,duration=vid_dur,thumb=thumb,title=f_name)
 
187
  )
188
  if song:
189
  audio_stream= yt.streams.filter(only_audio=True).first()
190
+ f_path = audio_stream.download()
191
  file_path = f"./youtube_downloads/{f_name.strip()}.mp3"
192
  os.rename(f_path,file_path)
193
  await m.reply_audio(file_path,caption=cap,reply_markup=kb,duration=vid_dur,thumb=thumb,title=f_name)