Merge pull request #813 from fmauNeko/feature/jellyfin_source

Implement Jellyfin source
This commit is contained in:
James Barnsley
2022-05-20 21:13:34 +12:00
committed by GitHub
5 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- ***** BEGIN LICENSE BLOCK *****
- Part of the Jellyfin project (https://jellyfin.media)
-
- All copyright belongs to the Jellyfin contributors; a full list can
- be found in the file CONTRIBUTORS.md
-
- This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License.
- To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/.
- ***** END LICENSE BLOCK ***** -->
<svg id="icon-transparent-white"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 512 512">
<title>icon-transparent-white</title>
<g id="icon-transparent">
<path id="inner-shape" d="M256,201.62c-20.44,0-86.23,119.29-76.2,139.43s142.48,19.92,152.4,0S276.47,201.63,256,201.62Z" fill="#ffffff"/>
<path id="outer-shape" d="M256,23.3C194.44,23.3-3.82,382.73,26.41,443.43s429.34,60,459.24,0S317.62,23.3,256,23.3ZM406.51,390.76c-19.59,39.33-281.08,39.77-300.89,0S215.71,115.48,256.06,115.48,426.1,351.42,406.51,390.76Z" fill="#ffffff"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -72,6 +72,7 @@ const SourceIcon = ({
switch (source) {
case 'genius':
case 'tidal':
case 'jellyfin':
return <Icon name={source} type="svg" className="source" {...rest} />;
default:
return <Icon name={source} type="fontawesome" className="source" {...rest} />;

View File

@ -158,6 +158,8 @@ services:
title: YouTube
tidal:
title: Tidal
jellyfin:
title: Jellyfin
##
# Components

View File

@ -216,6 +216,7 @@ const sourceIcon = function (uri, source = null) {
case 'soundcloud':
case 'lastfm':
case 'tidal':
case 'jellyfin':
return source;
case 'youtube':

View File

@ -116,6 +116,11 @@ const providers = {
uri: 'tidal:my_playlists',
title: i18n('services.tidal.title'),
},
{
scheme: 'jellyfin:',
uri: 'jellyfin:playlists',
title: i18n('services.jellyfin.title'),
},
],
albums: [
{
@ -143,6 +148,11 @@ const providers = {
uri: 'ytmusic:album',
title: i18n('services.youtube.title'),
},
{
scheme: 'jellyfin:',
uri: 'jellyfin:albums',
title: i18n('services.jellyfin.title'),
},
],
artists: [
{
@ -170,6 +180,11 @@ const providers = {
uri: 'ytmusic:artist',
title: i18n('services.youtube.title'),
},
{
scheme: 'jellyfin:',
uri: 'jellyfin:artists',
title: i18n('services.jellyfin.title'),
},
],
tracks: [
{