Jump to content

Emby Homepage "Spotlight Widget" Proof of Concept


Recommended Posts

Posted (edited)

First and foremost:
1. This is heavily vibe-coded with the help of Claude Sonnet 4.5 and just a proof of concept (though it's fully functional on my side)!
2. Tested with stable Server 4.9.1.80 on a 1080p-Screen
3. Pretty sure that the code is not the best and shpuld be reviewed by anyone with good js-Skills.
4. This Banner just works on the Web Client.


I hope one of the experienced devs here can make more out of it, e.g. a Plugin. Perhaps something like that can be incorporated as a menu option by Emby itself in the future.

What the Spotlight does:
On every Homepage load the Spotlight takes 10 items (Movies/TV Shows) from 50 latest Releases in the library and displays them as a slideshow. Banner is clickable to get to the item detail screen. Ratings are also included.

Download from:

https://github.com/v1rusnl/EmbySpotlight

 

 

Edited by GrimReaper
Version bump
  • Like 12
  • Thanks 2
Neminem
Posted

Dumb question, I know, but will this only work on web client ?

Happy2Play
Posted (edited)
32 minutes ago, Neminem said:

Dumb question, I know, but will this only work on web client ?

Correct as it is no different than css as you only have access to the web client code.

Edited by Happy2Play
  • Like 1
Neminem
Posted

Yes It was a question to clarify limits 😉

Posted (edited)

Reuploaded since I recognized a small visual bug.

Edited by sh0rty
  • Like 1
GrimReaper
Posted

Minor suggestion: move Runtime after Ratings. 

InaudibleDirge
Posted

loving this. thank you

arrbee99
Posted

Excellent. Thank you. I even managed to follow the instructions successfully first time.

GrimReaper
Posted

This is looking just beautiful. 

Btw, testing on 4.8.11.0, no adverse effects observed for now. 

Well done. 🏆

  • Like 1
Posted (edited)
1 hour ago, GrimReaper said:

Minor suggestion: move Runtime after Ratings. 

Done. Replaced the CSS in my last post.
 

image.thumb.png.bf7f3cd16b8447b2ebae910d1ed9fa53.png

Edited by sh0rty
GrimReaper
Posted
3 hours ago, sh0rty said:

Done
image.thumb.png.6d4a9974d0bc1d05341c48091bcf9fff.png

After Ratings. 😉

I've already done it, but for those that won't bother editing. 

Great stuff. 

Posted
4 minutes ago, GrimReaper said:

After Ratings. 😉

I've already done it, but for those that won't bother editing. 

Great stuff. 

OK now I got it 🤪 Changed correctly now.

  • Like 1
GrimReaper
Posted

I'm still impressed how gorgeous this looks every time I'm back on Home Screen and Spotlight pops-up, I'm not yet used to it. But I adore it. 

Awesome work, @sh0rty

 

  • Like 1
  • Agree 1
arrbee99
Posted

Dun't suppose anyone would know how to add a border maybe (so it matches the smaller ones) -

EmbySpotlightBorder.thumb.jpg.9162ddcf53cd4b1292b6d3ead70ddf34.jpg

 

GrimReaper
Posted (edited)
3 hours ago, arrbee99 said:

Dun't suppose anyone would know how to add a border maybe (so it matches the smaller ones) -

EmbySpotlightBorder.thumb.jpg.9162ddcf53cd4b1292b6d3ead70ddf34.jpg

 

div.spotlight-container {
     border: 1px solid #FFFFFF;
     border-radius: 0.6em;
}

Adjust radius value as desired. 

Edit: Btw, you should really download later version, looks much better. 

Edited by GrimReaper
Append
  • Like 1
arrbee99
Posted

Thank you. Does that actually go in ordiinary css or in this js file somewhere.

 Will try the later version, but I do like my background in the foreground, so to speak.

GrimReaper
Posted (edited)
3 hours ago, arrbee99 said:

Does that actually go in ordiinary css or in this js file somewhere.

CSS. But if you like, you can also edit js file and insert border and border-radius under spotlight-container, line 108 in latest version. 

Edited by GrimReaper
  • Thanks 1
Posted (edited)
4 hours ago, GrimReaper said:

CSS. But if you like, you can also edit js file and insert border and border-radius under spotlight-container, line 108 in latest version. 

Grim could you put the content from post #6 into the first post except of the fat written disclaimer and delete the old version from this post? I guess the later version+instructions is the version people like more anyways.

Edited by sh0rty
Posted (edited)
4 hours ago, arrbee99 said:

Thank you. Does that actually go in ordiinary css or in this js file somewhere.

 Will try the later version, but I do like my background in the foreground, so to speak.

The CSS for the Spotlight container is embedded in the JS file. But you can address it with regular CSS code from outside like you are used to.

Edited by sh0rty
arrbee99
Posted
2 minutes ago, sh0rty said:

The CSS for the Spotlight container is embedded in the JS file. But you can address it with regular CSS code from outside like you are used to.

At the moment, have it all in the js file, so all in one location ((theoretically).

  • Like 1
arrbee99
Posted

Still like the first -

EmbySpotlightBorder3.thumb.jpg.9356def3bf79836018ead79c5f9fc543.jpg

but am sure you don't want to have to look after two versions.

GrimReaper
Posted
3 hours ago, sh0rty said:

Grim could you put the content from post #6 into the first post except of the fat written disclaimer and delete the old version from this post? I guess the later version+instructions is the version people like more anyways.

Sure. Done. 

  • Thanks 1
GrimReaper
Posted

@sh0rtydo you have buymeacoffee link? 

Posted
45 minutes ago, GrimReaper said:

@sh0rtydo you have buymeacoffee link? 

No, I also don't need one 😉 

Community appreciation is enough for me.

  • Like 2
GrimReaper
Posted

Guess I'll buy you that beer once you come to vacation down here one of the upcoming summers. 😉🍻

  • Haha 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...