Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ytmusic_api_unofficial

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ytmusic_api_unofficial - npm Package Compare versions

Comparing version 1.1.0-beta.2.1.3 to 1.1.0-beta.2.1.4

20

dist/managers/downloadManager.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc