@mks2508/bundlp 0.1.21 → 0.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -718,10 +718,12 @@ var InnerTubeClient = class {
|
|
|
718
718
|
}
|
|
719
719
|
const sapisid = httpClient.getSapisidCookie();
|
|
720
720
|
if (sapisid) {
|
|
721
|
-
|
|
721
|
+
const authHeader = generateSapisidHash(sapisid);
|
|
722
|
+
headers["Authorization"] = authHeader;
|
|
722
723
|
headers["X-Origin"] = YOUTUBE_BASE_URL;
|
|
723
|
-
log$8.info(
|
|
724
|
-
|
|
724
|
+
log$8.info(`Added Authorization: ${authHeader.substring(0, 50)}...`);
|
|
725
|
+
log$8.debug(`SAPISID used: ${sapisid.substring(0, 20)}...`);
|
|
726
|
+
} else log$8.warn("No SAPISID cookie found - requests will likely fail");
|
|
725
727
|
log$8.debug("=== INNERTUBE REQUEST ===");
|
|
726
728
|
log$8.debug(`Client: ${this.currentClient}`);
|
|
727
729
|
log$8.debug(`API Key: ${config.API_KEY || "none"}`);
|