Filtering initial file for only YouTube Music results
Found 15036 Youtube Music songs in watch-history.json
watch-history.json does not have album names, grabbing them from Youtube API (only 90% success rate)
If the program stops before it says file written, an error occured, just close and re-run
Api Querying items 0 to 1000
(node:7996) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)
node:_http_outgoing:702
validateHeaderValue(name, value);
^
TypeError [ERR_HTTP_INVALID_HEADER_VALUE]: Invalid value "undefined" for header "X-Goog-Visitor-Id"
at ClientRequest.setHeader (node:_http_outgoing:702:3)
at new ClientRequest (node:_http_client:295:14)
at Object.request (node:https:379:10)
at RedirectableRequest._performRequest (/Users/robindieker/Downloads/youtube-music-history-scrobbler-main/node_modules/follow-redirects/index.js:169:24)
at new RedirectableRequest (/Users/robindieker/Downloads/youtube-music-history-scrobbler-main/node_modules/follow-redirects/index.js:66:8)
at wrappedProtocol.request (/Users/robindieker/Downloads/youtube-music-history-scrobbler-main/node_modules/follow-redirects/index.js:307:14)
at dispatchHttpRequest (/Users/robindieker/Downloads/youtube-music-history-scrobbler-main/node_modules/axios/lib/adapters/http.js:179:25)
at new Promise ()
at httpAdapter (/Users/robindieker/Downloads/youtube-music-history-scrobbler-main/node_modules/axios/lib/adapters/http.js:21:10)
at dispatchRequest (/Users/robindieker/Downloads/youtube-music-history-scrobbler-main/node_modules/axios/lib/core/dispatchRequest.js:52:10) {
code: 'ERR_HTTP_INVALID_HEADER_VALUE'
}
Hi
seems one of the modules is deprecated;
Filtering initial file for only YouTube Music results Found 15036 Youtube Music songs in watch-history.json watch-history.json does not have album names, grabbing them from Youtube API (only 90% success rate) If the program stops before it says file written, an error occured, just close and re-run Api Querying items 0 to 1000 (node:7996) [DEP0040] DeprecationWarning: The
punycode
module is deprecated. Please use a userland alternative instead. (Usenode --trace-deprecation ...
to show where the warning was created) node:_http_outgoing:702 validateHeaderValue(name, value); ^TypeError [ERR_HTTP_INVALID_HEADER_VALUE]: Invalid value "undefined" for header "X-Goog-Visitor-Id" at ClientRequest.setHeader (node:_http_outgoing:702:3) at new ClientRequest (node:_http_client:295:14) at Object.request (node:https:379:10) at RedirectableRequest._performRequest (/Users/robindieker/Downloads/youtube-music-history-scrobbler-main/node_modules/follow-redirects/index.js:169:24) at new RedirectableRequest (/Users/robindieker/Downloads/youtube-music-history-scrobbler-main/node_modules/follow-redirects/index.js:66:8) at wrappedProtocol.request (/Users/robindieker/Downloads/youtube-music-history-scrobbler-main/node_modules/follow-redirects/index.js:307:14) at dispatchHttpRequest (/Users/robindieker/Downloads/youtube-music-history-scrobbler-main/node_modules/axios/lib/adapters/http.js:179:25) at new Promise ()
at httpAdapter (/Users/robindieker/Downloads/youtube-music-history-scrobbler-main/node_modules/axios/lib/adapters/http.js:21:10)
at dispatchRequest (/Users/robindieker/Downloads/youtube-music-history-scrobbler-main/node_modules/axios/lib/core/dispatchRequest.js:52:10) {
code: 'ERR_HTTP_INVALID_HEADER_VALUE'
}
Node.js v22.6.0
Any idea how to fix? :)