|
@@ -148,8 +148,8 @@ detail = async (url, local) => {
|
|
const masterYtConfig = JSON.parse(match[1]);
|
|
const masterYtConfig = JSON.parse(match[1]);
|
|
const headers = {
|
|
const headers = {
|
|
'Origin': 'https://www.youtube.com',
|
|
'Origin': 'https://www.youtube.com',
|
|
- 'X-YouTube-Client-Name': masterYtConfig['INNERTUBE_CONTEXT_CLIENT_NAME'],
|
|
|
|
- 'X-YouTube-Client-Version': masterYtConfig['INNERTUBE_CLIENT_VERSION'],
|
|
|
|
|
|
+ 'X-YouTube-Client-Name': `${masterYtConfig['INNERTUBE_CONTEXT_CLIENT_NAME']}`,
|
|
|
|
+ 'X-YouTube-Client-Version': `${masterYtConfig['INNERTUBE_CLIENT_VERSION']}`,
|
|
'User-Agent': 'com.google.ios.youtube/19.09.3 (iPhone14,3; U; CPU iOS 15_6 like Mac OS X)',
|
|
'User-Agent': 'com.google.ios.youtube/19.09.3 (iPhone14,3; U; CPU iOS 15_6 like Mac OS X)',
|
|
'Content-Type': 'application/json'
|
|
'Content-Type': 'application/json'
|
|
}
|
|
}
|