ytmusic_api_unofficial
Advanced tools
Comparing version 1.1.0-beta.2.1.3 to 1.1.0-beta.2.1.4
@@ -94,13 +94,19 @@ "use strict"; | ||
return new Promise((resolve, reject) => { | ||
(0, requestManager_1.requestToYtApi)('player?key=', Object.assign({ videoId: videoId, context: { | ||
let time = Math.floor(new Date((new Date(new Date().toUTCString())).getTime() - 9 * 3600 * 1000).getTime() / 1000); | ||
(0, requestManager_1.requestToYtApi)('player?key=', { | ||
videoId: videoId, | ||
context: { | ||
client: { | ||
userAgent: "", | ||
clientName: "WEB_REMIX", | ||
clientVersion: "1.20230821.01.01", | ||
}, | ||
}, playbackContext: { | ||
contentPlaybackContext: { | ||
signatureTimestamp: 19597 | ||
clientVersion: "1.20231004.01.00", | ||
} | ||
} }, body)).then((res) => { | ||
}, | ||
"playbackContext": { | ||
"contentPlaybackContext": { | ||
"referer": `https://music.youtube.com/watch?v=${videoId}`, | ||
"signatureTimestamp": time.toString()[0] + time.toString()[2] + time.toString()[3] + (Number(time.toString()[3]) - 3) + (Number(time.toString()[3]) - 2), | ||
} | ||
} | ||
}).then((res) => { | ||
resolve(res.data); | ||
@@ -107,0 +113,0 @@ }).catch(reject); |
{ | ||
"name": "ytmusic_api_unofficial", | ||
"version": "1.1.0-beta.2.1.3", | ||
"version": "1.1.0-beta.2.1.4", | ||
"description": "A simple API to get music from YouTube Music", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
140225
1573