Universal Media Provider icons string (v16+)

v16 brings us a few new string placeholders. In this post I’ll be highlighting %providertype%

Note that this is provider type, not the old and familiar provider name. The key difference is that %providertype% returns a consistent value across languages and server values.

This allows us to have our custom strings properly conditioned on the type of Media Provider. (Meaning Jellyfin, Subsonic, Plex, etc.)

Pair this with the new icon support, and I bring you two string templates to use!

Main version

This version supports all 14 of the current Media Providers.

{%icon:provider.audiobookshelf|providertype=="audiobookshelf"%}{%icon:provider.box|providertype=="box"%}{%icon:provider.dropbox|providertype=="dropbox"%}{%icon:provider.emby|providertype=="emby"%}{%icon:provider.google.drive|providertype+="googledrive"%}{%icon:provider.jellyfin|providertype=="jellyfin"%}{%icon:provider.kodi|providertype=="kodi"%}{%icon:provider.local.device|providertype=="localdevice"%}{%icon:provider.onedrive|providertype=="onedrive"%}{%icon:provider.pcloud|providertype=="pcloud"%}{%icon:provider.plex|providertype=="plex"%}{%icon:provider.smb|providertype=="smb"%}{%icon:provider.subsonic|providertype=="subsonic"%}{%icon:provider.webdav|providertype=="webdav"%}

Alternate version

In addition to the main 14 Media Providers, this version tries to also display an appropriate icon for Internet Radios, as well as files shared to Symfonium from other apps. (Determined by the presence of “http://” or “https://” in the file path.)

{%icon:library.internet.radios|providertype==empty && (filepath+="http://" || filepath+="https://")%}{%icon:action.share.file|providertype==empty && (filepath-="http://" && filepath-="https://")%}{%icon:provider.audiobookshelf|providertype=="audiobookshelf"%}{%icon:provider.box|providertype=="box"%}{%icon:provider.dropbox|providertype=="dropbox"%}{%icon:provider.emby|providertype=="emby"%}{%icon:provider.google.drive|providertype+="googledrive"%}{%icon:provider.jellyfin|providertype=="jellyfin"%}{%icon:provider.kodi|providertype=="kodi"%}{%icon:provider.local.device|providertype=="localdevice"%}{%icon:provider.onedrive|providertype=="onedrive"%}{%icon:provider.pcloud|providertype=="pcloud"%}{%icon:provider.plex|providertype=="plex"%}{%icon:provider.smb|providertype=="smb"%}{%icon:provider.subsonic|providertype=="subsonic"%}{%icon:provider.webdav|providertype=="webdav"%}

Images

Actual appearance depends on your current icon pack. Here’s some examples, using the default icons: