Skip to content

Commit

Permalink
support v2.28.0 - resolves #165
Browse files Browse the repository at this point in the history
  • Loading branch information
ohitstom committed Dec 6, 2023
1 parent a5fa459 commit e1c01bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Comfy/theme.script.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ torefactor:
- remove uneeded crap / reduce random calls
- simplify props - Section -> cardLayout -> title, action, etc - basically just move everything up one level / have the components not always be cards
- once props are simplified convert all callback events to be name - ...props
- create a singular div for banner image and use cloning, then first-child second-child in css, no longer a need for mainImage secondaryImage, also rename frame to be more descriptive e.g comfyBanner or something
*/

(async function comfy() {
Expand Down Expand Up @@ -1226,7 +1227,7 @@ torefactor:

const source = getConfig("Custom-Image")
? getConfig("Custom-Image-URL")?.replace(/"/g, "")
: Spicetify.Player.data.track.metadata.image_xlarge_url;
: Spicetify.Player.data.item?.metadata.image_xlarge_url ?? Spicetify.Player.data.track.metadata.image_xlarge_url;
if (mainImage.src !== source) console.debug(`[Comfy-Event]: Banner Source = ${(mainImage.src, source)}`);

frame.style.display = channels.some(channel => channel.test(Spicetify.Platform.History.location.pathname)) ? "" : "none";
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
</div>
<hr>
<h4> ✅ Supported</h4>
<li>🔥 Spicetify: <code><a href="https://github.com/spicetify/spicetify-cli/releases/tag/v2.27.2">2.27.2</a></code></li>
<li>🟢 Spotify: <code><a href="https://upgrade.scdn.co/upgrade/client/win32-x86/spotify_installer-1.2.24.756.g7a7fc7f0-1487.exe">1.2.24</a></code></li>
<li>🔥 Spicetify: <code><a href="https://github.com/spicetify/spicetify-cli/releases/tag/v2.28.0">2.28.0</a></code></li>
<li>🟢 Spotify: <code><a href="https://docs.google.com/spreadsheets/d/1wztO1L4zvNykBRw7X4jxP8pvo11oQjT0O5DvZ_-S4Ok/edit#gid=803394557&range=D2">1.2.26</a></code></li>
<hr>
</td>
</tr>
Expand Down

0 comments on commit e1c01bc

Please sign in to comment.