izuemon commited on
Commit
292c560
·
verified ·
1 Parent(s): 228b774

Update watcher.py

Browse files
Files changed (1) hide show
  1. watcher.py +3 -3
watcher.py CHANGED
@@ -60,9 +60,9 @@ def extract_youtube_id(text):
60
 
61
  # ===== ssyoutube HTML 解析 =====
62
  def fetch_download_links(youtube_url):
63
- res = requests.get(
64
  SSYOUTUBE_URL,
65
- params={"videoURL": youtube_url},
66
  timeout=30,
67
  headers={
68
  "User-Agent": "Mozilla/5.0",
@@ -226,4 +226,4 @@ def main():
226
  time.sleep(15)
227
 
228
  if __name__ == "__main__":
229
- main()
 
60
 
61
  # ===== ssyoutube HTML 解析 =====
62
  def fetch_download_links(youtube_url):
63
+ res = requests.post(
64
  SSYOUTUBE_URL,
65
+ data={"videoURL": youtube_url},
66
  timeout=30,
67
  headers={
68
  "User-Agent": "Mozilla/5.0",
 
226
  time.sleep(15)
227
 
228
  if __name__ == "__main__":
229
+ main()