pengdaqian commited on
Commit
b9f0bca
·
1 Parent(s): edfbea9
Files changed (1) hide show
  1. music/search.py +2 -2
music/search.py CHANGED
@@ -55,7 +55,7 @@ def search_youtube(keywords):
55
  YDL_OPTIONS = {
56
  'format': 'bestaudio',
57
  # 'noplaylist': 'True',
58
- 'proxy': 'socks5://127.0.0.1:1089',
59
  }
60
  with YoutubeDL(YDL_OPTIONS) as ydl:
61
  video = ydl.extract_info(f"ytsearch:{keywords}", download=False)['entries'][0:5]
@@ -90,7 +90,7 @@ def download_youtube(info, save_path):
90
  'preferredcodec': 'mp3',
91
  }],
92
  'outtmpl': save_path,
93
- 'proxy': 'http://127.0.0.1:8889',
94
  }
95
  with yt_dlp.YoutubeDL(ydl_opts) as ydl:
96
  info = ydl.extract_info(url, download=True)
 
55
  YDL_OPTIONS = {
56
  'format': 'bestaudio',
57
  # 'noplaylist': 'True',
58
+ # 'proxy': 'http://127.0.0.1:8889',
59
  }
60
  with YoutubeDL(YDL_OPTIONS) as ydl:
61
  video = ydl.extract_info(f"ytsearch:{keywords}", download=False)['entries'][0:5]
 
90
  'preferredcodec': 'mp3',
91
  }],
92
  'outtmpl': save_path,
93
+ # 'proxy': 'http://127.0.0.1:8889',
94
  }
95
  with yt_dlp.YoutubeDL(ydl_opts) as ydl:
96
  info = ydl.extract_info(url, download=True)