diff --git a/src/assets/icons/jellyfin.svg b/src/assets/icons/jellyfin.svg new file mode 100644 index 000000000..b1d06ef75 --- /dev/null +++ b/src/assets/icons/jellyfin.svg @@ -0,0 +1,19 @@ + + + + icon-transparent-white + + + + + diff --git a/src/js/components/Icon.js b/src/js/components/Icon.js index 6e1201bd9..0c9427983 100755 --- a/src/js/components/Icon.js +++ b/src/js/components/Icon.js @@ -72,6 +72,7 @@ const SourceIcon = ({ switch (source) { case 'genius': case 'tidal': + case 'jellyfin': return ; default: return ; diff --git a/src/js/locale/en.yaml b/src/js/locale/en.yaml index f2894499f..d7db244a5 100755 --- a/src/js/locale/en.yaml +++ b/src/js/locale/en.yaml @@ -158,6 +158,8 @@ services: title: YouTube tidal: title: Tidal + jellyfin: + title: Jellyfin ## # Components diff --git a/src/js/util/helpers.js b/src/js/util/helpers.js index dd59a3029..6798282e4 100755 --- a/src/js/util/helpers.js +++ b/src/js/util/helpers.js @@ -216,6 +216,7 @@ const sourceIcon = function (uri, source = null) { case 'soundcloud': case 'lastfm': case 'tidal': + case 'jellyfin': return source; case 'youtube': diff --git a/src/js/util/selectors.js b/src/js/util/selectors.js index 1553d1f10..48b40fda2 100755 --- a/src/js/util/selectors.js +++ b/src/js/util/selectors.js @@ -115,6 +115,11 @@ const providers = { uri: 'tidal:my_playlists', title: i18n('services.tidal.title'), }, + { + scheme: 'jellyfin:', + uri: 'jellyfin:playlists', + title: i18n('services.jellyfin.title'), + }, ], albums: [ { @@ -142,6 +147,11 @@ const providers = { uri: 'ytmusic:album', title: i18n('services.youtube.title'), }, + { + scheme: 'jellyfin:', + uri: 'jellyfin:albums', + title: i18n('services.jellyfin.title'), + }, ], artists: [ { @@ -169,6 +179,11 @@ const providers = { uri: 'ytmusic:artist', title: i18n('services.youtube.title'), }, + { + scheme: 'jellyfin:', + uri: 'jellyfin:artists', + title: i18n('services.jellyfin.title'), + }, ], tracks: [ {