Jump to content

Are Emby IDs for local images permanent?


Go to solution Solved by Luke,

Recommended Posts

Posted (edited)

Hello,

Here is my use case: I listen to music using MusicBee, and I want the album covers to be shown on my Discord status. It is made possible using a plugin for MusicBee called "Music Discord Rich Presence", which requires that I enter the URL to the hosted album cover image, in a file called 'cachedImages.dat'.

It turns out, since my Emby server also has access to my local music folders, I can use my IP to act as a self-hosting solution for those album cover images. This is the template to add in the aforementioned .dat file:

Title of Song here==URL of album artwork here==artist name here

And here is an application of a self-hosted album cover image, that successfully shows up on my Discord status (per image attached):

Grand Blue==http://myiphere/emby/Items/311430/Images/Primary?maxHeight=300&maxWidth=300&tag=602d8c23655e9c97b59e25229251e188&quality=90==shonan no kaze

Now my concern is sustainability. If I were to need to rebuild Emby database from scratch for whichever reason in the future, will the IDs assigned to each album cover change? In which case, forcing me to edit manually the URL of hundreds of album covers all over again? I'm hoping not but I'd rather know now before investing more time in this solution.

I hope this is not confusing.

 

2023-08-09_22-42-43.png

Edited by NadineNB
  • Solution
Posted
Quote

Now my concern is sustainability. If I were to need to rebuild Emby database from scratch for whichever reason in the future, will the IDs assigned to each album cover change?

Hi, yes they probably will.

  • Thanks 1
Posted (edited)

Welp, it's ok I guess I'll take the risk.

Edited by NadineNB
  • Thanks 1
Posted

If anyone reads this and wonders how to implement it as well: eventually I am going with the multimedia server solution Serviio (my ISP recommends it as a DLNA server).

1) I add the desired image to a folder named "Album Cover" on my PC.

2) Then I log into Serviio via the browser, which I configured to use my IP address and to "host" this specific folder. Once logged in, I find the URL of the desired image and right-click it to open in a new tab: the URL contains my IP address by default, and then the rest of the URL is made up by Serviio to display the image through the web.

3) Important step: I make sure the word "Original" shows in the tab name above the image URL.

4) I eventually paste that URL in the aforementioned cached file.

Easy self-hosting image solution specific to album covers. Seeing my favorite album cover designs displayed makes it all worth it!

  • Thanks 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...