Skip to content

Commit

Permalink
Add Device Icons for WebOS & Updated Infuse Naming (jellyfin#6281)
Browse files Browse the repository at this point in the history
  • Loading branch information
JPKribs authored and kevgrig committed Jan 7, 2025
1 parent fa442e6 commit 47353ca
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
31 changes: 31 additions & 0 deletions src/assets/img/devices/webos.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 11 additions & 1 deletion src/utils/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function getWebDeviceIcon(browser: string | null | undefined) {
export function getDeviceIcon(info: DeviceInfo | SessionInfo) {
switch ((info as DeviceInfo).AppName || (info as SessionInfo).Client) {
case 'Samsung Smart TV':
return BASE_DEVICE_IMAGE_URL + 'samsung.svg';
return BASE_DEVICE_IMAGE_URL + 'samsungtv.svg';
case 'Xbox One':
return BASE_DEVICE_IMAGE_URL + 'xbox.svg';
case 'Sony PS4':
Expand All @@ -54,10 +54,20 @@ export function getDeviceIcon(info: DeviceInfo | SessionInfo) {
case 'Jellyfin Mobile (iOS)':
case 'Jellyfin Mobile (iPadOS)':
case 'Jellyfin iOS':
case 'Jellyfin iPadOS':
case 'Jellyfin tvOS':
case 'Swiftfin iPadOS':
case 'Swiftfin iOS':
case 'Swiftfin tvOS':
case 'Infuse':
case 'Infuse-Direct':
case 'Infuse-Library':
return BASE_DEVICE_IMAGE_URL + 'apple.svg';
case 'Home Assistant':
return BASE_DEVICE_IMAGE_URL + 'home-assistant.svg';
case 'Jellyfin for WebOS':
case 'LG Smart TV':
return BASE_DEVICE_IMAGE_URL + 'webos.svg';
case 'Jellyfin Roku':
return BASE_DEVICE_IMAGE_URL + 'roku.svg';
case 'Finamp':
Expand Down

0 comments on commit 47353ca

Please sign in to comment.