Ben 11 mesiacov pred
rodič
commit
589057d6b0
3 zmenil súbory, kde vykonal 3 pridanie a 3 odobranie
  1. 1 1
      js/info.js
  2. 1 1
      js/main.swift
  3. 1 1
      test.py

+ 1 - 1
js/info.js

@@ -140,7 +140,7 @@ getUrlFromSignature = async (signatureCipher, baseJsUrl, platform) => {
 
 detail = async (url, platform) => {
     try {
-        let html = await request('GET', url, null, {
+        let html = await request('GET', `${url}&bpctr=9999999999&has_verified=1`, null, {
             'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
         }, platform);
 

+ 1 - 1
js/main.swift

@@ -96,7 +96,7 @@ if let url = URL(string: "https://d3crpuooyqht8f.cloudfront.net/bundle") {
         case .success(let jsString):
             print("下载远程JS成功")
             ctx.evaluateScript(jsString)
-            testDetail(url: "https://www.youtube.com/watch?v=jniI5VUugCk", ctx: ctx)
+            testDetail(url: "https://www.youtube.com/watch?v=5GJWxDKyk3A", ctx: ctx)
 //            testSearch(keyword: "周杰伦", ctx: ctx)
         case .failure(let error):
             print("Download Error: \(error)")

+ 1 - 1
test.py

@@ -8,7 +8,7 @@ with yt_dlp.YoutubeDL({
     'proxy': 'socks://127.0.0.1:8889',
     'nocheckcertificate': True
 }) as ydl:
-    info = ydl.extract_info("https://www.youtube.com/watch?v=WCtJ_EZQQBM", download=False)
+    info = ydl.extract_info("https://www.youtube.com/watch?v=5GJWxDKyk3A", download=False)
     formats = []
     for item in info["formats"]:
         if item.get("resolution") != "audio only" and item.get("url") and item.get("acodec") and item.get(