Spaces:
Running
Running
Update watcher.py
Browse files- 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.
|
| 64 |
SSYOUTUBE_URL,
|
| 65 |
-
|
| 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()
|