huhridge / huh-spicetify-extensions

Collection of my spicetify extensions
214 stars 19 forks source link

[listPlaylistsWithSong][BUG] #97

Open madeanaccountforthisonecomment opened 2 months ago

madeanaccountforthisonecomment commented 2 months ago

Describe the bug Additional code causes extension to break, and not display playlists.

To Reproduce

Have the code included. No clue, it's just been happening to me for the past few months.

Expected behavior

To display the playlists. I'm assuming it's pulling the rowDuration from the song, and removing it so it doesn't display. But it's undefined and therefor throwing up gang signs asking where tf the data's at.

Console Errors

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'classList') at listPlaylists (listPlaylistsWithSon717622979487:264:59)
  | listPlaylists | @ | listPlaylistsWithSon…e=1717622979487:264 -- | -- | -- | --   | await in listPlaylists (async) |   |     | onClick | @ | spicetifyWrapper.js:1766   | onClick | @ | spicetifyWrapper.js:1534   | (anonymous) | @ | xpui.js:1   | He | @ | vendor~xpui.js:1   | Je | @ | vendor~xpui.js:1   | (anonymous) | @ | vendor~xpui.js:1   | Ci | @ | vendor~xpui.js:1   | Ni | @ | vendor~xpui.js:1   | (anonymous) | @ | vendor~xpui.js:1   | Me | @ | vendor~xpui.js:1   | (anonymous) | @ | vendor~xpui.js:1   | Di | @ | vendor~xpui.js:1   | Qt | @ | vendor~xpui.js:1   | Xt | @ | vendor~xpui.js:1   | t.unstable_runWithPriority | @ | vendor~xpui.js:1   | Ko | @ | vendor~xpui.js:1   | we | @ | vendor~xpui.js:1   | qt | @ | vendor~xpui.js:1 ![image_2024-06-05_173239100](https://github.com/huhridge/huh-spicetify-extensions/assets/171871987/9e932729-a5b6-49a8-b34e-419d18b82170) **Screenshots** ![image_2024-06-05_173530986](https://github.com/huhridge/huh-spicetify-extensions/assets/171871987/b23b978c-51a0-49f5-875f-595e47613690) **Desktop (please complete the following information):** - OS: Windows 10 - Spotify Version: 1.2.39 - Spicetify Version: v2.36.12 **Additional context** I am NOT a code person, I don't know what the hell I'm doing. I "solved" this by legit just deleting lines 264, 265, and 288-298. It proceeds to render the playlists AFTER deleting these. After: ![image_2024-06-05_173643397](https://github.com/huhridge/huh-spicetify-extensions/assets/171871987/8a18442a-ebac-42f8-b50d-48d18ebea6e0) ![image_2024-06-05_180143120](https://github.com/huhridge/huh-spicetify-extensions/assets/171871987/6ee16580-cded-4622-9f15-ab463266b54c)
madeanaccountforthisonecomment commented 2 months ago

Good evening twitter, I'd like to make an immediate update: It seems that on songs with multiple playlists, my "hot fix" doesn't display more than one playlist. Oopsie doopsie.

Hopefully though this leads to some form of a fix xoxo.