sahanind commited on
Commit
856f5a5
·
verified ·
1 Parent(s): bbf88d4

Update plugins/button.py

Browse files
Files changed (1) hide show
  1. plugins/button.py +2 -2
plugins/button.py CHANGED
@@ -43,8 +43,8 @@ async def youtube_dl_call_back(_bot, update):
43
  custom_file_name = (
44
  str(response_json.get("title")) + "_" + youtube_dl_format + "." + youtube_dl_ext
45
  )
46
- youtube_dl_username = None
47
- youtube_dl_password = None
48
 
49
  if "|" in youtube_dl_url:
50
  url_parts = youtube_dl_url.split("|")
 
43
  custom_file_name = (
44
  str(response_json.get("title")) + "_" + youtube_dl_format + "." + youtube_dl_ext
45
  )
46
+ youtube_dl_username = os.environ.get("YTU", None)
47
+ youtube_dl_password = os.environ.get("YTP", None)
48
 
49
  if "|" in youtube_dl_url:
50
  url_parts = youtube_dl_url.split("|")