Jump to content

Device Images on Dashboard


Recommended Posts

adminExitium
Posted

Can we have the device images on the dashboard fetched from a CDN instead of GitHub directly? The current method has a flaw in that it depends on the GitHub page loading without issues. The current method failed for me today since GitHub was presenting me with a security prompt before allowing me to access the site.

 

Emby Server Version: 3.5.3.0

Posted

Even for an  https image url? What was the prompt about?

adminExitium
Posted

This was a basic security prompt by Github regarding verification of the current account information.

Posted

Can you post a screen shot of this the next time you see it along with the server log?

adminExitium
Posted

Will do, but I am not sure how the server logs will help?

 

All that is requested is done on the client side (the web app, in my case) and that was simply because Github started prompting me to review my account/security settings before redirecting to the actually requested url.

Posted

Right, don't need server logs but a screenshot would be great. Thanks.

adminExitium
Posted (edited)

Will try, but I am not sure when (or if) it will prompt me with that screen again.

 

I was just checking the source and saw that the github url is used directly. Wouldn't it be better to use the raw urls instead, since that is what they are redirected to anyway?

 

Source URL in the JS: 

https://github.com/MediaBrowser/Emby.Resources/raw/master/images/devices/chrome.png

Actual URL after a redirect:

https://raw.githubusercontent.com/MediaBrowser/Emby.Resources/master/images/devices/chrome.png
Edited by adminExitium
Posted

I thought we were, but yes you are right. thanks !

adminExitium
Posted (edited)

We have a few options:

 

1. Use the GitHub URLs as-is with the caveat that issues like above can result in the site not loading.

2. Use the raw.github URLs with the drawback that the content-type is returned as "text/plain" for most content barring a few exceptions (like png, ico etc.) according to this https://github.com/rgrove/rawgit/blob/df9a6d00f40bacb9a5a3e07d99d3785d3327c2f8/conf/index.js#L28-L48

3. Use GitHub backed CDNs like https://raw.githack.com/ or https://gitcdn.xyz/

4. Setup a CloudFlare Proxied Server for the images

Edited by adminExitium
Posted

I'd still like to see the prompt you are getting. thanks.

Posted

Alright i have no problem making changes but i will need to see this happen first, or see  more corroborating reports from other users. I will monitor this. Thanks.

  • Like 1
  • 2 weeks later...
adminExitium
Posted

Some more discrepancies:

 

* EmbyCon uses the icon from a third-party user repo instead of the main repo and uses the raw URL directly: https://raw.githubusercontent.com/faush01/plugin.video.embycon/develop/kodi.png

 

* Emby for Kodi also uses the icon from the kodi plugin repo and uses the raw URL too: https://raw.githubusercontent.com/MediaBrowser/plugin.video.emby/develop/kodi_icon.png

 

The image for Kodi is currently not loading in case of the Emby for Kodi plugin since the develop branch in the repo does not exist anymore.

The EmbyCon icon should also probably be updated to point to the main repo instead.

Angelblue05
Posted

Yes I am aware of this for Emby for Kodi. The fix is pending on my remote and it’ll be fixed with the next version.

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