|
@@ -198,12 +198,12 @@ detail = async (url, requestId, platform) => {
|
|
|
"contentCheckOk": true,
|
|
|
"videoId": url.replace('https://www.youtube.com/watch?v=', '')
|
|
|
}), {
|
|
|
- // 'Host': 'www.youtube.com',
|
|
|
- // 'Connection': 'keep-alive',
|
|
|
- // 'User-Agent': 'com.google.android.apps.youtube.music/17.31.35 (Linux; U; Android 11) gzip',
|
|
|
- // 'Accept-Language': 'en-US,en',
|
|
|
+ 'Host': 'www.youtube.com',
|
|
|
+ 'Connection': 'keep-alive',
|
|
|
+ 'User-Agent': 'com.google.android.apps.youtube.music/17.31.35 (Linux; U; Android 11) gzip',
|
|
|
+ 'Accept-Language': 'en-US,en',
|
|
|
// 'Cookie': parseSetCookie(htmlHeaders),
|
|
|
- // 'Content-Type': 'application/json'
|
|
|
+ 'Content-Type': 'application/json'
|
|
|
}, requestId, platform);
|
|
|
let {data: apiData, _} = apiResp;
|
|
|
console.log(`android api result: ${JSON.stringify(apiResp)}`);
|