streamify-audio 2.2.14 → 2.3.1
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/docs/plans/2026-02-22-stream-revamp-design.md +88 -0
- package/docs/plans/2026-02-22-stream-revamp-plan.md +814 -0
- package/index.d.ts +9 -0
- package/package.json +1 -1
- package/src/config.js +23 -0
- package/src/discord/Manager.js +1 -1
- package/src/discord/Player.js +35 -15
- package/src/discord/Stream.js +250 -87
- package/src/providers/spotify.js +2 -2
- package/youtube-cookies.txt +7 -7
package/src/providers/spotify.js
CHANGED
|
@@ -104,14 +104,14 @@ async function getInfo(trackId, config) {
|
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
async function resolveToYouTube(trackId, config) {
|
|
107
|
+
async function resolveToYouTube(trackId, config, trackInfo = null) {
|
|
108
108
|
const cached = youtubeIdCache.get(trackId);
|
|
109
109
|
if (cached && Date.now() < cached.expires) {
|
|
110
110
|
log.info('SPOTIFY', `Using cached YouTube ID: ${cached.videoId}`);
|
|
111
111
|
return cached.videoId;
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
const track = await getInfo(trackId, config);
|
|
114
|
+
const track = trackInfo || await getInfo(trackId, config);
|
|
115
115
|
const searchQuery = `${track.author} - ${track.title}`;
|
|
116
116
|
log.info('SPOTIFY', `Searching YouTube: "${searchQuery}"`);
|
|
117
117
|
|
package/youtube-cookies.txt
CHANGED
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
.youtube.com TRUE / TRUE 1803850170 __Secure-1PSID g.a0006AhyolP4RoeyrQXcHsFnRGkuVLVIZ9QQsgpwFaXGd822GTtb9khH10B1YSjuMht-R8LNjAACgYKAQ8SARMSFQHGX2MiWX5D8_L5MAZK1TLabPQMghoVAUF8yKoFUiQLoi8zHLuskryhcx1P0076
|
|
17
17
|
.youtube.com TRUE / TRUE 1803850170 __Secure-3PSID g.a0006AhyolP4RoeyrQXcHsFnRGkuVLVIZ9QQsgpwFaXGd822GTtbc5VtVrqvDy9fWzO4vguctgACgYKAUkSARMSFQHGX2MinKYgh3CtvTW5E5T8SwXiERoVAUF8yKqzIJTS4ajNX5uO8nh3r0j10076
|
|
18
18
|
.youtube.com TRUE / TRUE 1803850170 LOGIN_INFO AFmmF2swRQIgH6IrdLYFOhW8xu4opIUHTGxAf33LzI5EXw6pdoqsh_gCIQCxYHQL4VZEyb3nE-rhXM6VU2ua99G4AhzKl4JJlzZBEQ:QUQ3MjNmeFpJOS1rVDgtM2I4cm50Z3M4NUplLTlSbXV4OFl4MTM5eUtHX3FEcVNmT2ltVFlSWmpQdlR2QTVqR29mZlUtTVh4OEhkOGw4Rkd5d2tQZm52NXJmQzdrMFJPVk5uYTFLNFFMZWlGelJhRVk1TkVaMm9Uby0xWlcwR3ozYkwwY2lWT21pV2dpU0lsWW5saFhMektISWxwUkRUcXl3
|
|
19
|
-
.youtube.com TRUE / FALSE
|
|
20
|
-
.youtube.com TRUE / TRUE
|
|
21
|
-
.youtube.com TRUE / TRUE
|
|
22
|
-
.youtube.com TRUE / TRUE
|
|
19
|
+
.youtube.com TRUE / FALSE 1803305829 SIDCC AKEyXzVSEL6KtSGHvInzUQ0BSfXpz5ZrLa-0C-Eai37AQJIjMlJt1w_sEekg2V8xFZDAAGxTWAw
|
|
20
|
+
.youtube.com TRUE / TRUE 1803305829 __Secure-1PSIDCC AKEyXzXpSwFxdQf2HR6oN-bhlMdxFzAE_V_Yj8xI1esygZBBs74ztRf0QOQkFC9uwI136LDjIA
|
|
21
|
+
.youtube.com TRUE / TRUE 1803305829 __Secure-3PSIDCC AKEyXzUPIscYupkn1WfA8pYnKB611cDvKT0mlN3DFM6aP68r90lpGrwcI3cggeJuvS__Yir28g
|
|
22
|
+
.youtube.com TRUE / TRUE 1787290794 __Secure-YNID 16.YT=uhIB3j65_j5F-nN_AIVu93J6J4tqe4fviGdBQuGk0X5EW7VRESfm4qMadhbgM04D7x1YyYRXKI0UIHJjiRMWqsP5PmT_qrHoTUSn4MOLA-FPeX09ELODYdpGvps9F6B3EFC2jC4MXYiWVY6KGZRiEoYBh_KWkh4Suwgn38LgfqN0E4Xv3YAzCB390qeKtLVkaqlQDUIvhnqGBPrObW-DzawPn00gHQph8VM2Zrklq_BzRYVaZHKHs2WkKlHqLljxwOiNXcsLrIkLqGsCgKR_onVOnlWN2gd0zojNv0VyuwYgfB9GBOLzweTnTWBZmp9IPWRA39DH4zMFerdTND-Yfg
|
|
23
23
|
.youtube.com TRUE / TRUE 0 YSC -LHUdUOZvC4
|
|
24
|
-
.youtube.com TRUE / TRUE
|
|
25
|
-
.youtube.com TRUE / TRUE
|
|
26
|
-
.youtube.com TRUE / TRUE
|
|
24
|
+
.youtube.com TRUE / TRUE 1787321829 VISITOR_INFO1_LIVE AuEVGsoJz2Y
|
|
25
|
+
.youtube.com TRUE / TRUE 1787321829 VISITOR_PRIVACY_METADATA CgJVUxIEGgAgVQ%3D%3D
|
|
26
|
+
.youtube.com TRUE / TRUE 1787290794 __Secure-ROLLOUT_TOKEN CIbdoKq8kOipXhC__cjij6WSAxiZi8-rseySAw%3D%3D
|