Compare commits

...

191 Commits

Author SHA1 Message Date
jeffvli 5bab80b89b convert remaining locales to sentence case 2026-05-01 20:50:58 -07:00
jeffvli 066e5188f2 refactor some strings to sentence case 2026-05-01 20:50:57 -07:00
jeffvli 456f4d7f65 remove sentence case override configuration 2026-05-01 20:50:57 -07:00
jeffvli 02f5a1bd94 convert locales to new casing 2026-05-01 20:50:57 -07:00
jeffvli 4424e9ae33 convert EN localization to use proper casing, remove postprocessing from renderer 2026-05-01 20:47:24 -07:00
Hosted Weblate bc7ef0624b Translated using Weblate
Currently translated at 100.0% (1205 of 1205 strings) (Dutch)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/nl/

Translated using Weblate

Currently translated at 100.0% (1205 of 1205 strings) (Dutch)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/nl/

Co-authored-by: Joren Vansteenkiste <vansteenkiste.joren@telenet.be>
Co-authored-by: bokse <weblate@bokse.nl>
2026-05-01 21:32:24 +02:00
Pedro Daniel Reis 304ce8b881 [UI] Made sidebar image just use flex (#1975)
* made sidebar image just use flex

* force aspect ratio to be square

* prevent image container from expanding

---------

Co-authored-by: jeffvli <jeffvictorli@gmail.com>
2026-05-01 12:32:18 -07:00
Jonne Saloranta 01011a49a2 Replace success toast with info when no songs are added (#1994) 2026-05-01 11:44:15 -07:00
York d24ca04878 fix: detect Homebrew mpv on macOS (#1989) 2026-05-01 11:43:07 -07:00
Hosted Weblate 640d38e5a9 Translated using Weblate
Currently translated at 100.0% (1205 of 1205 strings) (Catalan)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/ca/

Co-authored-by: Ondo <SparkyOndo@proton.me>
2026-04-30 15:09:57 +00:00
jeffvli ac0c074d4b fix undefined / null parameter string for Subsonic (#1978) 2026-04-28 21:17:44 -07:00
jeffvli 6be5818493 migrate to mantine v9 2026-04-28 21:02:27 -07:00
Hosted Weblate 03edd5a639 Translated using Weblate
Currently translated at 100.0% (1205 of 1205 strings) (Spanish)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/es/

Translated using Weblate

Currently translated at 100.0% (1205 of 1205 strings) (Chinese (Traditional Han script))
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/zh_Hant/

Translated using Weblate

Currently translated at 100.0% (1205 of 1205 strings) (Czech)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/cs/

Translated using Weblate

Currently translated at 99.8% (1201 of 1203 strings) (French)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/fr/

Co-authored-by: Fjuro <fjuro@users.noreply.hosted.weblate.org>
Co-authored-by: Fordas <fordas15@gmail.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: KosmoMoustache <kosmomoustache@users.noreply.hosted.weblate.org>
Co-authored-by: York <goog10216922@gmail.com>
2026-04-29 04:45:44 +02:00
jeffvli f5eb3f1488 wrap useHotkeys to disable on command palette open (#1925) 2026-04-28 19:31:41 -07:00
jeffvli 8eab9edb15 fix performance issue related to blurred library header 2026-04-28 19:05:43 -07:00
Mitch Ray fcc69980e4 Stretch the wavesurfer waveform to the full height (#1962)
* Stretch the wavesurfer waveform to the full height

* Add waveform stretch setting
2026-04-27 20:28:03 -07:00
Hosted Weblate 053b78a3fd Translated using Weblate
Currently translated at 100.0% (1203 of 1203 strings) (Spanish)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/es/

Translated using Weblate

Currently translated at 100.0% (1203 of 1203 strings) (Polish)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/pl/

Translated using Weblate

Currently translated at 100.0% (1203 of 1203 strings) (Chinese (Traditional Han script))
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/zh_Hant/

Translated using Weblate

Currently translated at 100.0% (1203 of 1203 strings) (Czech)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/cs/

Co-authored-by: Fjuro <fjuro@users.noreply.hosted.weblate.org>
Co-authored-by: Fordas <fordas15@gmail.com>
Co-authored-by: linger <linger0517@gmail.com>
Co-authored-by: skajmer <skajmer@protonmail.com>
2026-04-22 11:09:49 +02:00
mathew4 42ded966e4 fix: proper selection of next song when using shuffle and repeat-one (#1932) 2026-04-21 00:10:21 -07:00
Kendall Garner ea9119431c use urlsearchparams instead of qs (#1970) 2026-04-21 00:09:23 -07:00
vimae add0345f10 feat(lyrics): non-active lyric settings (#1954)
* feat: non-active lyric settings
2026-04-21 00:09:03 -07:00
Hosted Weblate e5a8324a79 Translated using Weblate
Currently translated at 99.3% (1193 of 1201 strings) (Chinese (Simplified Han script))
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/zh_Hans/

Co-authored-by: yidaduizuoye <yidaduizuoye@outlook.com>
2026-04-19 06:09:51 +02:00
jeffvli cc4e933c07 fix missing path replacement transformations 2026-04-16 00:29:13 -07:00
Hosted Weblate 382d279dad Translated using Weblate
Currently translated at 100.0% (1201 of 1201 strings) (Spanish)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/es/

Translated using Weblate

Currently translated at 100.0% (1201 of 1201 strings) (French)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/fr/

Translated using Weblate

Currently translated at 100.0% (1201 of 1201 strings) (Chinese (Traditional Han script))
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/zh_Hant/

Translated using Weblate

Currently translated at 100.0% (1201 of 1201 strings) (Polish)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/pl/

Translated using Weblate

Currently translated at 100.0% (1201 of 1201 strings) (Czech)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/cs/

Translated using Weblate

Currently translated at 79.9% (959 of 1200 strings) (Russian)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/ru/

Co-authored-by: Dylan MONTIGAUD <dylanmontigaud17@gmail.com>
Co-authored-by: Fjuro <fjuro@users.noreply.hosted.weblate.org>
Co-authored-by: Fordas <fordas15@gmail.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Nick <n.grakhov08@gmail.com>
Co-authored-by: York <goog10216922@gmail.com>
Co-authored-by: skajmer <skajmer@protonmail.com>
2026-04-15 06:10:05 +02:00
York b99899f128 fix MPV visualizer on macOS and handle exclusive mode UX (#1930) 2026-04-13 20:47:03 -07:00
korpseluv f5839bf39c normalize album release types and improve grouping logic (#1892) 2026-04-13 20:40:11 -07:00
Damien Erambert 914ed5b8f3 macOS 26-friendly icon (#1941) 2026-04-13 20:32:21 -07:00
Ross ca0a1569f8 Add everfrost dark and light themes (#1934)
Co-authored-by: Ross <ro@noirlab.edu>
2026-04-13 20:22:37 -07:00
Hosted Weblate 9f10fe398a Translated using Weblate
Currently translated at 58.1% (698 of 1200 strings) (Portuguese (Brazil))
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/pt_BR/

Translated using Weblate

Currently translated at 38.8% (466 of 1200 strings) (Ukrainian)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/uk/

Co-authored-by: Yuri Shumyatsky <shumy260404@gmail.com>
Co-authored-by: albatrays <weblate.duct925@passmail.net>
2026-04-12 12:09:54 +00:00
Kendall Garner 8869278898 make theme selector serachable 2026-04-10 20:03:50 -07:00
Jeff 16c9e6cc1b Fix various build issues (#1942)
* remove dynamic import for platform features

* increase node memory limit on macOS build

* fix invalid dynamic imports in renderer

* remove discord-rpc import in renderer
2026-04-10 01:54:11 -07:00
Kendall Garner 2a6e9b6ad3 add extendInfo to alpha/beta builders 2026-04-08 07:28:34 -07:00
Kendall Garner 167b42df2b Merge pull request #1926 from noctuum/fix/wayland-screen-share-dialog
fix(linux): remove unnecessary screen capture from audio loopback handler
2026-04-08 02:11:36 +00:00
jeffvli e6a2bc3acf disable useTransition in router again 2026-04-07 18:21:32 -07:00
jeffvli ca3c7015c6 add fallback to direct streamURL if getTranscodeDecision fails 2026-04-07 18:14:47 -07:00
jeffvli c7c15d917a isolate item card control renders 2026-04-07 18:14:47 -07:00
noctuum 6adb29bc38 fix(linux): remove unnecessary desktopCapturer call from display media handler
The setDisplayMediaRequestHandler was calling desktopCapturer.getSources()
to provide a video source that the renderer never uses (it requests
video: false and only consumes audio tracks). On Wayland, this created a
new xdg-desktop-portal ScreenCast session on every launch, showing an
unavoidable screen share dialog because Electron does not persist
PipeWire restore tokens across desktopCapturer sessions.

Simplified the handler to return only { audio: 'loopback' }, which
captures system audio via PipeWire/PulseAudio monitor source without
any portal interaction.
2026-04-08 04:56:05 +07:00
Hosted Weblate 2c3cd7af24 Translated using Weblate
Currently translated at 94.6% (1136 of 1200 strings) (German)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/de/

Translated using Weblate

Currently translated at 100.0% (1200 of 1200 strings) (Chinese (Traditional Han script))
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/zh_Hant/

Translated using Weblate

Currently translated at 100.0% (1200 of 1200 strings) (Japanese)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/ja/

Translated using Weblate

Currently translated at 100.0% (1200 of 1200 strings) (Czech)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/cs/

Translated using Weblate

Currently translated at 100.0% (1200 of 1200 strings) (Spanish)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/es/

Translated using Weblate

Currently translated at 100.0% (1200 of 1200 strings) (French)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/fr/

Translated using Weblate

Currently translated at 100.0% (1200 of 1200 strings) (Polish)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/pl/

Co-authored-by: Fordas <fordas15@gmail.com>
Co-authored-by: KosmoMoustache <kosmomoustache@users.noreply.hosted.weblate.org>
Co-authored-by: York <goog10216922@gmail.com>
Co-authored-by: Zarakkas <kaz@users.noreply.hosted.weblate.org>
Co-authored-by: karigane <169052233+karigane-cha@users.noreply.github.com>
Co-authored-by: lorduskordus <lorduskordus@gmail.com>
Co-authored-by: skajmer <skajmer@protonmail.com>
2026-04-07 08:10:05 +02:00
jeffvli 3c442a2d40 update to v1.11.0 2026-04-06 17:10:18 -07:00
Andrzej Voss d67c185c93 feat: Make "Clear" button "Refresh" when there are no lyrics found. (#1920)
Ref: effvli/feishin#1919 - tl;dr: Button actually reloads/refreshes
lyrics info from the server too, it makes it, well, clearer what it does
in that case - allows to reread lyrics from server without clearing whole cache.
2026-04-06 16:59:01 -07:00
jeffvli ff96a5f121 lint 2026-04-06 12:06:55 -07:00
jeffvli 6fc7b6b271 support image drop for upload 2026-04-06 11:41:33 -07:00
jeffvli 918f453066 support navidrome artist image upload/delete 2026-04-06 11:41:26 -07:00
jeffvli 4a986069f8 set flac as default transcoding profile 2026-04-06 10:58:37 -07:00
jeffvli 11d26af893 remove arm/v7 from container build 2026-04-06 09:47:28 -07:00
jeffvli ad13fea033 update to v1.10.0 2026-04-05 22:41:06 -07:00
Hosted Weblate 8a75ec2558 Translated using Weblate
Currently translated at 100.0% (1196 of 1196 strings) (Chinese (Traditional Han script))
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/zh_Hant/

Co-authored-by: York <goog10216922@gmail.com>
2026-04-06 05:27:10 +00:00
Auzlex 895cbb4d16 fix(media-session): prevent handlers from being destroyed during playback (#1898)
Handlers were being registered and destroyed on state change/re-render,
causing media controls to vanish during rapid use or quick track skipping.
Persist handlers and add debounce for rapid track skipping.

Tested on Windows, Linux, and Android.
2026-04-05 22:27:04 -07:00
jeffvli 3f300c40cc add in-app prompt for system audio connection 2026-04-05 22:19:09 -07:00
jeffvli c8e8f58cce re-add useTransition to router 2026-04-05 21:54:07 -07:00
jeffvli 56cd50e0ed add react compiler 2026-04-05 18:38:06 -07:00
jeffvli 1b2a6dfc1f optimize item list controls 2026-04-05 18:21:28 -07:00
jeffvli 356f5487b0 reorder playlist context menu items 2026-04-05 14:10:07 -07:00
jeffvli 37501f2983 remove automatic autosize, use dummy fill column instead 2026-04-05 09:06:03 -07:00
jeffvli d61587b16f add automatic autosize columns when auto-fit is disabled 2026-04-05 08:12:10 -07:00
Kendall Garner 06b7b53dc9 feat(macos): add NSLocalNetworkUsageDescription 2026-04-05 08:03:28 -07:00
Kendall Garner 6c2cd1c274 fix(mpris): serve minimal metadata when playing radio
1. MPRIS (or `mpris-service`) is very fragile. If an invalid `mpris:trackid` (something with `-` or spaces) is passed in, it breaks. Use a minimal track id instead
2. Only populate album/artist/title
2026-04-05 08:01:28 -07:00
jeffvli ef129e4638 remove video from displayMedia request 2026-04-05 07:58:01 -07:00
jeffvli a01b4e664d add plex fork notice 2026-04-05 07:57:41 -07:00
jeffvli 0b45ab7f36 support real-time table column resizing 2026-04-05 07:48:54 -07:00
jeffvli 031d365262 decrease padding on list header 2026-04-05 03:49:31 -07:00
jeffvli 4fd56281d5 increase font size of smart playlist JSON editor 2026-04-05 02:42:05 -07:00
jeffvli 08ce8a4028 add nd v0.61.1 smart playlist fields 2026-04-05 02:38:40 -07:00
jeffvli e06877af76 make visualizer idle kill consistent for both 2026-04-05 02:35:32 -07:00
jeffvli 84395ce5b4 pass muted text props to JoinedArtists in left controls 2026-04-05 00:59:53 -07:00
jeffvli 94886a2d5a add system audio loopback for webaudio 2026-04-05 00:48:38 -07:00
jeffvli 25bb7f7069 fix scroll shadow z-indexing issue with table scrollbars 2026-04-04 23:48:48 -07:00
jeffvli 573fe5ee35 use external store for scroll shadow 2026-04-04 23:32:32 -07:00
jeffvli a868d4d539 combine wav codec check 2026-04-04 23:11:55 -07:00
jeffvli 564ee721c4 revert default transcoding profile to opus, add safari check for mp3 2026-04-04 23:08:53 -07:00
jeffvli a8d990db23 fix subsonic transcoding stream url to return raw string instead of fetch 2026-04-04 23:03:46 -07:00
jeffvli e21515f7fb add additional codec probes for transcoding profile, use mp3 instead of opus for default transcode 2026-04-04 23:03:29 -07:00
jeffvli 3e5a8ac78d re-add default suspense to album/artist routes 2026-04-04 22:25:21 -07:00
jeffvli 6c73d06dcf remove useTransition from router 2026-04-04 22:14:07 -07:00
jeffvli a8954bfa2a remove imageUrl in favor or imageId for artistInfo 2026-04-04 21:52:44 -07:00
jeffvli 19a1617a8d remove suspense spinner from router 2026-04-04 18:26:25 -07:00
jeffvli 1abae986f8 move server selector into app menu 2026-04-04 18:25:04 -07:00
jeffvli 43fa574dab add responsive breakpoint for queue control items 2026-04-04 17:37:47 -07:00
jeffvli 99530c670e redesign queue controls bar 2026-04-04 17:37:05 -07:00
jeffvli 3a0dfe59ce improve visibily of keyboard-focused search items 2026-04-04 17:37:05 -07:00
York d60ed0a793 feat: macOS menu enhancement (#1903) 2026-04-04 17:35:30 -07:00
Kendall Garner a32fed3bcf chore: upgrade dependencies (#1906)
* upgrade dependencies

* downgrade fast-average-color
2026-04-04 17:10:57 -07:00
Kendall Garner 132ac92984 chore: use consistent order of track / artist / ablum on full screen page 2026-04-04 14:46:13 -07:00
jeffvli 141a20f042 refactor item table props 2026-04-04 12:34:27 -07:00
jeffvli 1592204515 add fallback sort order for subsonic playlist list 2026-04-04 12:03:41 -07:00
jeffvli b9f5459725 fix layout shift on grid carousel page change 2026-04-03 20:25:12 -07:00
jeffvli d4e9b9b7a6 adjust bg loading on album detail page 2026-04-03 20:11:10 -07:00
jeffvli ec9e4b1339 fix type error due to new param on mediaStop 2026-04-03 19:09:42 -07:00
Hosted Weblate f09109b887 Translated using Weblate
Currently translated at 100.0% (1194 of 1194 strings) (Czech)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/cs/

Translated using Weblate

Currently translated at 100.0% (1194 of 1194 strings) (Polish)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/pl/

Translated using Weblate

Currently translated at 100.0% (1194 of 1194 strings) (Chinese (Traditional Han script))
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/zh_Hant/

Translated using Weblate

Currently translated at 100.0% (1193 of 1193 strings) (French)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/fr/

Translated using Weblate

Currently translated at 100.0% (1193 of 1193 strings) (Polish)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/pl/

Co-authored-by: Fjuro <fjuro@users.noreply.hosted.weblate.org>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: KosmoMoustache <kosmomoustache@users.noreply.hosted.weblate.org>
Co-authored-by: York <goog10216922@gmail.com>
Co-authored-by: skajmer <skajmer@protonmail.com>
2026-04-04 04:05:50 +02:00
jeffvli 1494c8e044 fix mpv seek error on queue end 2026-04-03 19:05:34 -07:00
jeffvli f3a6027e6d fix mpv progress interval still running after queue ends 2026-04-03 18:58:58 -07:00
jeffvli 3c42355c1e attempt to fix mpv playback sync on song insertion (#1855) 2026-04-03 18:54:49 -07:00
jeffvli feda1bb06f remove square image param, default item id for image 2026-04-03 11:24:39 -07:00
jeffvli 72f1d2f9f9 improve date parsing for partial dates (#1683) 2026-04-02 19:39:08 -07:00
jeffvli ad11a9303c add playlist description to expanded header 2026-04-02 18:36:42 -07:00
jeffvli db06e7f601 add native nd radio endpoints, support radio station images 2026-04-02 18:26:26 -07:00
jeffvli fbf82c1ef0 add playlist image upload to edit playlist modal 2026-04-02 17:41:25 -07:00
jeffvli 92cea5dfda add log for direct play profiles 2026-04-02 01:27:14 -07:00
jeffvli 7442f9d3ca support navidrome playlist image upload 2026-04-02 01:23:09 -07:00
jeffvli 68dacea228 use resized images in artist header 2026-04-01 21:57:32 -07:00
jeffvli 51425b5e86 various performance refactors 2026-04-01 21:57:26 -07:00
jeffvli c60610cb42 lint files 2026-03-31 21:12:48 -07:00
jeffvli d3881ee3be support limitPercent for smart playlists 2026-03-31 21:09:13 -07:00
jeffvli de403ea6ac add new nd smart playlist fields
- averagerating

- albumdateloved
- albumlastplayed
- albumdaterated
- albumloved
- albumrating

- artistdateloved
 -artistlastplayed
- artistdaterated
- artistloved
- artistplaycount
2026-03-31 20:55:36 -07:00
jeffvli a30b1ec90b add OS transcoding extension 2026-03-31 20:45:22 -07:00
Hosted Weblate 7982c0e1bd Translated using Weblate
Currently translated at 100.0% (1193 of 1193 strings) (Chinese (Simplified Han script))
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/zh_Hans/

Translated using Weblate

Currently translated at 83.4% (996 of 1193 strings) (Basque)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/eu/

Co-authored-by: Aitor Astorga <a.astorga.sdv@protonmail.com>
Co-authored-by: 無情天 <kofzhanganguo@126.com>
2026-03-31 16:09:57 +02:00
dependabot[bot] baf4e7bc0b Bump fast-xml-parser in the npm_and_yarn group across 1 directory (#1777)
Bumps the npm_and_yarn group with 1 update in the / directory: [fast-xml-parser](https://github.com/NaturalIntelligence/fast-xml-parser).


Updates `fast-xml-parser` from 5.3.6 to 5.3.8
- [Release notes](https://github.com/NaturalIntelligence/fast-xml-parser/releases)
- [Changelog](https://github.com/NaturalIntelligence/fast-xml-parser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/NaturalIntelligence/fast-xml-parser/compare/v5.3.6...v5.3.8)

---
updated-dependencies:
- dependency-name: fast-xml-parser
  dependency-version: 5.3.8
  dependency-type: direct:production
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-29 21:43:31 -07:00
Sutaai 74c44558fe fix: window bar disappearing in Glassy Dark (#1878)
* fix: glassy dark content container claiming entire width  (#1713)

* fix: apply container height fix only when using window bar

---------

Co-authored-by: Jeff <42182408+jeffvli@users.noreply.github.com>
2026-03-29 21:43:08 -07:00
Pyx 4033619421 glassy dark theme improvements (#1844)
* glassy dark theme improvements
2026-03-29 21:27:56 -07:00
jeffvli 5d206bbb1f toggle fullscreen visualizer on left controls image (#1857) 2026-03-29 21:05:53 -07:00
Hosted Weblate 3db801f2de Translated using Weblate
Currently translated at 89.1% (1063 of 1193 strings) (German)
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/de/

Translated using Weblate

Currently translated at 100.0% (1193 of 1193 strings) (Czech)
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/cs/

Translated using Weblate

Currently translated at 100.0% (1193 of 1193 strings) (Japanese)
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/ja/

Translated using Weblate

Currently translated at 100.0% (1193 of 1193 strings) (Spanish)
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/es/

Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Translated using Weblate

Currently translated at 100.0% (1194 of 1194 strings) (Chinese (Traditional Han script))
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/zh_Hant/

Co-authored-by: Fjuro <fjuro@users.noreply.hosted.weblate.org>
Co-authored-by: Fordas <fordas15@gmail.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: PhillyMay <mein.alias@outlook.com>
Co-authored-by: karigane <169052233+karigane-cha@users.noreply.github.com>
Co-authored-by: linger <linger0517@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/
Translation: feishin/Translation
2026-03-30 05:34:25 +02:00
ebee04 0d3cf912d3 fix click on feishin icon in macos menu bar (tray) causing switch to feishin window (#1881) 2026-03-29 20:34:18 -07:00
jeffvli d81f30a8b5 disable lyrics on radio playback (#1885) 2026-03-29 20:33:31 -07:00
Kendall Garner a5c3b454f4 add flathub to readme 2026-03-28 21:33:51 -07:00
Kendall Garner 68e6e3cf65 feat(playlist): support updating playlist track order (#1875)
* feat(playlist): support updating playlist track order

* force track mode when editing

* use common confirmation for save

* remove en editPLaylist key
2026-03-27 21:36:08 -07:00
Romain VIGNERES 86e6b88555 feat(albums): show grouping tags on album detail page (#1872)
* feat(albums): show grouping tags on album detail page

---------

Co-authored-by: Romain VIGNERES <romain.vigneres@texa.fr>
2026-03-27 18:51:44 -07:00
jeffvli 5cdc45836f rework queue persistence (#1862) 2026-03-27 18:48:38 -07:00
Kendall Garner d438c802a4 fix(normalize): do not duplicate remixer when included in credit 2026-03-27 18:46:12 -07:00
Hosted Weblate a838bdebb7 Translated using Weblate
Currently translated at 79.5% (949 of 1193 strings) (Basque)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/eu/

Co-authored-by: Aitor Astorga <a.astorga.sdv@protonmail.com>
2026-03-27 20:09:51 +01:00
Hosted Weblate 8ff2f4dfb4 Translated using Weblate
Currently translated at 100.0% (1193 of 1193 strings) (Chinese (Traditional Han script))
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/zh_Hant/

Translated using Weblate

Currently translated at 100.0% (1193 of 1193 strings) (Japanese)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/ja/

Translated using Weblate

Currently translated at 100.0% (1193 of 1193 strings) (Spanish)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/es/

Translated using Weblate

Currently translated at 100.0% (1193 of 1193 strings) (Czech)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/cs/

Co-authored-by: Fjuro <fjuro@users.noreply.hosted.weblate.org>
Co-authored-by: Fordas <fordas15@gmail.com>
Co-authored-by: York <goog10216922@gmail.com>
Co-authored-by: karigane <169052233+karigane-cha@users.noreply.github.com>
2026-03-26 08:09:54 +01:00
jeffvli ede47fbf8f fix missing artist name in lyrics search query for lrclib (#1871) 2026-03-25 17:49:50 -07:00
jeffvli 9eb64079f7 handle disabled features in a single flag (#1271) 2026-03-25 17:41:08 -07:00
Hosted Weblate 3b955bb319 Translated using Weblate
Currently translated at 100.0% (1191 of 1191 strings) (Chinese (Simplified Han script))
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/zh_Hans/

Translated using Weblate

Currently translated at 100.0% (1191 of 1191 strings) (Dutch)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/nl/

Co-authored-by: bokse <weblate@bokse.nl>
Co-authored-by: 無情天 <kofzhanganguo@126.com>
2026-03-25 07:09:59 +01:00
Darius 816adfa6c7 Waveform playerbar improvements (#1781)
* Defer waveform loading & show default seek bar as fallback

* Add configurable waveform loading delay

* Add 2s default value for waveform loading delay

* disable transcoding config on waveform url

---------

Co-authored-by: jeffvli <jeffvictorli@gmail.com>
2026-03-24 10:06:25 -07:00
Hosted Weblate f91dcc6af6 Translated using Weblate
Currently translated at 100.0% (1191 of 1191 strings) (French)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/fr/

Co-authored-by: KosmoMoustache <kosmomoustache@users.noreply.hosted.weblate.org>
2026-03-24 06:10:58 +01:00
kast3t 6dc58a3ff8 fix playlist sort by id (#1867) (#1868)
* fix playlist sort by id (#1867)
2026-03-23 18:27:21 -07:00
Kendall Garner 09fa10a4e9 fix(web): do not load umami if env is disabled 2026-03-22 15:08:21 -07:00
Hosted Weblate 6f45e1a814 Translated using Weblate
Currently translated at 100.0% (1191 of 1191 strings) (Polish)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/pl/

Co-authored-by: skajmer <skajmer@protonmail.com>
2026-03-21 23:09:51 +01:00
Hosted Weblate 62ba721f26 Translated using Weblate
Currently translated at 100.0% (1191 of 1191 strings) (Chinese (Traditional Han script))
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/zh_Hant/

Translated using Weblate

Currently translated at 100.0% (1191 of 1191 strings) (Czech)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/cs/

Translated using Weblate

Currently translated at 100.0% (1191 of 1191 strings) (Spanish)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/es/

Translated using Weblate

Currently translated at 100.0% (1191 of 1191 strings) (Japanese)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/ja/

Co-authored-by: Fjuro <fjuro@users.noreply.hosted.weblate.org>
Co-authored-by: Fordas <fordas15@gmail.com>
Co-authored-by: York <goog10216922@gmail.com>
Co-authored-by: karigane <169052233+karigane-cha@users.noreply.github.com>
2026-03-19 13:09:56 +01:00
jeffvli 67231753e4 add list search links to command palette 2026-03-18 02:51:27 -07:00
jeffvli c16eccaecb fix tab index on command palette play buttons 2026-03-18 02:17:31 -07:00
Hosted Weblate 0bdf1dcb75 Translated using Weblate
Currently translated at 100.0% (1190 of 1190 strings) (Chinese (Traditional Han script))
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/zh_Hant/

Co-authored-by: York <goog10216922@gmail.com>
2026-03-18 08:03:12 +00:00
jeffvli 598e9ca5c2 replace lastfm, musicbrainz, and listenbrainz logos 2026-03-18 01:02:57 -07:00
jeffvli 615f9c3515 refactor search into individual sections by itemtype, add infinite loader 2026-03-18 00:59:04 -07:00
jeffvli b7cbdb4d6c persist command palette collapsed sections to app store 2026-03-17 22:34:07 -07:00
jeffvli 3c562c1398 redesign command palette
- add collapsible search groups
- reduce modal padding
- reduce command item padding
- use breadcrumbs for pagination
- move page breadcrumbs to the bottom
2026-03-17 22:28:07 -07:00
jeffvli 3eafa73217 adjust padding / design of layout toggle 2026-03-17 21:40:16 -07:00
Hosted Weblate 74864d9621 Translated using Weblate
Currently translated at 100.0% (1184 of 1184 strings) (Chinese (Traditional Han script))
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/zh_Hant/

Co-authored-by: York <goog10216922@gmail.com>
2026-03-18 04:25:29 +00:00
jeffvli cb5562d32e decrease height of single feature carousel (#1850) 2026-03-17 21:25:18 -07:00
jeffvli e40a175e12 add qobuz and listenbrainz external links 2026-03-17 21:10:31 -07:00
jeffvli f996b111b9 add new external brand icons 2026-03-17 21:10:31 -07:00
Hosted Weblate 0cb5c49924 Translated using Weblate
Currently translated at 100.0% (1180 of 1180 strings) (Czech)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/cs/

Co-authored-by: Fjuro <fjuro@users.noreply.hosted.weblate.org>
2026-03-18 02:06:56 +00:00
jeffvli c636029003 assert appstore state migration return type 2026-03-17 19:06:45 -07:00
jeffvli db88a6bc22 support vertical play queue layout 2026-03-17 19:01:01 -07:00
Hosted Weblate 8ccd97b574 Translated using Weblate
Currently translated at 100.0% (1180 of 1180 strings) (Spanish)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/es/

Translated using Weblate

Currently translated at 100.0% (1180 of 1180 strings) (Chinese (Traditional Han script))
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/zh_Hant/

Translated using Weblate

Currently translated at 100.0% (1180 of 1180 strings) (Japanese)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/ja/

Translated using Weblate

Currently translated at 45.5% (537 of 1180 strings) (Norwegian Bokmål)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/nb_NO/

Co-authored-by: Fordas <fordas15@gmail.com>
Co-authored-by: Kristoffer <spinal-onto-rebel@duck.com>
Co-authored-by: karigane <169052233+karigane-cha@users.noreply.github.com>
Co-authored-by: linger <linger0517@gmail.com>
2026-03-17 09:10:00 +01:00
jeffvli 3f99acf473 update to v1.9.0 2026-03-16 00:19:48 -07:00
Hosted Weblate 0cd37ce8ec Translated using Weblate
Currently translated at 100.0% (1180 of 1180 strings) (Chinese (Traditional Han script))
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/zh_Hant/

Co-authored-by: linger <linger0517@gmail.com>
2026-03-16 08:19:17 +01:00
jeffvli ee04878580 set mpv audio device to auto if undefined 2026-03-15 20:17:59 -07:00
jeffvli e987049f20 improve sleep timer ui 2026-03-15 18:20:12 -07:00
Hosted Weblate 122552287a Translated using Weblate
Currently translated at 100.0% (1175 of 1175 strings) (Chinese (Simplified Han script))
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/zh_Hans/

Translated using Weblate

Currently translated at 100.0% (1175 of 1175 strings) (Japanese)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/ja/

Translated using Weblate

Currently translated at 100.0% (1175 of 1175 strings) (French)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/fr/

Translated using Weblate

Currently translated at 10.1% (119 of 1175 strings) (Arabic)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/ar/

Translated using Weblate

Currently translated at 89.0% (1046 of 1175 strings) (German)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/de/

Translated using Weblate

Currently translated at 100.0% (1175 of 1175 strings) (Catalan)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/ca/

Co-authored-by: Benjamin <ben@iipython.dev>
Co-authored-by: KosmoMoustache <kosmomoustache@users.noreply.hosted.weblate.org>
Co-authored-by: PhillyMay <mein.alias@outlook.com>
2026-03-16 01:01:08 +00:00
jeffvli d318e6d341 ensure no concurrent playback on non-transition state on web player (#1829) 2026-03-15 18:00:51 -07:00
riccardo d96b282cae feat: "open in spotify" button (#1839)
* feat: open in spotify

* fix: disable native spotify URI by default
2026-03-15 11:49:33 -07:00
jeffvli f2ab01199f disable WaylandFractionScaleV1 (#1271) 2026-03-15 11:42:31 -07:00
Kendall Garner 04b22431f4 fix(settings): proper description for sidebar configuration 2026-03-15 09:16:12 -07:00
Kendall Garner 31fce705ab feat(docker): rootless container) 2026-03-14 18:39:38 -07:00
jeffvli a28fab0ff3 optimize skeleton animation (#1832) 2026-03-14 15:31:13 -07:00
Hosted Weblate 0a1d4788ee Translated using Weblate
Currently translated at 81.1% (954 of 1175 strings) (Russian)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/ru/

Translated using Weblate

Currently translated at 100.0% (1175 of 1175 strings) (Polish)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/pl/

Translated using Weblate

Currently translated at 44.1% (519 of 1175 strings) (Norwegian Bokmål)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/nb_NO/

Co-authored-by: klodrik <klodrik@zoominn.no>
Co-authored-by: qvap <qvapelsin@gmail.com>
Co-authored-by: skajmer <skajmer@protonmail.com>
2026-03-14 14:09:54 +01:00
jeffvli fafb9d4f56 remove vercel.json due to incorrect edge request configuration 2026-03-13 17:23:03 -07:00
jeffvli 4fdc38caee remove duplicate only-built-dependencies 2026-03-13 17:15:12 -07:00
jeffvli 799cdb44d3 use pnpm v10 on runners 2026-03-13 17:11:24 -07:00
jeffvli 372892199f pin pnpm/action-setup to v4 2026-03-13 17:02:34 -07:00
jeffvli d16184fb25 bump actions dependencies to latest due to deprecated Node v20 2026-03-13 16:59:55 -07:00
jeffvli b8564f6d41 skip wait-for-lint on workflow dispatch 2026-03-13 16:38:32 -07:00
Hosted Weblate d474e60c51 Translated using Weblate
Currently translated at 100.0% (1175 of 1175 strings) (French)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/fr/

Translated using Weblate

Currently translated at 87.5% (1029 of 1175 strings) (Japanese)
Translation: feishin/Translation
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/ja/

Co-authored-by: Mario Gervais <social.m@riogervais.ca>
Co-authored-by: karigane <169052233+karigane-cha@users.noreply.github.com>
2026-03-13 09:09:54 +00:00
Lyall dfdac28f53 Fix server queue saving/restoring on Navidrome and OpenSubsonic (#1828)
* fix server queue saving

* fix error when attempting to restore empty queue

* queue items optional

* make playQueueByIndex optional

* fix incorrect error message
2026-03-12 13:41:50 +00:00
jeffvli 16b713bc85 add missing suspense boundary around playlist filter sidebar 2026-03-11 22:00:39 -07:00
Kendall Garner 81cd0722b1 fix(mpv): replace mpv queue when restoring queue 2026-03-11 21:42:16 -07:00
jeffvli 1526f9b8d6 re-add session cache for loaded images 2026-03-11 21:20:31 -07:00
jeffvli 5b4da3bc29 use batched fetching for nd song list
- albumIds get culled from query parameters after a certain number, resulting in not all items fetched
2026-03-11 20:46:49 -07:00
jeffvli d78ea440cc set low fetchPriority for carousel images 2026-03-11 19:41:04 -07:00
jeffvli 1595805b83 add additional render optimizations to ArtistAlbums 2026-03-11 19:12:11 -07:00
jeffvli 00fa45f15d isolate render of sticky elements on item table 2026-03-11 19:07:18 -07:00
Luna M ab05be30c0 Fix typo in docker-compose config (#1827) 2026-03-12 01:08:13 +00:00
Hosted Weblate 3d407e5f24 Update translation files
Updated by "Remove blank strings" hook in Weblate.

Translated using Weblate

Currently translated at 99.8% (1173 of 1175 strings) (Polish)
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/pl/

Translated using Weblate

Currently translated at 74.1% (871 of 1175 strings) (Russian)
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/ru/

Translated using Weblate

Currently translated at 74.1% (871 of 1175 strings) (Russian)
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/ru/

Translated using Weblate

Currently translated at 85.7% (1007 of 1175 strings) (Japanese)
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/ja/

Co-authored-by: DanisimoR <danisimogg22@gmail.com>
Co-authored-by: Gentor <gentor92@gmail.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: karigane <169052233+karigane-cha@users.noreply.github.com>
Co-authored-by: skajmer <skajmer@protonmail.com>
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/
Translation: feishin/Translation
2026-03-11 21:10:02 +01:00
jeffvli 60776b5f02 fix missing list query invalidation on playlist create/delete 2026-03-11 02:04:51 -07:00
jeffvli 8699b1ffea add sort to artist favorite songs page (#1691) 2026-03-11 01:48:39 -07:00
riccardo 16ac536f93 feat(lyrics): simpmusic lyrics provider (#1820)
* feat(lyrics): simpmusic lyrics provider
2026-03-11 01:04:55 -07:00
jeffvli f51d3d5711 prevent no lyrics message fade out on fullscreen player (#1821) 2026-03-11 01:00:32 -07:00
jeffvli 17a4a14a4e fix isValid condition on REMOTE_URL for server lock (#1822) 2026-03-10 20:02:37 -07:00
jeffvli ecda918b46 update to v1.8.0 2026-03-09 21:53:26 -07:00
Tarulia 93834788b5 use electron-builder's static AppImage runtime (#1816)
electron-builder added compatibility with the AppImage Type2 runtime
(i.e. FUSE-less runtime). However, this is - for now anyway - an opt-in
feature, which this commit enables.
2026-03-09 21:52:48 -07:00
jeffvli 66e7b44d75 add client-side sort to artist favorite songs (#1691) 2026-03-09 20:58:02 -07:00
jeffvli 8825fc1e84 unhide image on error on libraryheader 2026-03-09 20:49:02 -07:00
jeffvli ac0cc19c04 prefer artistInfo artist image 2026-03-09 20:49:02 -07:00
jeffvli de29465b1f enable skeleton animations by default 2026-03-09 20:49:02 -07:00
jeffvli 31a201ca32 rewrite Image component
- remove react-image dependency
- use manual blob load
- abort load when exiting viewport
2026-03-09 20:49:02 -07:00
Hosted Weblate 3644ea2969 Update translation files
Updated by "Remove blank strings" hook in Weblate.

Translated using Weblate

Currently translated at 100.0% (1175 of 1175 strings) (Czech)
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/cs/

Translated using Weblate

Currently translated at 100.0% (1175 of 1175 strings) (Spanish)
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/es/

Translated using Weblate

Currently translated at 98.2% (1155 of 1175 strings) (French)
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/fr/

Co-authored-by: Fjuro <fjuro@users.noreply.hosted.weblate.org>
Co-authored-by: Fordas <fordas15@gmail.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: KosmoMoustache <kosmomoustache@users.noreply.hosted.weblate.org>
Translate-URL: https://hosted.weblate.org/projects/feishin/translation/
Translation: feishin/Translation
2026-03-10 03:08:35 +01:00
ashe e46c61e026 Remote URL hardcoding compatibility (#1810)
* Remote URL compatibility
---------

Co-authored-by: jeffvli <jeffvictorli@gmail.com>
2026-03-09 19:08:28 -07:00
Oliver Tzeng 3873218e94 fix translated zh-Hant and zh-Hans (#1807) 2026-03-09 17:08:07 -07:00
Jeff b4a61cbd6e use ad-hoc code signing for macOS build, disable hardenedRuntime (#1815) 2026-03-09 17:05:12 -07:00
jeffvli accc6e53f0 bump electron-builder for pnpm v10.3 ( #1796) 2026-03-09 12:54:32 -07:00
jeffvli adf48decc4 run PR publish on electron-builder config changes 2026-03-09 09:52:42 -07:00
454 changed files with 31441 additions and 25131 deletions
+12 -12
View File
@@ -40,12 +40,12 @@ jobs:
version: ${{ steps.version.outputs.version }} version: ${{ steps.version.outputs.version }}
steps: steps:
- name: Checkout git repo - name: Checkout git repo
uses: actions/checkout@v1 uses: actions/checkout@v6
- name: Install Node and PNPM - name: Install Node and PNPM
uses: pnpm/action-setup@v4.1.0 uses: pnpm/action-setup@v4
with: with:
version: 9 version: 10
- name: Install dependencies - name: Install dependencies
run: pnpm install run: pnpm install
@@ -121,16 +121,16 @@ jobs:
strategy: strategy:
matrix: matrix:
os: [windows-latest, macos-latest, ubuntu-latest] os: [windows-latest, macos-26, ubuntu-latest]
steps: steps:
- name: Checkout git repo - name: Checkout git repo
uses: actions/checkout@v1 uses: actions/checkout@v6
- name: Install Node and PNPM - name: Install Node and PNPM
uses: pnpm/action-setup@v4.1.0 uses: pnpm/action-setup@v4
with: with:
version: 9 version: 10
- name: Install dependencies - name: Install dependencies
run: pnpm install run: pnpm install
@@ -146,7 +146,7 @@ jobs:
- name: Build and Publish to R2 (Windows) - name: Build and Publish to R2 (Windows)
if: matrix.os == 'windows-latest' if: matrix.os == 'windows-latest'
uses: nick-invision/retry@v2.8.2 uses: nick-invision/retry@v3.0.2
with: with:
timeout_minutes: 30 timeout_minutes: 30
max_attempts: 3 max_attempts: 3
@@ -156,8 +156,8 @@ jobs:
on_retry_command: pnpm cache delete on_retry_command: pnpm cache delete
- name: Build and Publish to R2 (macOS) - name: Build and Publish to R2 (macOS)
if: matrix.os == 'macos-latest' if: matrix.os == 'macos-26'
uses: nick-invision/retry@v2.8.2 uses: nick-invision/retry@v3.0.2
with: with:
timeout_minutes: 30 timeout_minutes: 30
max_attempts: 3 max_attempts: 3
@@ -168,7 +168,7 @@ jobs:
- name: Build and Publish to R2 (Linux) - name: Build and Publish to R2 (Linux)
if: matrix.os == 'ubuntu-latest' if: matrix.os == 'ubuntu-latest'
uses: nick-invision/retry@v2.8.2 uses: nick-invision/retry@v3.0.2
with: with:
timeout_minutes: 30 timeout_minutes: 30
max_attempts: 3 max_attempts: 3
@@ -179,7 +179,7 @@ jobs:
- name: Build and Publish to R2 (Linux ARM64) - name: Build and Publish to R2 (Linux ARM64)
if: matrix.os == 'ubuntu-latest' if: matrix.os == 'ubuntu-latest'
uses: nick-invision/retry@v2.8.2 uses: nick-invision/retry@v3.0.2
with: with:
timeout_minutes: 30 timeout_minutes: 30
max_attempts: 3 max_attempts: 3
+14 -14
View File
@@ -15,12 +15,12 @@ jobs:
version: ${{ steps.version.outputs.version }} version: ${{ steps.version.outputs.version }}
steps: steps:
- name: Checkout git repo - name: Checkout git repo
uses: actions/checkout@v1 uses: actions/checkout@v6
- name: Install Node and PNPM - name: Install Node and PNPM
uses: pnpm/action-setup@v4.1.0 uses: pnpm/action-setup@v4
with: with:
version: 9 version: 10
- name: Install dependencies - name: Install dependencies
run: pnpm install run: pnpm install
@@ -115,16 +115,16 @@ jobs:
strategy: strategy:
matrix: matrix:
os: [windows-latest, macos-latest, ubuntu-latest] os: [windows-latest, macos-26, ubuntu-latest]
steps: steps:
- name: Checkout git repo - name: Checkout git repo
uses: actions/checkout@v1 uses: actions/checkout@v6
- name: Install Node and PNPM - name: Install Node and PNPM
uses: pnpm/action-setup@v4.1.0 uses: pnpm/action-setup@v4
with: with:
version: 9 version: 10
- name: Install dependencies - name: Install dependencies
run: pnpm install run: pnpm install
@@ -146,7 +146,7 @@ jobs:
if: matrix.os == 'windows-latest' if: matrix.os == 'windows-latest'
env: env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: nick-invision/retry@v2.8.2 uses: nick-invision/retry@v3.0.2
with: with:
timeout_minutes: 30 timeout_minutes: 30
max_attempts: 3 max_attempts: 3
@@ -156,10 +156,10 @@ jobs:
on_retry_command: pnpm cache delete on_retry_command: pnpm cache delete
- name: Build and Publish releases (macOS) - name: Build and Publish releases (macOS)
if: matrix.os == 'macos-latest' if: matrix.os == 'macos-26'
env: env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: nick-invision/retry@v2.8.2 uses: nick-invision/retry@v3.0.2
with: with:
timeout_minutes: 30 timeout_minutes: 30
max_attempts: 3 max_attempts: 3
@@ -172,7 +172,7 @@ jobs:
if: matrix.os == 'ubuntu-latest' if: matrix.os == 'ubuntu-latest'
env: env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: nick-invision/retry@v2.8.2 uses: nick-invision/retry@v3.0.2
with: with:
timeout_minutes: 30 timeout_minutes: 30
max_attempts: 3 max_attempts: 3
@@ -185,7 +185,7 @@ jobs:
if: matrix.os == 'ubuntu-latest' if: matrix.os == 'ubuntu-latest'
env: env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: nick-invision/retry@v2.8.2 uses: nick-invision/retry@v3.0.2
with: with:
timeout_minutes: 30 timeout_minutes: 30
max_attempts: 3 max_attempts: 3
@@ -199,7 +199,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout git repo - name: Checkout git repo
uses: actions/checkout@v1 uses: actions/checkout@v6
- name: Edit release with commits and title - name: Edit release with commits and title
shell: pwsh shell: pwsh
@@ -346,7 +346,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout git repo - name: Checkout git repo
uses: actions/checkout@v1 uses: actions/checkout@v6
- name: Delete existing prereleases - name: Delete existing prereleases
shell: pwsh shell: pwsh
+1 -2
View File
@@ -20,7 +20,7 @@ jobs:
packages: write packages: write
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v6
- name: Log in to the Container registry - name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with: with:
@@ -51,5 +51,4 @@ jobs:
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
platforms: | platforms: |
linux/amd64 linux/amd64
linux/arm/v7
linux/arm64/v8 linux/arm64/v8
+1 -1
View File
@@ -15,7 +15,7 @@ jobs:
packages: write packages: write
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v6
- name: Log in to the Container registry - name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with: with:
+5 -5
View File
@@ -12,12 +12,12 @@ jobs:
steps: steps:
- name: Checkout git repo - name: Checkout git repo
uses: actions/checkout@v1 uses: actions/checkout@v6
- name: Install Node and PNPM - name: Install Node and PNPM
uses: pnpm/action-setup@v4.1.0 uses: pnpm/action-setup@v4
with: with:
version: 9 version: 10
- name: Install dependencies - name: Install dependencies
run: pnpm install run: pnpm install
@@ -25,7 +25,7 @@ jobs:
- name: Build and Publish releases - name: Build and Publish releases
env: env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: nick-invision/retry@v2.8.2 uses: nick-invision/retry@v3.0.2
with: with:
timeout_minutes: 30 timeout_minutes: 30
max_attempts: 3 max_attempts: 3
@@ -37,7 +37,7 @@ jobs:
- name: Build and Publish releases (arm64) - name: Build and Publish releases (arm64)
env: env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: nick-invision/retry@v2.8.2 uses: nick-invision/retry@v3.0.2
with: with:
timeout_minutes: 30 timeout_minutes: 30
max_attempts: 3 max_attempts: 3
+6 -5
View File
@@ -8,24 +8,25 @@ jobs:
strategy: strategy:
matrix: matrix:
os: [macos-latest] os: [macos-26]
steps: steps:
- name: Checkout git repo - name: Checkout git repo
uses: actions/checkout@v1 uses: actions/checkout@v6
- name: Install Node and PNPM - name: Install Node and PNPM
uses: pnpm/action-setup@v4.1.0 uses: pnpm/action-setup@v4
with: with:
version: 9 version: 10
- name: Install dependencies - name: Install dependencies
run: pnpm install run: pnpm install
- name: Build and Publish releases - name: Build and Publish releases
env: env:
NODE_OPTIONS: --max-old-space-size=4096
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: nick-invision/retry@v2.8.2 uses: nick-invision/retry@v3.0.2
with: with:
timeout_minutes: 30 timeout_minutes: 30
max_attempts: 3 max_attempts: 3
+17 -13
View File
@@ -1,14 +1,17 @@
name: Publish (PR) name: Publish (PR)
on: on:
workflow_dispatch:
pull_request: pull_request:
branches: branches:
- development - development
paths: paths:
- 'src/**' - 'src/**'
- 'electron-builder*.yml'
jobs: jobs:
wait-for-lint: wait-for-lint:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Wait for Test workflow to complete - name: Wait for Test workflow to complete
@@ -22,27 +25,28 @@ jobs:
publish: publish:
needs: wait-for-lint needs: wait-for-lint
if: always() && (needs.wait-for-lint.result == 'success' || needs.wait-for-lint.result == 'skipped')
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
os: [macos-latest, ubuntu-latest, windows-latest] os: [macos-26, ubuntu-latest, windows-latest]
steps: steps:
- name: Checkout git repo - name: Checkout git repo
uses: actions/checkout@v3 uses: actions/checkout@v6
- name: Install Node and PNPM - name: Install Node and PNPM
uses: pnpm/action-setup@v4.1.0 uses: pnpm/action-setup@v4
with: with:
version: 9 version: 10
- name: Install dependencies - name: Install dependencies
run: pnpm install run: pnpm install
- name: Build for Windows - name: Build for Windows
if: ${{ matrix.os == 'windows-latest' }} if: ${{ matrix.os == 'windows-latest' }}
uses: nick-invision/retry@v2.8.2 uses: nick-invision/retry@v3.0.2
with: with:
timeout_minutes: 30 timeout_minutes: 30
max_attempts: 3 max_attempts: 3
@@ -52,7 +56,7 @@ jobs:
- name: Build for Linux - name: Build for Linux
if: ${{ matrix.os == 'ubuntu-latest' }} if: ${{ matrix.os == 'ubuntu-latest' }}
uses: nick-invision/retry@v2.8.2 uses: nick-invision/retry@v3.0.2
with: with:
timeout_minutes: 30 timeout_minutes: 30
max_attempts: 3 max_attempts: 3
@@ -61,8 +65,8 @@ jobs:
pnpm run package:linux:pr pnpm run package:linux:pr
- name: Build for MacOS - name: Build for MacOS
if: ${{ matrix.os == 'macos-latest' }} if: ${{ matrix.os == 'macos-26' }}
uses: nick-invision/retry@v2.8.2 uses: nick-invision/retry@v3.0.2
with: with:
timeout_minutes: 30 timeout_minutes: 30
max_attempts: 3 max_attempts: 3
@@ -82,27 +86,27 @@ jobs:
zip -r dist/linux-binaries.zip dist/*.{AppImage,deb,rpm} zip -r dist/linux-binaries.zip dist/*.{AppImage,deb,rpm}
- name: Zip MacOS Binaries - name: Zip MacOS Binaries
if: ${{ matrix.os == 'macos-latest' }} if: ${{ matrix.os == 'macos-26' }}
run: | run: |
zip -r dist/macos-binaries.zip dist/*.dmg zip -r dist/macos-binaries.zip dist/*.dmg
- name: Upload Windows Binaries - name: Upload Windows Binaries
if: ${{ matrix.os == 'windows-latest' }} if: ${{ matrix.os == 'windows-latest' }}
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v7
with: with:
name: windows-binaries name: windows-binaries
path: dist/windows-binaries.zip path: dist/windows-binaries.zip
- name: Upload Linux Binaries - name: Upload Linux Binaries
if: ${{ matrix.os == 'ubuntu-latest' }} if: ${{ matrix.os == 'ubuntu-latest' }}
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v7
with: with:
name: linux-binaries name: linux-binaries
path: dist/linux-binaries.zip path: dist/linux-binaries.zip
- name: Upload MacOS Binaries - name: Upload MacOS Binaries
if: ${{ matrix.os == 'macos-latest' }} if: ${{ matrix.os == 'macos-26' }}
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v7
with: with:
name: macos-binaries name: macos-binaries
path: dist/macos-binaries.zip path: dist/macos-binaries.zip
+4 -4
View File
@@ -12,12 +12,12 @@ jobs:
steps: steps:
- name: Checkout git repo - name: Checkout git repo
uses: actions/checkout@v1 uses: actions/checkout@v6
- name: Install Node and PNPM - name: Install Node and PNPM
uses: pnpm/action-setup@v4.1.0 uses: pnpm/action-setup@v4
with: with:
version: 9 version: 10
- name: Install dependencies - name: Install dependencies
run: pnpm install run: pnpm install
@@ -25,7 +25,7 @@ jobs:
- name: Build and Publish releases - name: Build and Publish releases
env: env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: nick-invision/retry@v2.8.2 uses: nick-invision/retry@v3.0.2
with: with:
timeout_minutes: 30 timeout_minutes: 30
max_attempts: 3 max_attempts: 3
+9 -9
View File
@@ -8,16 +8,16 @@ jobs:
strategy: strategy:
matrix: matrix:
os: [windows-latest, macos-latest, ubuntu-latest] os: [windows-latest, macos-26, ubuntu-latest]
steps: steps:
- name: Checkout git repo - name: Checkout git repo
uses: actions/checkout@v1 uses: actions/checkout@v6
- name: Install Node and PNPM - name: Install Node and PNPM
uses: pnpm/action-setup@v4.1.0 uses: pnpm/action-setup@v4
with: with:
version: 9 version: 10
- name: Install dependencies - name: Install dependencies
run: pnpm install run: pnpm install
@@ -26,7 +26,7 @@ jobs:
if: matrix.os == 'windows-latest' if: matrix.os == 'windows-latest'
env: env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: nick-invision/retry@v2.8.2 uses: nick-invision/retry@v3.0.2
with: with:
timeout_minutes: 30 timeout_minutes: 30
max_attempts: 3 max_attempts: 3
@@ -36,10 +36,10 @@ jobs:
on_retry_command: pnpm cache delete on_retry_command: pnpm cache delete
- name: Build and Publish releases (macOS) - name: Build and Publish releases (macOS)
if: matrix.os == 'macos-latest' if: matrix.os == 'macos-26'
env: env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: nick-invision/retry@v2.8.2 uses: nick-invision/retry@v3.0.2
with: with:
timeout_minutes: 30 timeout_minutes: 30
max_attempts: 3 max_attempts: 3
@@ -52,7 +52,7 @@ jobs:
if: matrix.os == 'ubuntu-latest' if: matrix.os == 'ubuntu-latest'
env: env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: nick-invision/retry@v2.8.2 uses: nick-invision/retry@v3.0.2
with: with:
timeout_minutes: 30 timeout_minutes: 30
max_attempts: 3 max_attempts: 3
@@ -65,7 +65,7 @@ jobs:
if: matrix.os == 'ubuntu-latest' if: matrix.os == 'ubuntu-latest'
env: env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: nick-invision/retry@v2.8.2 uses: nick-invision/retry@v3.0.2
with: with:
timeout_minutes: 30 timeout_minutes: 30
max_attempts: 3 max_attempts: 3
+3 -3
View File
@@ -8,12 +8,12 @@ jobs:
steps: steps:
- name: Check out Git repository - name: Check out Git repository
uses: actions/checkout@v1 uses: actions/checkout@v6
- name: Install Node.js and PNPM - name: Install Node.js and PNPM
uses: pnpm/action-setup@v4.1.0 uses: pnpm/action-setup@v4
with: with:
version: 9 version: 10
- name: Install dependencies - name: Install dependencies
run: pnpm install run: pnpm install
-1
View File
@@ -1,2 +1 @@
legacy-peer-deps=true legacy-peer-deps=true
only-built-dependencies=electron,esbuild
+5 -5
View File
@@ -1,5 +1,5 @@
# --- Builder stage # --- Builder stage
FROM node:23-alpine as builder FROM node:23-alpine AS builder
WORKDIR /app WORKDIR /app
# Copy package.json first to cache node_modules # Copy package.json first to cache node_modules
@@ -14,13 +14,13 @@ COPY . .
RUN pnpm run build:web RUN pnpm run build:web
# --- Production stage # --- Production stage
FROM nginx:alpine-slim FROM nginxinc/nginx-unprivileged:alpine-slim
COPY --chown=nginx:nginx --from=builder /app/out/web /usr/share/nginx/html COPY --chown=nginx:nginx --from=builder /app/out/web /usr/share/nginx/html
COPY ./settings.js.template /etc/nginx/templates/settings.js.template COPY --chown=nginx:nginx ./settings.js.template /etc/nginx/templates/settings.js.template
COPY ng.conf.template /etc/nginx/templates/default.conf.template COPY --chown=nginx:nginx ng.conf.template /etc/nginx/templates/default.conf.template
ENV SERVER_LOCK=false SERVER_NAME="" SERVER_TYPE="" SERVER_URL="" ENV SERVER_LOCK=false SERVER_NAME="" SERVER_TYPE="" SERVER_URL="" REMOTE_URL=""
ENV LEGACY_AUTHENTICATION="" ANALYTICS_DISABLED="" PUBLIC_PATH="/" ENV LEGACY_AUTHENTICATION="" ANALYTICS_DISABLED="" PUBLIC_PATH="/"
EXPOSE 9180 EXPOSE 9180
+14 -3
View File
@@ -59,7 +59,11 @@ For media keys to work, you will be prompted to allow Feishin to be a Trusted Ac
#### Linux Notes #### Linux Notes
We provide a small install script to download the latest `.AppImage`, make it executable, and also download the icons required by Desktop Environments. Finally, it generates a `.desktop` file to add Feishin to your Application Launcher. Feishin is available in [Flathub](https://flathub.org/en/apps/org.jeffvli.feishin).
Alternatively, you can install it as an Appimage.
We provide a small install script to download the latest `.AppImage`, make it executable, and also download the icons required by Desktop Environments.
Finally, it generates a `.desktop` file to add Feishin to your Application Launcher.
Simply run the installer like this: Simply run the installer like this:
@@ -114,6 +118,7 @@ services:
- SERVER_LOCK=true # When true AND name/type/url are set, only username/password can be toggled - SERVER_LOCK=true # When true AND name/type/url are set, only username/password can be toggled
- SERVER_TYPE=jellyfin # the allowed types are: jellyfin, navidrome, subsonic. These values are case insensitive - SERVER_TYPE=jellyfin # the allowed types are: jellyfin, navidrome, subsonic. These values are case insensitive
- SERVER_URL= # http://address:port or https://address:port - SERVER_URL= # http://address:port or https://address:port
- REMOTE_URL= # http://address or https://address
- LEGACY_AUTHENTICATION=false # When SERVER_LOCK is true, sets the legacy (plaintext) authentication flag for Subsonic/OpenSubsonic servers - LEGACY_AUTHENTICATION=false # When SERVER_LOCK is true, sets the legacy (plaintext) authentication flag for Subsonic/OpenSubsonic servers
- ANALYTICS_DISABLED=true # Set to true to disable Umami analytics tracking - ANALYTICS_DISABLED=true # Set to true to disable Umami analytics tracking
ports: ports:
@@ -134,9 +139,11 @@ services:
4. _Optional_ - To hard code the server url, pass the following environment variables: `SERVER_NAME`, `SERVER_TYPE` (one of `jellyfin` or `navidrome` or `subsonic`), `SERVER_URL`. To prevent users from changing these settings, pass `SERVER_LOCK=true`. This can only be set if all three of the previous values are set. When `SERVER_LOCK=true`, you can also set `LEGACY_AUTHENTICATION=true` or `LEGACY_AUTHENTICATION=false` to configure the legacy authentication flag for the server (only applicable for Subsonic/OpenSubsonic servers). 4. _Optional_ - To hard code the server url, pass the following environment variables: `SERVER_NAME`, `SERVER_TYPE` (one of `jellyfin` or `navidrome` or `subsonic`), `SERVER_URL`. To prevent users from changing these settings, pass `SERVER_LOCK=true`. This can only be set if all three of the previous values are set. When `SERVER_LOCK=true`, you can also set `LEGACY_AUTHENTICATION=true` or `LEGACY_AUTHENTICATION=false` to configure the legacy authentication flag for the server (only applicable for Subsonic/OpenSubsonic servers).
5. _Optional_ - To disable Umami analytics tracking in the Docker/web version, set the environment variable `ANALYTICS_DISABLED=true`. When enabled, the analytics script will not be loaded and all tracking will be disabled. 5. _Optional_ - If your server uses a separate public-facing URL than what integrating applications use internally to communicate with your server, such as a separate Navidrome `ShareURL`, set `REMOTE_URL` to said public-facing URL.
6. _Optional_ - App settings (theme, language, sidebar options, etc.) can be overridden with environment variables on first run. The variables use the `FS_` prefix (e.g. `FS_GENERAL_THEME=defaultDark`, `FS_GENERAL_LANGUAGE=de`). See [the settings environment variable documentation](docs/ENV_SETTINGS.md) for the full list. 6. _Optional_ - To disable Umami analytics tracking in the Docker/web version, set the environment variable `ANALYTICS_DISABLED=true`. When enabled, the analytics script will not be loaded and all tracking will be disabled.
7. _Optional_ - App settings (theme, language, sidebar options, etc.) can be overridden with environment variables on first run. The variables use the `FS_` prefix (e.g. `FS_GENERAL_THEME=defaultDark`, `FS_GENERAL_LANGUAGE=de`). See [the settings environment variable documentation](docs/ENV_SETTINGS.md) for the full list.
## FAQ ## FAQ
@@ -162,6 +169,10 @@ Feishin supports any music server that implements a [Navidrome](https://www.navi
- [Qm-Music](https://github.com/chenqimiao/qm-music) - [Qm-Music](https://github.com/chenqimiao/qm-music)
- More (?) - More (?)
- [Plex](https://www.plex.tv/media-server-downloads)
- [Feishin fork by lux032](https://github.com/lux032/feishin) - Plex is not natively supported. Use the fork by lux032 to use Plex with Feishin.
### I have the issue "The SUID sandbox helper binary was found, but is not configured correctly" on Linux ### I have the issue "The SUID sandbox helper binary was found, but is not configured correctly" on Linux
This happens when you have user (unprivileged) namespaces disabled (`sysctl kernel.unprivileged_userns_clone` returns 0). You can fix this by either enabling unprivileged namespaces, or by making the `chrome-sandbox` Setuid. This happens when you have user (unprivileged) namespaces disabled (`sysctl kernel.unprivileged_userns_clone` returns 0). You can fix this by either enabling unprivileged namespaces, or by making the `chrome-sandbox` Setuid.
Binary file not shown.
+1
View File
@@ -8,6 +8,7 @@ services:
- SERVER_LOCK=false # When true AND name/type/url are set, only username/password can be toggled - SERVER_LOCK=false # When true AND name/type/url are set, only username/password can be toggled
- SERVER_TYPE=jellyfin # the allowed types are: jellyfin, navidrome, subsonic. These values are case insensitive - SERVER_TYPE=jellyfin # the allowed types are: jellyfin, navidrome, subsonic. These values are case insensitive
- SERVER_URL=http://localhost:8096 # http://address:port or https://address:port - SERVER_URL=http://localhost:8096 # http://address:port or https://address:port
# - REMOTE_URL=http://share.localhost # Used for compatibility with external functionality, such as custom sharing URLs on Navidrome
- LEGACY_AUTHENTICATION=false # When SERVER_LOCK is true, sets the legacyauth flag for server authentication (true or false) - LEGACY_AUTHENTICATION=false # When SERVER_LOCK is true, sets the legacyauth flag for server authentication (true or false)
- ANALYTICS_DISABLED=false # Set to true to disable Umami analytics tracking - ANALYTICS_DISABLED=false # Set to true to disable Umami analytics tracking
ports: ports:
+3
View File
@@ -29,12 +29,14 @@ These variables override app settings **on first run** when no persisted setting
| `general.themeLight` | `defaultLight` | `FS_GENERAL_THEME_LIGHT` | Same as theme (used when system is light). | | `general.themeLight` | `defaultLight` | `FS_GENERAL_THEME_LIGHT` | Same as theme (used when system is light). |
| `general.lastfmApiKey` | *(empty)* | `FS_GENERAL_LASTFM_API_KEY` | Last.fm API key. | | `general.lastfmApiKey` | *(empty)* | `FS_GENERAL_LASTFM_API_KEY` | Last.fm API key. |
| `general.lastFM` | `true` | `FS_GENERAL_LAST_FM` | `true` / `false` — Enable Last.fm. | | `general.lastFM` | `true` | `FS_GENERAL_LAST_FM` | `true` / `false` — Enable Last.fm. |
| `general.listenBrainz` | `true` | `FS_GENERAL_LISTEN_BRAINZ` | `true` / `false` — ListenBrainz links. |
| `general.musicBrainz` | `true` | `FS_GENERAL_MUSIC_BRAINZ` | `true` / `false` — MusicBrainz links. | | `general.musicBrainz` | `true` | `FS_GENERAL_MUSIC_BRAINZ` | `true` / `false` — MusicBrainz links. |
| `general.nativeAspectRatio` | `false` | `FS_GENERAL_NATIVE_ASPECT_RATIO` | `true` / `false` — Use native cover art aspect ratio. | | `general.nativeAspectRatio` | `false` | `FS_GENERAL_NATIVE_ASPECT_RATIO` | `true` / `false` — Use native cover art aspect ratio. |
| `general.pathReplace` | *(empty)* | `FS_GENERAL_PATH_REPLACE` | Path pattern to replace (e.g. server path in Docker). | | `general.pathReplace` | *(empty)* | `FS_GENERAL_PATH_REPLACE` | Path pattern to replace (e.g. server path in Docker). |
| `general.pathReplaceWith` | *(empty)* | `FS_GENERAL_PATH_REPLACE_WITH` | Replacement path. | | `general.pathReplaceWith` | *(empty)* | `FS_GENERAL_PATH_REPLACE_WITH` | Replacement path. |
| `general.playerbarOpenDrawer` | `false` | `FS_GENERAL_PLAYERBAR_OPEN_DRAWER` | `true` / `false` — Open queue/lyrics as drawer from player bar. | | `general.playerbarOpenDrawer` | `false` | `FS_GENERAL_PLAYERBAR_OPEN_DRAWER` | `true` / `false` — Open queue/lyrics as drawer from player bar. |
| `general.primaryShade` | `6` | `FS_GENERAL_PRIMARY_SHADE` | Mantine primary shade 09 (number). | | `general.primaryShade` | `6` | `FS_GENERAL_PRIMARY_SHADE` | Mantine primary shade 09 (number). |
| `general.qobuz` | `true` | `FS_GENERAL_QOBUZ` | `true` / `false` — Qobuz links. |
| `general.resume` | `true` | `FS_GENERAL_RESUME` | `true` / `false` — Resume playback on load. | | `general.resume` | `true` | `FS_GENERAL_RESUME` | `true` / `false` — Resume playback on load. |
| `general.showLyricsInSidebar` | `true` | `FS_GENERAL_SHOW_LYRICS_IN_SIDEBAR` | `true` / `false` — Show lyrics in sidebar. | | `general.showLyricsInSidebar` | `true` | `FS_GENERAL_SHOW_LYRICS_IN_SIDEBAR` | `true` / `false` — Show lyrics in sidebar. |
| `general.showRatings` | `true` | `FS_GENERAL_SHOW_RATINGS` | `true` / `false` — Show star ratings. | | `general.showRatings` | `true` | `FS_GENERAL_SHOW_RATINGS` | `true` / `false` — Show star ratings. |
@@ -44,6 +46,7 @@ These variables override app settings **on first run** when no persisted setting
| `general.sidebarPlaylistList` | `true` | `FS_GENERAL_SIDEBAR_PLAYLIST_LIST` | `true` / `false` — Show playlist list in sidebar. | | `general.sidebarPlaylistList` | `true` | `FS_GENERAL_SIDEBAR_PLAYLIST_LIST` | `true` / `false` — Show playlist list in sidebar. |
| `general.sidebarPlaylistSorting` | `false` | `FS_GENERAL_SIDEBAR_PLAYLIST_SORTING` | `true` / `false` — Enable playlist sorting in sidebar. | | `general.sidebarPlaylistSorting` | `false` | `FS_GENERAL_SIDEBAR_PLAYLIST_SORTING` | `true` / `false` — Enable playlist sorting in sidebar. |
| `general.sideQueueType` | `sideQueue` | `FS_GENERAL_SIDE_QUEUE_TYPE` | `sideDrawerQueue` / `sideQueue` — Side play queue style. | | `general.sideQueueType` | `sideQueue` | `FS_GENERAL_SIDE_QUEUE_TYPE` | `sideDrawerQueue` / `sideQueue` — Side play queue style. |
| `general.sideQueueLayout` | `horizontal` | `FS_GENERAL_SIDE_QUEUE_LAYOUT` | `horizontal` / `vertical` — Attached side queue layout orientation. |
| `general.useThemeAccentColor` | `false` | `FS_GENERAL_USE_THEME_ACCENT_COLOR` | `true` / `false` — Use themes accent color instead of custom. | | `general.useThemeAccentColor` | `false` | `FS_GENERAL_USE_THEME_ACCENT_COLOR` | `true` / `false` — Use themes accent color instead of custom. |
| `general.useThemePrimaryShade` | `true` | `FS_GENERAL_USE_THEME_PRIMARY_SHADE` | `true` / `false` — Use themes primary shade. | | `general.useThemePrimaryShade` | `true` | `FS_GENERAL_USE_THEME_PRIMARY_SHADE` | `true` / `false` — Use themes primary shade. |
| `general.zoomFactor` | `100` | `FS_GENERAL_ZOOM_FACTOR` | UI zoom percentage (number). | | `general.zoomFactor` | `100` | `FS_GENERAL_ZOOM_FACTOR` | UI zoom percentage (number). |
+17 -8
View File
@@ -32,17 +32,23 @@ nsis:
mac: mac:
target: target:
target: default - target: dmg
arch: arch:
- arm64 - arm64
- x64 - x64
icon: assets/icons/icon.icns - target: zip
arch:
- arm64
- x64
icon: media/feishin.icon
type: distribution type: distribution
hardenedRuntime: true hardenedRuntime: false
entitlements: assets/entitlements.mac.plist identity: '-'
entitlementsInherit: assets/entitlements.mac.plist
gatekeeperAssess: false gatekeeperAssess: false
notarize: false notarize: false
extendInfo:
NSAudioCaptureUsageDescription: "System audio access is required for mpv visualizer capture in Feishin"
NSLocalNetworkUsageDescription: 'Local network is necessary for accessing servers hosted on the same system as Feishin'
dmg: dmg:
contents: [{ x: 130, y: 220 }, { x: 410, y: 220, type: link, path: /Applications }] contents: [{ x: 130, y: 220 }, { x: 410, y: 220, type: link, path: /Applications }]
@@ -56,6 +62,9 @@ linux:
icon: assets/icons/icon.png icon: assets/icons/icon.png
artifactName: ${productName}-${os}-${arch}.${ext} artifactName: ${productName}-${os}-${arch}.${ext}
toolsets:
appimage: '1.0.2'
npmRebuild: false npmRebuild: false
publish: publish:
+17 -8
View File
@@ -32,17 +32,23 @@ nsis:
mac: mac:
target: target:
target: default - target: dmg
arch: arch:
- arm64 - arm64
- x64 - x64
icon: assets/icons/icon.icns - target: zip
arch:
- arm64
- x64
icon: media/feishin.icon
type: distribution type: distribution
hardenedRuntime: true hardenedRuntime: false
entitlements: assets/entitlements.mac.plist identity: '-'
entitlementsInherit: assets/entitlements.mac.plist
gatekeeperAssess: false gatekeeperAssess: false
notarize: false notarize: false
extendInfo:
NSAudioCaptureUsageDescription: "System audio access is required for mpv visualizer capture in Feishin"
NSLocalNetworkUsageDescription: 'Local network is necessary for accessing servers hosted on the same system as Feishin'
dmg: dmg:
contents: [{ x: 130, y: 220 }, { x: 410, y: 220, type: link, path: /Applications }] contents: [{ x: 130, y: 220 }, { x: 410, y: 220, type: link, path: /Applications }]
@@ -56,6 +62,9 @@ linux:
icon: assets/icons/icon.png icon: assets/icons/icon.png
artifactName: ${productName}-${os}-${arch}.${ext} artifactName: ${productName}-${os}-${arch}.${ext}
toolsets:
appimage: '1.0.2'
npmRebuild: false npmRebuild: false
publish: publish:
provider: github provider: github
+17 -8
View File
@@ -32,17 +32,23 @@ nsis:
mac: mac:
target: target:
target: default - target: dmg
arch: arch:
- arm64 - arm64
- x64 - x64
icon: assets/icons/icon.icns - target: zip
arch:
- arm64
- x64
icon: media/feishin.icon
type: distribution type: distribution
hardenedRuntime: true hardenedRuntime: false
entitlements: assets/entitlements.mac.plist identity: '-'
entitlementsInherit: assets/entitlements.mac.plist
gatekeeperAssess: false gatekeeperAssess: false
notarize: false notarize: false
extendInfo:
NSAudioCaptureUsageDescription: 'System audio access is required for mpv visualizer capture in Feishin'
NSLocalNetworkUsageDescription: 'Local network is necessary for accessing servers hosted on the same system as Feishin'
dmg: dmg:
contents: [{ x: 130, y: 220 }, { x: 410, y: 220, type: link, path: /Applications }] contents: [{ x: 130, y: 220 }, { x: 410, y: 220, type: link, path: /Applications }]
@@ -56,6 +62,9 @@ linux:
icon: assets/icons/icon.png icon: assets/icons/icon.png
artifactName: ${productName}-${os}-${arch}.${ext} artifactName: ${productName}-${os}-${arch}.${ext}
toolsets:
appimage: '1.0.2'
npmRebuild: false npmRebuild: false
afterAllArtifactBuild: scripts/after-all-artifact-build.mjs afterAllArtifactBuild: scripts/after-all-artifact-build.mjs
publish: publish:
+3 -2
View File
@@ -1,10 +1,11 @@
import react from '@vitejs/plugin-react';
import { externalizeDepsPlugin, UserConfig } from 'electron-vite'; import { externalizeDepsPlugin, UserConfig } from 'electron-vite';
import { resolve } from 'path'; import { resolve } from 'path';
import conditionalImportPlugin from 'vite-plugin-conditional-import'; import conditionalImportPlugin from 'vite-plugin-conditional-import';
import dynamicImportPlugin from 'vite-plugin-dynamic-import'; import dynamicImportPlugin from 'vite-plugin-dynamic-import';
import { ViteEjsPlugin } from 'vite-plugin-ejs'; import { ViteEjsPlugin } from 'vite-plugin-ejs';
import { createReactPlugin } from './vite.react-plugin';
const currentOSEnv = process.platform; const currentOSEnv = process.platform;
const electronRendererTarget = 'chrome87'; const electronRendererTarget = 'chrome87';
@@ -64,7 +65,7 @@ const config: UserConfig = {
localsConvention: 'camelCase', localsConvention: 'camelCase',
}, },
}, },
plugins: [react(), ViteEjsPlugin({ web: false })], plugins: [createReactPlugin(), ViteEjsPlugin({ web: false })],
resolve: { resolve: {
alias: { alias: {
'/@/i18n': resolve('src/i18n'), '/@/i18n': resolve('src/i18n'),
+1 -1
View File
@@ -25,7 +25,7 @@ export default tseslint.config(
'react-refresh': eslintPluginReactRefresh, 'react-refresh': eslintPluginReactRefresh,
}, },
rules: { rules: {
...eslintPluginReactHooks.configs.recommended.rules, ...eslintPluginReactHooks.configs['recommended-latest'].rules,
...eslintPluginReactRefresh.configs.vite.rules, ...eslintPluginReactRefresh.configs.vite.rules,
'@typescript-eslint/explicit-function-return-type': 'off', '@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-duplicate-enum-values': 'off', '@typescript-eslint/no-duplicate-enum-values': 'off',
+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512"><g style="display:inline" transform="translate(-53.452 -43.352)scale(1.11813)"><circle cx="256" cy="240.312" r="21.5" style="opacity:1;fill:#000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2.19597;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:markers fill stroke;filter:url(#filter249)"/><path d="M220.85 277.951 183.5 315.6l36 36.1 20-19.7s5.856-6.2 16.5-6.2 16.5 6.2 16.5 6.2l20 19.7 36-36.1-37.35-37.649A51.5 51.5 0 0 1 256 291.812a51.5 51.5 0 0 1-35.15-13.86" style="opacity:1;fill:#000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;filter:url(#filter249)"/><path d="M256 145.4a25.7 25.7 0 0 0-18.229 7.551L66.97 323.47A25.42 25.42 0 0 0 59.5 341.5c0 14.083 11.417 25.5 25.5 25.5a25.42 25.42 0 0 0 18.031-7.469l103.895-103.597a51.5 51.5 0 0 1-2.426-15.621 51.5 51.5 0 0 1 51.5-51.5 51.5 51.5 0 0 1 51.5 51.5 51.5 51.5 0 0 1-2.426 15.62L408.97 359.532A25.42 25.42 0 0 0 427 367c14.083 0 25.5-11.417 25.5-25.5a25.42 25.42 0 0 0-7.469-18.031L274.23 152.95a25.7 25.7 0 0 0-18.229-7.55" style="display:inline;opacity:1;fill:#000;fill-opacity:1;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;paint-order:markers fill stroke;filter:url(#filter249)"/></g></svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

+202
View File
@@ -0,0 +1,202 @@
{
"fill-specializations" : [
{
"value" : {
"linear-gradient" : [
"display-p3:0.87416,0.87416,0.87416,1.00000",
"display-p3:0.99575,0.99575,0.99575,1.00000"
],
"orientation" : {
"start" : {
"x" : 0.5,
"y" : 1
},
"stop" : {
"x" : 0.5,
"y" : 0.3
}
}
}
},
{
"appearance" : "dark",
"value" : "system-dark"
}
],
"groups" : [
{
"blend-mode-specializations" : [
{
"appearance" : "tinted",
"value" : "normal"
}
],
"blur-material-specializations" : [
{
"value" : 0.7
},
{
"appearance" : "dark",
"value" : 0.7
},
{
"appearance" : "tinted",
"value" : null
}
],
"hidden" : false,
"layers" : [
{
"blend-mode-specializations" : [
{
"appearance" : "tinted",
"value" : "normal"
}
],
"fill-specializations" : [
{
"value" : {
"solid" : "extended-gray:0.00000,1.00000"
}
},
{
"appearance" : "dark",
"value" : {
"linear-gradient" : [
"display-p3:0.78674,0.78674,0.78674,1.00000",
"display-p3:0.87416,0.87416,0.87416,1.00000"
],
"orientation" : {
"start" : {
"x" : 0.5,
"y" : 1
},
"stop" : {
"x" : 0.5,
"y" : 0
}
}
}
},
{
"appearance" : "tinted",
"value" : {
"solid" : "gray:1.00000,1.00000"
}
}
],
"glass-specializations" : [
{
"value" : true
},
{
"appearance" : "dark",
"value" : true
},
{
"appearance" : "tinted",
"value" : true
}
],
"hidden" : false,
"image-name" : "feishin.svg",
"name" : "feishin",
"opacity-specializations" : [
{
"value" : 1
},
{
"appearance" : "tinted",
"value" : 1
}
],
"position" : {
"scale" : 0.79,
"translation-in-points" : [
18,
-2
]
}
}
],
"lighting-specializations" : [
{
"value" : "individual"
},
{
"appearance" : "tinted",
"value" : "combined"
}
],
"position" : {
"scale" : 2.2,
"translation-in-points" : [
0,
0
]
},
"shadow-specializations" : [
{
"value" : {
"kind" : "neutral",
"opacity" : 1
}
},
{
"appearance" : "dark",
"value" : {
"kind" : "layer-color",
"opacity" : 0.5
}
},
{
"appearance" : "tinted",
"value" : {
"kind" : "neutral",
"opacity" : 1
}
}
],
"specular-specializations" : [
{
"value" : false
},
{
"appearance" : "dark",
"value" : false
},
{
"appearance" : "tinted",
"value" : true
}
],
"translucency-specializations" : [
{
"value" : {
"enabled" : true,
"value" : 0.29
}
},
{
"appearance" : "dark",
"value" : {
"enabled" : false,
"value" : 0.29
}
},
{
"appearance" : "tinted",
"value" : {
"enabled" : true,
"value" : 0.5
}
}
]
}
],
"supported-platforms" : {
"squares" : [
"macOS"
]
}
}
+79 -76
View File
@@ -1,6 +1,6 @@
{ {
"name": "feishin", "name": "feishin",
"version": "1.7.0", "version": "1.11.0",
"description": "A modern self-hosted music player.", "description": "A modern self-hosted music player.",
"keywords": [ "keywords": [
"subsonic", "subsonic",
@@ -31,36 +31,36 @@
"i18next": "i18next -c src/i18n/i18next-parser.config.js", "i18next": "i18next -c src/i18n/i18next-parser.config.js",
"postinstall": "electron-builder install-app-deps", "postinstall": "electron-builder install-app-deps",
"lint": "pnpm run typecheck && pnpm run lint-code && pnpm run lint-styles", "lint": "pnpm run typecheck && pnpm run lint-code && pnpm run lint-styles",
"lint:fix": "pnpm run lint-code:fix && pnpm run lint-styles:fix",
"lint-code": "eslint --max-warnings=0 --cache .", "lint-code": "eslint --max-warnings=0 --cache .",
"lint-code:fix": "eslint --cache --fix .", "lint-code:fix": "eslint --cache --fix .",
"lint-styles": "stylelint --max-warnings=0 'src/**/*.{css,scss}'", "lint-styles": "stylelint --max-warnings=0 'src/**/*.{css,scss}'",
"lint-styles:fix": "stylelint 'src/**/*.{css,scss}' --fix", "lint-styles:fix": "stylelint 'src/**/*.{css,scss}' --fix",
"lint:fix": "pnpm run lint-code:fix && pnpm run lint-styles:fix",
"package": "pnpm run build && electron-builder", "package": "pnpm run build && electron-builder",
"package:dev": "pnpm run build && electron-builder --dir", "package:dev": "pnpm run build && electron-builder --dir",
"package:linux": "pnpm run build && electron-builder --linux", "package:linux": "pnpm run build && electron-builder --linux",
"package:linux-arm64:pr": "pnpm run build && electron-builder --linux --arm64 --publish never",
"package:linux:pr": "pnpm run build && electron-builder --linux --publish never", "package:linux:pr": "pnpm run build && electron-builder --linux --publish never",
"package:linux-arm64:pr": "pnpm run build && electron-builder --linux --arm64 --publish never",
"package:mac": "pnpm run build && electron-builder --mac", "package:mac": "pnpm run build && electron-builder --mac",
"package:mac:pr": "pnpm run build && electron-builder --mac --publish never", "package:mac:pr": "pnpm run build && electron-builder --mac --publish never",
"package:win": "pnpm run build && electron-builder --win", "package:win": "pnpm run build && electron-builder --win",
"package:win-arm64:pr": "pnpm run build && electron-builder --win --arm64 --publish never",
"package:win:pr": "pnpm run build && electron-builder --win --publish never", "package:win:pr": "pnpm run build && electron-builder --win --publish never",
"package:win-arm64:pr": "pnpm run build && electron-builder --win --arm64 --publish never",
"publish:linux": "pnpm run build && electron-builder --publish always --linux", "publish:linux": "pnpm run build && electron-builder --publish always --linux",
"publish:linux:alpha": "pnpm run build && electron-builder --config electron-builder-alpha.yml --publish always --linux",
"publish:linux:beta": "pnpm run build && electron-builder --config electron-builder-beta.yml --publish always --linux",
"publish:linux-arm64": "pnpm run build && electron-builder --publish always --linux --arm64", "publish:linux-arm64": "pnpm run build && electron-builder --publish always --linux --arm64",
"publish:linux-arm64:alpha": "pnpm run build && electron-builder --config electron-builder-alpha.yml --publish always --linux --arm64", "publish:linux-arm64:alpha": "pnpm run build && electron-builder --config electron-builder-alpha.yml --publish always --linux --arm64",
"publish:linux-arm64:beta": "pnpm run build && electron-builder --config electron-builder-beta.yml --publish always --linux --arm64", "publish:linux-arm64:beta": "pnpm run build && electron-builder --config electron-builder-beta.yml --publish always --linux --arm64",
"publish:linux:alpha": "pnpm run build && electron-builder --config electron-builder-alpha.yml --publish always --linux",
"publish:linux:beta": "pnpm run build && electron-builder --config electron-builder-beta.yml --publish always --linux",
"publish:mac": "pnpm run build && electron-builder --publish always --mac", "publish:mac": "pnpm run build && electron-builder --publish always --mac",
"publish:mac:alpha": "pnpm run build && electron-builder --config electron-builder-alpha.yml --publish always --mac", "publish:mac:alpha": "pnpm run build && electron-builder --config electron-builder-alpha.yml --publish always --mac",
"publish:mac:beta": "pnpm run build && electron-builder --config electron-builder-beta.yml --publish always --mac", "publish:mac:beta": "pnpm run build && electron-builder --config electron-builder-beta.yml --publish always --mac",
"publish:win": "pnpm run build && electron-builder --publish always --win", "publish:win": "pnpm run build && electron-builder --publish always --win",
"publish:win:alpha": "pnpm run build && electron-builder --config electron-builder-alpha.yml --publish always --win",
"publish:win:beta": "pnpm run build && electron-builder --config electron-builder-beta.yml --publish always --win",
"publish:win-arm64": "pnpm run build && electron-builder --publish always --win --arm64", "publish:win-arm64": "pnpm run build && electron-builder --publish always --win --arm64",
"publish:win-arm64:alpha": "pnpm run build && electron-builder --config electron-builder-alpha.yml --publish always --win --arm64", "publish:win-arm64:alpha": "pnpm run build && electron-builder --config electron-builder-alpha.yml --publish always --win --arm64",
"publish:win-arm64:beta": "pnpm run build && electron-builder --config electron-builder-beta.yml --publish always --win --arm64", "publish:win-arm64:beta": "pnpm run build && electron-builder --config electron-builder-beta.yml --publish always --win --arm64",
"publish:win:alpha": "pnpm run build && electron-builder --config electron-builder-alpha.yml --publish always --win",
"publish:win:beta": "pnpm run build && electron-builder --config electron-builder-beta.yml --publish always --win",
"start": "electron-vite preview", "start": "electron-vite preview",
"typecheck": "pnpm run typecheck:node && pnpm run typecheck:web", "typecheck": "pnpm run typecheck:node && pnpm run typecheck:web",
"typecheck:node": "tsc --noEmit -p tsconfig.node.json --composite false", "typecheck:node": "tsc --noEmit -p tsconfig.node.json --composite false",
@@ -68,120 +68,123 @@
"version": "pnpm version --no-git-tag-version", "version": "pnpm version --no-git-tag-version",
"postversion": "node ./scripts/update-app-stream.mjs" "postversion": "node ./scripts/update-app-stream.mjs"
}, },
"resolutions": {
"react-router": "7.14.0",
"xml2js": "0.5.0"
},
"dependencies": { "dependencies": {
"@atlaskit/pragmatic-drag-and-drop": "1.7.7", "@atlaskit/pragmatic-drag-and-drop": "1.7.7",
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^2.1.2", "@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^2.1.5",
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0", "@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
"@electron-toolkit/preload": "^3.0.1", "@electron-toolkit/preload": "^3.0.2",
"@electron-toolkit/utils": "^4.0.0", "@electron-toolkit/utils": "^4.0.0",
"@mantine/colors-generator": "^8.3.8", "@mantine/colors-generator": "^9.1.1",
"@mantine/core": "^8.3.8", "@mantine/core": "^9.1.1",
"@mantine/dates": "^8.3.8", "@mantine/dates": "^9.1.1",
"@mantine/form": "^8.3.8", "@mantine/form": "^9.1.1",
"@mantine/hooks": "^8.3.8", "@mantine/hooks": "^9.1.1",
"@mantine/modals": "^8.3.8", "@mantine/modals": "^9.1.1",
"@mantine/notifications": "^8.3.8", "@mantine/notifications": "^9.1.1",
"@radix-ui/react-context-menu": "^2.2.16", "@radix-ui/react-context-menu": "^2.2.16",
"@tanstack/react-query": "^5.90.9", "@tanstack/react-query": "^5.96.2",
"@tanstack/react-query-devtools": "^5.90.2", "@tanstack/react-query-devtools": "^5.96.2",
"@tanstack/react-query-persist-client": "^5.90.11", "@tanstack/react-query-persist-client": "^5.96.2",
"@ts-rest/core": "^3.52.1", "@ts-rest/core": "^3.52.1",
"@wavesurfer/react": "^1.0.11", "@wavesurfer/react": "^1.0.12",
"@xhayper/discord-rpc": "^1.3.0", "@xhayper/discord-rpc": "^1.3.3",
"audiomotion-analyzer": "^4.5.1", "audiomotion-analyzer": "^4.5.4",
"axios": "^1.13.5", "axios": "^1.14.0",
"butterchurn": "^3.0.0-beta.5", "butterchurn": "3.0.0-beta.5",
"butterchurn-presets": "^3.0.0-beta.4", "butterchurn-presets": "3.0.0-beta.4",
"cheerio": "^1.1.2", "cheerio": "^1.2.0",
"clsx": "^2.1.1", "clsx": "^2.1.1",
"cmdk": "^1.1.1", "cmdk": "^1.1.1",
"dayjs": "^1.11.19", "dayjs": "^1.11.20",
"dompurify": "^3.3.0", "dompurify": "^3.3.3",
"electron-debug": "^3.2.0", "electron-debug": "^3.2.0",
"electron-localshortcut": "^3.2.1", "electron-localshortcut": "^3.2.1",
"electron-log": "^5.4.3", "electron-log": "^5.4.3",
"electron-store": "^8.2.0", "electron-store": "^8.2.0",
"electron-updater": "^6.6.2", "electron-updater": "^6.8.3",
"fast-average-color": "^9.5.0", "fast-average-color": "9.5.0",
"fast-xml-parser": "^5.3.6", "fast-xml-parser": "^5.5.10",
"format-duration": "^3.0.2", "format-duration": "^3.0.2",
"fuse.js": "^7.1.0", "fuse.js": "^7.2.0",
"i18next": "^25.6.2", "i18next": "^25.10.10",
"icecast-metadata-stats": "^0.1.12", "icecast-metadata-stats": "^0.1.12",
"idb-keyval": "^6.2.2", "idb-keyval": "^6.2.2",
"immer": "^10.2.0", "immer": "^10.2.0",
"is-electron": "^2.2.2", "is-electron": "^2.2.2",
"lodash": "^4.17.23", "lodash": "^4.18.1",
"md5": "^2.3.0", "md5": "^2.3.0",
"motion": "^12.23.24", "motion": "^12.38.0",
"mpris-service": "^2.1.2", "mpris-service": "^2.1.2",
"nanoid": "^3.3.11", "nanoid": "^3.3.11",
"node-mpv": "github:jeffvli/Node-MPV#32b4d64395289ad710c41d481d2707a7acfc228f", "node-mpv": "github:jeffvli/Node-MPV#32b4d64395289ad710c41d481d2707a7acfc228f",
"nuqs": "^2.7.1", "overlayscrollbars": "^2.14.0",
"overlayscrollbars": "^2.11.1",
"overlayscrollbars-react": "^0.5.6", "overlayscrollbars-react": "^0.5.6",
"qs": "^6.14.2", "qs": "^6.15.0",
"react": "^19.1.0", "react": "^19.2.4",
"react-call": "^1.8.1", "react-call": "^1.8.2",
"react-dom": "^19.1.0", "react-dom": "^19.2.4",
"react-error-boundary": "^5.0.0", "react-error-boundary": "^5.0.0",
"react-i18next": "^16.3.3", "react-i18next": "^16.6.6",
"react-icons": "^5.5.0", "react-icons": "^5.6.0",
"react-image": "^4.1.0", "react-player": "^2.16.1",
"react-player": "^2.16.0", "react-router": "^7.14.0",
"react-router": "^7.13.1", "react-split-pane": "^3.2.0",
"react-split-pane": "^3.0.4",
"react-virtualized-auto-sizer": "^1.0.26", "react-virtualized-auto-sizer": "^1.0.26",
"react-window": "1.8.11", "react-window": "1.8.11",
"react-window-v2": "npm:react-window@^2.2.3", "react-window-v2": "npm:react-window@^2.2.7",
"semver": "^7.5.4", "semver": "^7.7.4",
"string-to-color": "^2.2.2", "string-to-color": "^2.2.2",
"wavesurfer.js": "^7.11.1", "wavesurfer.js": "^7.12.5",
"ws": "^8.18.2", "ws": "^8.20.0",
"zod": "^3.22.3", "zod": "^3.25.76",
"zustand": "^5.0.5" "zustand": "^5.0.12"
}, },
"devDependencies": { "devDependencies": {
"@electron-toolkit/eslint-config-prettier": "^3.0.0", "@electron-toolkit/eslint-config-prettier": "^3.0.0",
"@electron-toolkit/eslint-config-ts": "^3.0.0", "@electron-toolkit/eslint-config-ts": "^3.1.0",
"@electron-toolkit/tsconfig": "^2.0.0", "@electron-toolkit/tsconfig": "^2.0.0",
"@types/electron-localshortcut": "^3.1.0", "@types/electron-localshortcut": "^3.1.3",
"@types/lodash": "^4.17.18", "@types/lodash": "^4.17.24",
"@types/md5": "^2.3.5", "@types/md5": "^2.3.6",
"@types/node": "^24.10.1", "@types/node": "^24.12.2",
"@types/react": "^19.2.5", "@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3", "@types/react-dom": "^19.2.3",
"@types/react-window": "^1.8.8", "@types/react-window": "^1.8.8",
"@types/source-map-support": "^0.5.10", "@types/source-map-support": "^0.5.10",
"@types/ws": "^8.18.1", "@types/ws": "^8.18.1",
"@vitejs/plugin-react": "^5.1.1", "@vitejs/plugin-react": "^5.2.0",
"babel-plugin-react-compiler": "^1.0.0",
"concurrently": "^9.2.1", "concurrently": "^9.2.1",
"cross-env": "^10.1.0", "cross-env": "^10.1.0",
"electron": "^39.4.0", "electron": "^39.8.6",
"electron-builder": "^26.8.1", "electron-builder": "^26.8.2",
"electron-devtools-installer": "^4.0.0", "electron-devtools-installer": "^4.0.0",
"electron-vite": "^4.0.1", "electron-vite": "^4.0.1",
"eslint": "^9.24.0", "eslint": "^9.39.4",
"eslint-plugin-perfectionist": "^4.13.0", "eslint-plugin-perfectionist": "^4.15.1",
"eslint-plugin-prettier": "^5.4.0", "eslint-plugin-prettier": "^5.5.5",
"eslint-plugin-react": "^7.37.5", "eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^7.0.1", "eslint-plugin-react-hooks": "^7.0.1",
"eslint-plugin-react-refresh": "^0.4.24", "eslint-plugin-react-refresh": "^0.4.26",
"i18next-parser": "^9.3.0", "i18next-parser": "^9.4.0",
"postcss-preset-mantine": "^1.18.0", "postcss-preset-mantine": "^1.18.0",
"postcss-simple-vars": "^7.0.1", "postcss-simple-vars": "^7.0.1",
"prettier": "^3.6.2", "prettier": "^3.8.1",
"prettier-plugin-packagejson": "^2.5.19", "prettier-plugin-packagejson": "^2.5.22",
"stylelint": "^16.25.0", "stylelint": "^16.26.1",
"stylelint-config-css-modules": "^4.5.1", "stylelint-config-css-modules": "^4.6.0",
"stylelint-config-recess-order": "^7.4.0", "stylelint-config-recess-order": "^7.7.0",
"stylelint-config-standard": "^39.0.1", "stylelint-config-standard": "^39.0.1",
"typescript": "^5.8.3", "typescript": "^5.9.3",
"vite": "^7.2.2", "vite": "^7.3.1",
"vite-plugin-conditional-import": "^0.1.7", "vite-plugin-conditional-import": "^0.1.7",
"vite-plugin-dynamic-import": "^1.6.0", "vite-plugin-dynamic-import": "^1.6.0",
"vite-plugin-ejs": "^1.7.0", "vite-plugin-ejs": "^1.7.0",
"vite-plugin-pwa": "^1.1.0" "vite-plugin-pwa": "^1.2.0"
}, },
"pnpm": { "pnpm": {
"onlyBuiltDependencies": [ "onlyBuiltDependencies": [
+2487 -3043
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -1,9 +1,9 @@
import react from '@vitejs/plugin-react';
import path from 'path'; import path from 'path';
import { defineConfig, normalizePath } from 'vite'; import { defineConfig, normalizePath } from 'vite';
import { ViteEjsPlugin } from 'vite-plugin-ejs'; import { ViteEjsPlugin } from 'vite-plugin-ejs';
import { version } from './package.json'; import { version } from './package.json';
import { createReactPlugin } from './vite.react-plugin';
export default defineConfig({ export default defineConfig({
build: { build: {
@@ -35,7 +35,7 @@ export default defineConfig({
}, },
}, },
plugins: [ plugins: [
react(), createReactPlugin(),
ViteEjsPlugin({ ViteEjsPlugin({
prod: process.env.NODE_ENV === 'production', prod: process.env.NODE_ENV === 'production',
root: normalizePath(path.resolve(__dirname, './src/remote')), root: normalizePath(path.resolve(__dirname, './src/remote')),
+4
View File
@@ -1,6 +1,7 @@
"use strict"; "use strict";
window.SERVER_URL = "${SERVER_URL}"; window.SERVER_URL = "${SERVER_URL}";
window.REMOTE_URL = "${REMOTE_URL}";
window.SERVER_NAME = "${SERVER_NAME}"; window.SERVER_NAME = "${SERVER_NAME}";
window.SERVER_TYPE = "${SERVER_TYPE}"; window.SERVER_TYPE = "${SERVER_TYPE}";
window.SERVER_LOCK = "${SERVER_LOCK}"; window.SERVER_LOCK = "${SERVER_LOCK}";
@@ -23,12 +24,14 @@ window.FS_GENERAL_HOME_FEATURE_STYLE = "${FS_GENERAL_HOME_FEATURE_STYLE}";
window.FS_GENERAL_LANGUAGE = "${FS_GENERAL_LANGUAGE}"; window.FS_GENERAL_LANGUAGE = "${FS_GENERAL_LANGUAGE}";
window.FS_GENERAL_LAST_FM = "${FS_GENERAL_LAST_FM}"; window.FS_GENERAL_LAST_FM = "${FS_GENERAL_LAST_FM}";
window.FS_GENERAL_LASTFM_API_KEY = "${FS_GENERAL_LASTFM_API_KEY}"; window.FS_GENERAL_LASTFM_API_KEY = "${FS_GENERAL_LASTFM_API_KEY}";
window.FS_GENERAL_LISTEN_BRAINZ = "${FS_GENERAL_LISTEN_BRAINZ}";
window.FS_GENERAL_MUSIC_BRAINZ = "${FS_GENERAL_MUSIC_BRAINZ}"; window.FS_GENERAL_MUSIC_BRAINZ = "${FS_GENERAL_MUSIC_BRAINZ}";
window.FS_GENERAL_NATIVE_ASPECT_RATIO = "${FS_GENERAL_NATIVE_ASPECT_RATIO}"; window.FS_GENERAL_NATIVE_ASPECT_RATIO = "${FS_GENERAL_NATIVE_ASPECT_RATIO}";
window.FS_GENERAL_PATH_REPLACE = "${FS_GENERAL_PATH_REPLACE}"; window.FS_GENERAL_PATH_REPLACE = "${FS_GENERAL_PATH_REPLACE}";
window.FS_GENERAL_PATH_REPLACE_WITH = "${FS_GENERAL_PATH_REPLACE_WITH}"; window.FS_GENERAL_PATH_REPLACE_WITH = "${FS_GENERAL_PATH_REPLACE_WITH}";
window.FS_GENERAL_PLAYERBAR_OPEN_DRAWER = "${FS_GENERAL_PLAYERBAR_OPEN_DRAWER}"; window.FS_GENERAL_PLAYERBAR_OPEN_DRAWER = "${FS_GENERAL_PLAYERBAR_OPEN_DRAWER}";
window.FS_GENERAL_PRIMARY_SHADE = "${FS_GENERAL_PRIMARY_SHADE}"; window.FS_GENERAL_PRIMARY_SHADE = "${FS_GENERAL_PRIMARY_SHADE}";
window.FS_GENERAL_QOBUZ = "${FS_GENERAL_QOBUZ}";
window.FS_GENERAL_RESUME = "${FS_GENERAL_RESUME}"; window.FS_GENERAL_RESUME = "${FS_GENERAL_RESUME}";
window.FS_GENERAL_SHOW_LYRICS_IN_SIDEBAR = "${FS_GENERAL_SHOW_LYRICS_IN_SIDEBAR}"; window.FS_GENERAL_SHOW_LYRICS_IN_SIDEBAR = "${FS_GENERAL_SHOW_LYRICS_IN_SIDEBAR}";
window.FS_GENERAL_SHOW_RATINGS = "${FS_GENERAL_SHOW_RATINGS}"; window.FS_GENERAL_SHOW_RATINGS = "${FS_GENERAL_SHOW_RATINGS}";
@@ -38,6 +41,7 @@ window.FS_GENERAL_SIDEBAR_COLLAPSE_SHARED = "${FS_GENERAL_SIDEBAR_COLLAPSE_SHARE
window.FS_GENERAL_SIDEBAR_PLAYLIST_LIST = "${FS_GENERAL_SIDEBAR_PLAYLIST_LIST}"; window.FS_GENERAL_SIDEBAR_PLAYLIST_LIST = "${FS_GENERAL_SIDEBAR_PLAYLIST_LIST}";
window.FS_GENERAL_SIDEBAR_PLAYLIST_SORTING = "${FS_GENERAL_SIDEBAR_PLAYLIST_SORTING}"; window.FS_GENERAL_SIDEBAR_PLAYLIST_SORTING = "${FS_GENERAL_SIDEBAR_PLAYLIST_SORTING}";
window.FS_GENERAL_SIDE_QUEUE_TYPE = "${FS_GENERAL_SIDE_QUEUE_TYPE}"; window.FS_GENERAL_SIDE_QUEUE_TYPE = "${FS_GENERAL_SIDE_QUEUE_TYPE}";
window.FS_GENERAL_SIDE_QUEUE_LAYOUT = "${FS_GENERAL_SIDE_QUEUE_LAYOUT}";
window.FS_GENERAL_THEME = "${FS_GENERAL_THEME}"; window.FS_GENERAL_THEME = "${FS_GENERAL_THEME}";
window.FS_GENERAL_THEME_DARK = "${FS_GENERAL_THEME_DARK}"; window.FS_GENERAL_THEME_DARK = "${FS_GENERAL_THEME_DARK}";
window.FS_GENERAL_THEME_LIGHT = "${FS_GENERAL_THEME_LIGHT}"; window.FS_GENERAL_THEME_LIGHT = "${FS_GENERAL_THEME_LIGHT}";
+4 -12
View File
@@ -1,4 +1,4 @@
import { PostProcessorModule, TOptions } from 'i18next'; import { PostProcessorModule } from 'i18next';
import i18n from 'i18next'; import i18n from 'i18next';
import { initReactI18next } from 'react-i18next'; import { initReactI18next } from 'react-i18next';
@@ -203,25 +203,17 @@ const titleCasePostProcessor: PostProcessorModule = {
type: 'postProcessor', type: 'postProcessor',
}; };
const ignoreSentenceCaseLanguages = ['de']; // const ignoreSentenceCaseLanguages = ['de'];
const sentenceCasePostProcessor: PostProcessorModule = { const sentenceCasePostProcessor: PostProcessorModule = {
name: 'sentenceCase', name: 'sentenceCase',
process: ( process: (value: string) => {
value: string,
_key: string,
_options: TOptions<Record<string, string>>,
translator: any,
) => {
const sentences = value.split('. '); const sentences = value.split('. ');
return sentences return sentences
.map((sentence) => { .map((sentence) => {
return ( return (
sentence.charAt(0).toLocaleUpperCase() + sentence.charAt(0).toLocaleUpperCase() + sentence.slice(1).toLocaleLowerCase()
(!ignoreSentenceCaseLanguages.includes(translator.language)
? sentence.slice(1).toLocaleLowerCase()
: sentence.slice(1))
); );
}) })
.join('. '); .join('. ');
+7 -1
View File
@@ -21,7 +21,13 @@
"openIn": { "openIn": {
"lastfm": "فتح في Last.fm", "lastfm": "فتح في Last.fm",
"musicbrainz": "فتح في MusicBrainz" "musicbrainz": "فتح في MusicBrainz"
} },
"addOrRemoveFromSelection": "إضافة أو إزالة من الإختيارات",
"selectRangeOfItems": "اختر مجموعة من العناصر",
"goToCurrent": "الانتقال إلى العنصر الحالي",
"createRadioStation": "يخلق $t(entity.radioStation, {\"count\": 1})",
"deleteRadioStation": "يمسح $t(entity.radioStation, {\"count\": 1})",
"selectAll": "تحديد الكل"
}, },
"common": { "common": {
"action_zero": "عملية", "action_zero": "عملية",
+959 -912
View File
File diff suppressed because it is too large Load Diff
+945 -912
View File
File diff suppressed because it is too large Load Diff
+871 -872
View File
File diff suppressed because it is too large Load Diff
+453 -411
View File
File diff suppressed because it is too large Load Diff
+937 -904
View File
File diff suppressed because it is too large Load Diff
+543 -510
View File
File diff suppressed because it is too large Load Diff
+775 -713
View File
File diff suppressed because it is too large Load Diff
+8 -8
View File
@@ -12,7 +12,7 @@
"unfavorite": "حذف از موردعلاقه‌ها", "unfavorite": "حذف از موردعلاقه‌ها",
"shuffle_off": "پخش تصادفی غیر فعال", "shuffle_off": "پخش تصادفی غیر فعال",
"skip_forward": "برو جلو", "skip_forward": "برو جلو",
"queue_moveToTop": "جابجا کردن انتخاب شده به پایین", "queue_moveToTop": "جابجا کردن انتخاب شده به بالا",
"queue_clear": "خالی کردن صف", "queue_clear": "خالی کردن صف",
"queue_remove": "حذف انتخاب شده", "queue_remove": "حذف انتخاب شده",
"addLast": "افزودن به پایان", "addLast": "افزودن به پایان",
@@ -24,7 +24,7 @@
"mute": "بی‌صدا کردن", "mute": "بی‌صدا کردن",
"playbackFetchCancel": "دارد طول می‌کشد... برای لفو کردن اعلان را ببندید", "playbackFetchCancel": "دارد طول می‌کشد... برای لفو کردن اعلان را ببندید",
"playbackFetchInProgress": "بارگذاری قطعه‌ها…", "playbackFetchInProgress": "بارگذاری قطعه‌ها…",
"queue_moveToBottom": "جابجا کردن انتخاب شده به بالا", "queue_moveToBottom": "جابجا کردن انتخاب شده به پایین",
"addNext": "افزودن به پسین", "addNext": "افزودن به پسین",
"favorite": "مورد علاقه", "favorite": "مورد علاقه",
"playSimilarSongs": "پخش آهنگ‌های همگون", "playSimilarSongs": "پخش آهنگ‌های همگون",
@@ -70,7 +70,7 @@
"hotkey_rate1": "امتیاز ۱ ستاره", "hotkey_rate1": "امتیاز ۱ ستاره",
"hotkey_skipForward": "برو جلو", "hotkey_skipForward": "برو جلو",
"disableLibraryUpdateOnStartup": "غیرفعال کردن بررسی آخرین نسخه در آغاز به کار برنامه", "disableLibraryUpdateOnStartup": "غیرفعال کردن بررسی آخرین نسخه در آغاز به کار برنامه",
"discordApplicationId_description": "the application id for {{discord}} rich presence (defaults to {{defaultId}})", "discordApplicationId_description": "the application ID for {{discord}} Rich Presence (defaults to {{defaultId}})",
"playButtonBehavior_optionAddLast": "$t(player.addLast)", "playButtonBehavior_optionAddLast": "$t(player.addLast)",
"hotkey_playbackPlay": "پخش", "hotkey_playbackPlay": "پخش",
"hotkey_volumeDown": "کم کردن صدا", "hotkey_volumeDown": "کم کردن صدا",
@@ -109,7 +109,7 @@
"customFontPath": "مسیر قلم سفارشی", "customFontPath": "مسیر قلم سفارشی",
"audioPlayer": "پخش‌کنندهٔ صدا", "audioPlayer": "پخش‌کنندهٔ صدا",
"hotkey_rate0": "حذف امتیاز", "hotkey_rate0": "حذف امتیاز",
"discordApplicationId": "{{discord}} application id", "discordApplicationId": "{{discord}} application ID",
"hotkey_volumeMute": "بستن صدا", "hotkey_volumeMute": "بستن صدا",
"showSkipButton": "نمایش دکمهٔ رد کردن", "showSkipButton": "نمایش دکمهٔ رد کردن",
"customFontPath_description": "مسیر قلم سفارشی را برای استفاده در اپلیکیشن مشخص کنید", "customFontPath_description": "مسیر قلم سفارشی را برای استفاده در اپلیکیشن مشخص کنید",
@@ -132,7 +132,7 @@
"buttonSize": "اندازه‌ی دکمه‌ی پخش نوار", "buttonSize": "اندازه‌ی دکمه‌ی پخش نوار",
"contextMenu": "پیکربندی فهرست زمینه (کلیک راست)", "contextMenu": "پیکربندی فهرست زمینه (کلیک راست)",
"buttonSize_description": "اندازه‌ی دکمه‌های پخش نوار", "buttonSize_description": "اندازه‌ی دکمه‌های پخش نوار",
"audioExclusiveMode_description": "حالت اختصاصی خروجی را فعال می‌کند. در این حالت، سامانه معمولاً قفل است و فقط mpv می‌تواند خروجی صدا دهد", "audioExclusiveMode_description": "حالت اختصاصی خروجی را فعال می‌کند. در این حالت، سامانه معمولاً قفل است و فقط MPV می‌تواند خروجی صدا دهد",
"clearQueryCache_description": "یک 'پاک‌سازی نرم' از فیشین. این فهرست‌های پخش و فراداده‌ی قطعه‌ها را تازه می‌کند و متن شعرهای ذخیره شده را بازنشانی می‌کند. پیکربندی‌ها، اعتبارنامه‌های سرویس‌دهنده و نگاره‌های کَش شده حفظ می‌شوند", "clearQueryCache_description": "یک 'پاک‌سازی نرم' از فیشین. این فهرست‌های پخش و فراداده‌ی قطعه‌ها را تازه می‌کند و متن شعرهای ذخیره شده را بازنشانی می‌کند. پیکربندی‌ها، اعتبارنامه‌های سرویس‌دهنده و نگاره‌های کَش شده حفظ می‌شوند",
"clearCache_description": "یک 'پاک‌سازی سخت' فیشین. افزون بر پاک‌سازی کَش فیشین، کَش مرورگر هم تهی می‌شود (نگاره‌های ذخیره شده و باقی دارایی‌ها). اعتبارنامه‌ها و پیکربندی‌ها حفظ می‌شوند", "clearCache_description": "یک 'پاک‌سازی سخت' فیشین. افزون بر پاک‌سازی کَش فیشین، کَش مرورگر هم تهی می‌شود (نگاره‌های ذخیره شده و باقی دارایی‌ها). اعتبارنامه‌ها و پیکربندی‌ها حفظ می‌شوند",
"contextMenu_description": "به شما اجازه می‌دهد که آیتم‌های نمایش داده شده در فهرستی که وقتی روی یک آیتم کلیک راست می‌کنید پدیدار می‌شود، را پنهان کنید. آیتم‌هایی که منتخب نیستند پنهان می‌شوند", "contextMenu_description": "به شما اجازه می‌دهد که آیتم‌های نمایش داده شده در فهرستی که وقتی روی یک آیتم کلیک راست می‌کنید پدیدار می‌شود، را پنهان کنید. آیتم‌هایی که منتخب نیستند پنهان می‌شوند",
@@ -176,7 +176,7 @@
"backward": "به عقب", "backward": "به عقب",
"increase": "افزایش", "increase": "افزایش",
"rating": "امتیاز", "rating": "امتیاز",
"bpm": "bpm", "bpm": "BPM",
"refresh": "تازه‌سازی", "refresh": "تازه‌سازی",
"unknown": "ناشناخته", "unknown": "ناشناخته",
"areYouSure": "مطمئنید؟", "areYouSure": "مطمئنید؟",
@@ -313,9 +313,9 @@
"albumArtist": "$t(entity.albumArtist, {\"count\": 1})", "albumArtist": "$t(entity.albumArtist, {\"count\": 1})",
"isRecentlyPlayed": "به تازگی پخش شده است", "isRecentlyPlayed": "به تازگی پخش شده است",
"isFavorited": "موردعلاقه است", "isFavorited": "موردعلاقه است",
"bpm": "bpm", "bpm": "BPM",
"releaseYear": "سال انتشار", "releaseYear": "سال انتشار",
"id": "id", "id": "ID",
"disc": "دیسک", "disc": "دیسک",
"biography": "زندگی‌نامه", "biography": "زندگی‌نامه",
"songCount": "تعداد ترانه", "songCount": "تعداد ترانه",
+754 -755
View File
File diff suppressed because it is too large Load Diff
+999 -946
View File
File diff suppressed because it is too large Load Diff
+728 -729
View File
File diff suppressed because it is too large Load Diff
+821 -822
View File
File diff suppressed because it is too large Load Diff
+734 -733
View File
File diff suppressed because it is too large Load Diff
+293 -62
View File
@@ -7,7 +7,7 @@
"playRandom": "ランダム再生", "playRandom": "ランダム再生",
"skip": "スキップ", "skip": "スキップ",
"previous": "前へ", "previous": "前へ",
"toggleFullscreenPlayer": "フルスクリーンプレーヤー切り替え", "toggleFullscreenPlayer": "全画面プレーヤー切り替え",
"skip_back": "前へスキップ", "skip_back": "前へスキップ",
"favorite": "お気に入り", "favorite": "お気に入り",
"next": "次へ", "next": "次へ",
@@ -22,8 +22,8 @@
"queue_clear": "キューをクリア", "queue_clear": "キューをクリア",
"muted": "ミュート中", "muted": "ミュート中",
"unfavorite": "お気に入り解除", "unfavorite": "お気に入り解除",
"queue_moveToTop": "選択項目を一番下に移動", "queue_moveToTop": "選択項目を先頭に移動",
"queue_moveToBottom": "選択項目を先頭に移動", "queue_moveToBottom": "選択項目を一番下に移動",
"shuffle_off": "シャッフル無効", "shuffle_off": "シャッフル無効",
"addLast": "最後", "addLast": "最後",
"mute": "ミュート", "mute": "ミュート",
@@ -44,7 +44,11 @@
"sleepTimer_off": "オフ", "sleepTimer_off": "オフ",
"sleepTimer_timeRemaining": "残り {{time}}", "sleepTimer_timeRemaining": "残り {{time}}",
"sleepTimer_setCustom": "タイマーを設定", "sleepTimer_setCustom": "タイマーを設定",
"sleepTimer_cancel": "タイマーをキャンセル" "sleepTimer_cancel": "タイマーをキャンセル",
"holdToShuffle": "長押しでシャッフル",
"albumRadio": "アルバム・ラジオ",
"artistRadio": "アーティストラジオ",
"trackRadio": "ラジオを追跡する"
}, },
"setting": { "setting": {
"crossfadeStyle_description": "オーディオプレーヤーが使用するクロスフェードのスタイルを選択します", "crossfadeStyle_description": "オーディオプレーヤーが使用するクロスフェードのスタイルを選択します",
@@ -56,7 +60,7 @@
"theme_description": "アプリケーションに使用するテーマを設定します", "theme_description": "アプリケーションに使用するテーマを設定します",
"hotkey_playbackPause": "一時停止", "hotkey_playbackPause": "一時停止",
"replayGainFallback": "{{ReplayGain}} フォールバック", "replayGainFallback": "{{ReplayGain}} フォールバック",
"sidebarCollapsedNavigation_description": "折りたたサイドバーのナビゲーションを表示/非表示にします", "sidebarCollapsedNavigation_description": "折りたたまれたサイドバーのナビゲーションを表示または非表示にします",
"hotkey_volumeUp": "音量を上げる", "hotkey_volumeUp": "音量を上げる",
"skipDuration": "スキップの長さ", "skipDuration": "スキップの長さ",
"discordIdleStatus_description": "有効にすると、プレーヤーがアイドル状態でもステータスを更新します", "discordIdleStatus_description": "有効にすると、プレーヤーがアイドル状態でもステータスを更新します",
@@ -71,7 +75,7 @@
"mpvExecutablePath_description": "MPV を実行するファイルパスを設定します。空のままにすると、デフォルトのパスが使用されます", "mpvExecutablePath_description": "MPV を実行するファイルパスを設定します。空のままにすると、デフォルトのパスが使用されます",
"replayGainClipping_description": "自動的にゲインを下げて {{ReplayGain}} によるクリッピングを防ぎます", "replayGainClipping_description": "自動的にゲインを下げて {{ReplayGain}} によるクリッピングを防ぎます",
"replayGainPreamp": "{{ReplayGain}} プリアンプ (dB)", "replayGainPreamp": "{{ReplayGain}} プリアンプ (dB)",
"hotkey_favoriteCurrentSong": "$t(common.currentSong) をお気に入り", "hotkey_favoriteCurrentSong": "$t(common.currentSong) をお気に入りに登録",
"sampleRate": "サンプルレート", "sampleRate": "サンプルレート",
"sidePlayQueueStyle_optionAttached": "結合", "sidePlayQueueStyle_optionAttached": "結合",
"sidebarConfiguration": "サイドバー設定", "sidebarConfiguration": "サイドバー設定",
@@ -86,19 +90,19 @@
"themeLight": "テーマ (ライト)", "themeLight": "テーマ (ライト)",
"fontType_optionBuiltIn": "組み込みフォント", "fontType_optionBuiltIn": "組み込みフォント",
"hotkey_playbackPlayPause": "再生 / 一時停止", "hotkey_playbackPlayPause": "再生 / 一時停止",
"hotkey_rate1": "1つ星で評価", "hotkey_rate1": "1 つ星で評価",
"hotkey_skipForward": "次へスキップ", "hotkey_skipForward": "次へスキップ",
"disableLibraryUpdateOnStartup": "起動時の新バージョンチェックを無効にします", "disableLibraryUpdateOnStartup": "起動時の新バージョンチェックを無効にします",
"discordApplicationId_description": "{{discord}} に Rich Presence ステータスを表示するためのアプリケーション ID (デフォルトは {{defaultId}} です)", "discordApplicationId_description": "{{discord}} に Rich Presence ステータスを表示するためのアプリケーション ID (デフォルトは {{defaultId}} です)",
"sidePlayQueueStyle": "サイド再生キュースタイル", "sidePlayQueueStyle": "サイド再生キューの形式",
"gaplessAudio": "ギャップレス再生", "gaplessAudio": "ギャップレス再生",
"playButtonBehavior_optionAddLast": "$t(player.addLast)", "playButtonBehavior_optionAddLast": "$t(player.addLast)",
"zoom": "ズーム率", "zoom": "ズーム率",
"minimizeToTray_description": "最小化ボタンが押された際、システムトレイに格納します", "minimizeToTray_description": "最小化ボタンが押された際、システムトレイに格納します",
"hotkey_playbackPlay": "再生", "hotkey_playbackPlay": "再生",
"hotkey_togglePreviousSongFavorite": "$t(common.previousSong) お気に入り登録/解除", "hotkey_togglePreviousSongFavorite": "$t(common.previousSong) お気に入りを切り替え",
"hotkey_volumeDown": "音量を下げる", "hotkey_volumeDown": "音量を下げる",
"hotkey_unfavoritePreviousSong": "$t(common.previousSong) をお気に入り解除", "hotkey_unfavoritePreviousSong": "$t(common.previousSong) をお気に入りから解除",
"audioPlayer_description": "再生に使用するオーディオプレーヤーを選択します", "audioPlayer_description": "再生に使用するオーディオプレーヤーを選択します",
"globalMediaHotkeys": "グローバルメディアホットキー", "globalMediaHotkeys": "グローバルメディアホットキー",
"hotkey_globalSearch": "グローバル検索", "hotkey_globalSearch": "グローバル検索",
@@ -106,7 +110,7 @@
"remoteUsername_description": "リモートコントロール サーバーのユーザ名を設定します。 ユーザー名とパスワードの両方が空の場合、認証は無効になります", "remoteUsername_description": "リモートコントロール サーバーのユーザ名を設定します。 ユーザー名とパスワードの両方が空の場合、認証は無効になります",
"exitToTray_description": "アプリケーション終了ボタンが押された際、システムトレイに格納します", "exitToTray_description": "アプリケーション終了ボタンが押された際、システムトレイに格納します",
"followLyric_description": "現在の再生位置に歌詞をスクロールします", "followLyric_description": "現在の再生位置に歌詞をスクロールします",
"hotkey_favoritePreviousSong": "$t(common.previousSong) をお気に入り", "hotkey_favoritePreviousSong": "$t(common.previousSong) をお気に入りに登録",
"replayGainMode_optionAlbum": "$t(entity.album, {\"count\": 1})", "replayGainMode_optionAlbum": "$t(entity.album, {\"count\": 1})",
"lyricOffset": "歌詞のオフセット (ミリ秒)", "lyricOffset": "歌詞のオフセット (ミリ秒)",
"discordUpdateInterval_description": "更新間隔 (秒単位、最小 15 秒)", "discordUpdateInterval_description": "更新間隔 (秒単位、最小 15 秒)",
@@ -117,16 +121,16 @@
"lyricFetchProvider": "歌詞取得先", "lyricFetchProvider": "歌詞取得先",
"language_description": "アプリケーションの言語を設定します ($t(common.restartRequired))", "language_description": "アプリケーションの言語を設定します ($t(common.restartRequired))",
"playbackStyle_optionCrossFade": "クロスフェード", "playbackStyle_optionCrossFade": "クロスフェード",
"hotkey_rate3": "3つ星で評価", "hotkey_rate3": "3 つ星で評価",
"font": "フォント", "font": "フォント",
"replayGainMode_optionTrack": "$t(entity.track, {\"count\": 1})", "replayGainMode_optionTrack": "$t(entity.track, {\"count\": 1})",
"themeLight_description": "アプリケーションに使用するライトテーマを設定します", "themeLight_description": "アプリケーションに使用するライトテーマを設定します",
"hotkey_toggleFullScreenPlayer": "フルスクリーンプレーヤー切り替え", "hotkey_toggleFullScreenPlayer": "全画面プレーヤー切り替え",
"hotkey_localSearch": "ページ内検索", "hotkey_localSearch": "ページ内検索",
"hotkey_toggleQueue": "キューの切り替え", "hotkey_toggleQueue": "キューの切り替え",
"zoom_description": "アプリケーションのズーム率を設定します", "zoom_description": "アプリケーションのズーム率を設定します",
"remotePassword_description": "リモートコントロール サーバーのパスワードを設定します。 ログイン情報はデフォルトでセキュアな通信がされないため、個人情報と関係ないランダムなパスワードを利用してください", "remotePassword_description": "リモートコントロール サーバーのパスワードを設定します。 ログイン情報はデフォルトでセキュアな通信がされないため、個人情報と関係ないランダムなパスワードを利用してください",
"hotkey_rate5": "5つ星で評価", "hotkey_rate5": "5 つ星で評価",
"hotkey_playbackPrevious": "前のトラック", "hotkey_playbackPrevious": "前のトラック",
"showSkipButtons_description": "プレーヤーバーのスキップボタンを表示または非表示にします", "showSkipButtons_description": "プレーヤーバーのスキップボタンを表示または非表示にします",
"crossfadeDuration_description": "クロスフェード効果の時間を設定します", "crossfadeDuration_description": "クロスフェード効果の時間を設定します",
@@ -137,11 +141,11 @@
"discordRichPresence_description": "{{discord}} Rich Presence で再生ステータスを有効にします。画像キー: {{icon}}, {{playing}}, {{paused}}", "discordRichPresence_description": "{{discord}} Rich Presence で再生ステータスを有効にします。画像キー: {{icon}}, {{playing}}, {{paused}}",
"mpvExecutablePath": "MPV 実行ファイルパス", "mpvExecutablePath": "MPV 実行ファイルパス",
"audioDevice": "オーディオデバイス", "audioDevice": "オーディオデバイス",
"hotkey_rate2": "2つ星で評価", "hotkey_rate2": "2 つ星で評価",
"playButtonBehavior_description": "キューに曲を追加するときの再生ボタンのデフォルトの動作を設定します", "playButtonBehavior_description": "キューに曲を追加するときの再生ボタンのデフォルトの動作を設定します",
"minimumScrobblePercentage_description": "Scrobble されるために必要な最短の再生時間 (%)", "minimumScrobblePercentage_description": "Scrobble されるために必要な最短の再生時間 (%)",
"exitToTray": "終了時にシステムトレイに格納", "exitToTray": "終了時にシステムトレイに格納",
"hotkey_rate4": "4つ星で評価", "hotkey_rate4": "4 つ星で評価",
"enableRemote": "リモートコントロール サーバーを有効化", "enableRemote": "リモートコントロール サーバーを有効化",
"showSkipButton_description": "プレーヤーバーのスキップボタンを表示または非表示にします", "showSkipButton_description": "プレーヤーバーのスキップボタンを表示または非表示にします",
"savePlayQueue": "再生キューを保存", "savePlayQueue": "再生キューを保存",
@@ -150,9 +154,9 @@
"fontType_description": "組み込みフォントの場合、Feishin が提供するフォントの中から 1 つ選択します。 システムフォントの場合、OS が提供する任意のフォントを選択できます。 カスタムフォントの場合、フォントファイルを自身で選択できます", "fontType_description": "組み込みフォントの場合、Feishin が提供するフォントの中から 1 つ選択します。 システムフォントの場合、OS が提供する任意のフォントを選択できます。 カスタムフォントの場合、フォントファイルを自身で選択できます",
"playButtonBehavior": "再生ボタンの動作", "playButtonBehavior": "再生ボタンの動作",
"volumeWheelStep": "音量ホイールステップ", "volumeWheelStep": "音量ホイールステップ",
"sidebarPlaylistList_description": "サイドバープレイリストのリストを表示/非表示にします", "sidebarPlaylistList_description": "サイドバープレイリストを表示または非表示にします",
"accentColor": "アクセントカラー", "accentColor": "アクセントカラー",
"sidePlayQueueStyle_description": "サイド再生キューのスタイルを設定します", "sidePlayQueueStyle_description": "サイド再生キューの形式を設定します",
"accentColor_description": "アプリケーションが利用するアクセントカラーを設定します", "accentColor_description": "アプリケーションが利用するアクセントカラーを設定します",
"replayGainMode": "{{ReplayGain}} モード", "replayGainMode": "{{ReplayGain}} モード",
"playbackStyle_optionNormal": "通常", "playbackStyle_optionNormal": "通常",
@@ -161,7 +165,7 @@
"replayGainPreamp_description": "{{ReplayGain}} の値に適用されるプリアンプゲインを調整します", "replayGainPreamp_description": "{{ReplayGain}} の値に適用されるプリアンプゲインを調整します",
"hotkey_toggleRepeat": "リピートの切り替え", "hotkey_toggleRepeat": "リピートの切り替え",
"lyricOffset_description": "歌詞のオフセットをミリ秒単位で指定します", "lyricOffset_description": "歌詞のオフセットをミリ秒単位で指定します",
"sidebarConfiguration_description": "サイドバーに表示されるアイテムと並び順を選択します", "sidebarConfiguration_description": "サイドバーに表示する項目と順序を選択します",
"fontType": "フォントタイプ", "fontType": "フォントタイプ",
"remotePort": "リモートコントロールサーバーのポート", "remotePort": "リモートコントロールサーバーのポート",
"applicationHotkeys": "アプリケーションホットキー", "applicationHotkeys": "アプリケーションホットキー",
@@ -178,16 +182,16 @@
"sidePlayQueueStyle_optionDetached": "分離", "sidePlayQueueStyle_optionDetached": "分離",
"audioPlayer": "オーディオプレーヤー", "audioPlayer": "オーディオプレーヤー",
"hotkey_zoomOut": "縮小", "hotkey_zoomOut": "縮小",
"hotkey_unfavoriteCurrentSong": "$t(common.currentSong) をお気に入り解除", "hotkey_unfavoriteCurrentSong": "$t(common.currentSong) をお気に入りから解除",
"hotkey_rate0": "評価をクリア", "hotkey_rate0": "評価をクリア",
"discordApplicationId": "{{discord}} アプリケーション ID", "discordApplicationId": "{{discord}} アプリケーション ID",
"applicationHotkeys_description": "アプリケーションのホットキーを設定します。チェックボックスを切り替えて、グローバルホットキーとして設定します (デスクトップのみ)", "applicationHotkeys_description": "アプリケーションのホットキーを設定します。チェックボックスを切り替えて、グローバルホットキーとして設定します (デスクトップのみ)",
"hotkey_volumeMute": "音量をミュート", "hotkey_volumeMute": "音量をミュート",
"hotkey_toggleCurrentSongFavorite": "$t(common.currentSong) お気に入り登録/解除", "hotkey_toggleCurrentSongFavorite": "$t(common.currentSong) お気に入りを切り替え",
"remoteUsername": "リモートコントロールサーバーのユーザー名", "remoteUsername": "リモートコントロールサーバーのユーザー名",
"hotkey_browserBack": "ブラウザ 戻る", "hotkey_browserBack": "ブラウザ 戻る",
"showSkipButton": "スキップボタンを表示", "showSkipButton": "スキップボタンを表示",
"sidebarPlaylistList": "サイドバー プレイリスト リスト", "sidebarPlaylistList": "サイドバープレイリスト",
"minimizeToTray": "最小化時にシステムトレイに格納", "minimizeToTray": "最小化時にシステムトレイに格納",
"skipPlaylistPage": "プレイリストページをスキップ", "skipPlaylistPage": "プレイリストページをスキップ",
"themeDark": "テーマ (ダーク)", "themeDark": "テーマ (ダーク)",
@@ -215,10 +219,10 @@
"trayEnabled": "トレイを表示する", "trayEnabled": "トレイを表示する",
"volumeWidth_description": "音量スライダーの幅", "volumeWidth_description": "音量スライダーの幅",
"volumeWidth": "音量スライダーの幅", "volumeWidth": "音量スライダーの幅",
"webAudio_description": "Web Audio を使用します。これにより、リプレイゲインなどの高度な機能が有効になります。それ以外の場合は無効にしてください", "webAudio_description": "Web Audio を使用します。これにより、リプレイゲインなどの高度な機能が有効になります。問題が発生した場合は無効にしてください",
"mpvExtraParameters_help": "1 行に 1 つずつ", "mpvExtraParameters_help": "1 行に 1 つずつ",
"musicbrainz_description": "MusicBrainz ID が存在するアーティスト/アルバムページに MusicBrainz へのリンクを表示します", "musicbrainz_description": "MusicBrainz ID が存在するアーティストアルバムページに MusicBrainz へのリンクを表示します",
"musicbrainz": "MusicBrainz リンクを表示する", "musicbrainz": "MusicBrainz リンクを表示",
"neteaseTranslation_description": "有効にすると、利用可能な場合は NetEase から翻訳された歌詞を取得して表示します", "neteaseTranslation_description": "有効にすると、利用可能な場合は NetEase から翻訳された歌詞を取得して表示します",
"neteaseTranslation": "NetEase 翻訳歌詞を有効にする", "neteaseTranslation": "NetEase 翻訳歌詞を有効にする",
"passwordStore_description": "使用するパスワード / シークレットストア。パスワードの保存に問題がある場合はこれを変更してください", "passwordStore_description": "使用するパスワード / シークレットストア。パスワードの保存に問題がある場合はこれを変更してください",
@@ -234,8 +238,8 @@
"imageAspectRatio": "ネイティブのカバーアートの縦横比を使用する", "imageAspectRatio": "ネイティブのカバーアートの縦横比を使用する",
"language": "言語", "language": "言語",
"imageAspectRatio_description": "有効にすると、カバーアートはネイティブの縦横比で表示されます。縦横比が 1:1 でない場合、残りのスペースは空白になります", "imageAspectRatio_description": "有効にすると、カバーアートはネイティブの縦横比で表示されます。縦横比が 1:1 でない場合、残りのスペースは空白になります",
"lastfm_description": "アーティスト/アルバムページに Last.fm へのリンクを表示します", "lastfm_description": "アーティストアルバムページに Last.fm へのリンクを表示します",
"lastfm": "Last.fm リンクを表示する", "lastfm": "Last.fm リンクを表示",
"lastfmApiKey": "{{lastfm}} API キー", "lastfmApiKey": "{{lastfm}} API キー",
"homeConfiguration_description": "ホーム画面に表示する項目と表示順序を設定します", "homeConfiguration_description": "ホーム画面に表示する項目と表示順序を設定します",
"homeConfiguration": "ホーム画面の設定", "homeConfiguration": "ホーム画面の設定",
@@ -267,7 +271,7 @@
"customCss": "カスタム CSS", "customCss": "カスタム CSS",
"customCssEnable_description": "カスタム CSS の記述を許可します", "customCssEnable_description": "カスタム CSS の記述を許可します",
"customCssEnable": "カスタム CSS を有効にする", "customCssEnable": "カスタム CSS を有効にする",
"customCssNotice": "警告: ある程度のサニタイズ (url() と content: の禁止) はありますが、カスタム CSS を使用するとインターフェースの変更によりリスクが生じる可能性があります", "customCssNotice": "警告: ある程度のサニタイズ (URL() と content: の禁止) はありますが、カスタム CSS を使用するとインターフェースの変更によりリスクが生じる可能性があります",
"releaseChannel_optionBeta": "ベータ", "releaseChannel_optionBeta": "ベータ",
"releaseChannel_optionLatest": "最新", "releaseChannel_optionLatest": "最新",
"releaseChannel": "リリースチャンネル", "releaseChannel": "リリースチャンネル",
@@ -283,7 +287,7 @@
"exportImportSettings_control_title": "設定をインポート/エクスポート", "exportImportSettings_control_title": "設定をインポート/エクスポート",
"exportImportSettings_control_description": "JSON 経由で設定をエクスポートおよびインポートする", "exportImportSettings_control_description": "JSON 経由で設定をエクスポートおよびインポートする",
"exportImportSettings_destructiveWarning": "設定のインポートは破壊的です。下の「インポート」をクリックする前に、上記の内容を必ずご確認ください!", "exportImportSettings_destructiveWarning": "設定のインポートは破壊的です。下の「インポート」をクリックする前に、上記の内容を必ずご確認ください!",
"hotkey_navigateHome": "ホーム移動", "hotkey_navigateHome": "ホーム画面へ移動",
"playButtonBehavior_optionPlayShuffled": "$t(player.shuffle)", "playButtonBehavior_optionPlayShuffled": "$t(player.shuffle)",
"playerbarOpenDrawer": "プレーヤーバーの全画面表示切り替え", "playerbarOpenDrawer": "プレーヤーバーの全画面表示切り替え",
"transcode": "トランスコーディングを有効にする", "transcode": "トランスコーディングを有効にする",
@@ -325,11 +329,11 @@
"followCurrentSong": "現在の曲をフォロー", "followCurrentSong": "現在の曲をフォロー",
"followCurrentSong_description": "再生キューを現在再生中の曲まで自動的にスクロールします", "followCurrentSong_description": "再生キューを現在再生中の曲まで自動的にスクロールします",
"logLevel": "ログレベル", "logLevel": "ログレベル",
"logLevel_description": "表示するログの最小レベルを設定します。debug はすべてのログを表示し、error はエラーのみを表示します", "logLevel_description": "表示するログの最小レベルを設定します。Debug はすべてのログを表示し、Error はエラーのみを表示します",
"logLevel_optionDebug": "debug", "logLevel_optionDebug": "Debug",
"logLevel_optionError": "error", "logLevel_optionError": "Error",
"logLevel_optionInfo": "info", "logLevel_optionInfo": "Info",
"logLevel_optionWarn": "warn", "logLevel_optionWarn": "Warn",
"playerFilters": "キューから曲をフィルタリング", "playerFilters": "キューから曲をフィルタリング",
"playerFilters_description": "以下の基準に基づいて曲をキューに追加しないようにします", "playerFilters_description": "以下の基準に基づいて曲をキューに追加しないようにします",
"artistRadioCount": "アーティスト / トラックのラジオカウント", "artistRadioCount": "アーティスト / トラックのラジオカウント",
@@ -337,7 +341,7 @@
"imageResolution": "画像の解像度", "imageResolution": "画像の解像度",
"imageResolution_description": "アプリ内で使用される画像の解像度。値を 0 に設定すると、デフォルトでネイティブ画像解像度が適用されます", "imageResolution_description": "アプリ内で使用される画像の解像度。値を 0 に設定すると、デフォルトでネイティブ画像解像度が適用されます",
"showLyricsInSidebar_description": "添付の再生キューに歌詞を表示するパネルが追加されます", "showLyricsInSidebar_description": "添付の再生キューに歌詞を表示するパネルが追加されます",
"showLyricsInSidebar": "プレーヤーのサイドバーに歌詞を表示する", "showLyricsInSidebar": "サイドバーのプレーヤーに歌詞を表示",
"showRatings": "星評価を表示する", "showRatings": "星評価を表示する",
"imageResolution_optionSidebar": "サイドバー", "imageResolution_optionSidebar": "サイドバー",
"imageResolution_optionHeader": "ヘッダー", "imageResolution_optionHeader": "ヘッダー",
@@ -348,12 +352,12 @@
"playerbarSliderType_optionWaveform": "波形", "playerbarSliderType_optionWaveform": "波形",
"playerbarWaveformAlign": "波形アライメント", "playerbarWaveformAlign": "波形アライメント",
"showRatings_description": "インターフェースに星評価機能を表示するかどうかを制御します", "showRatings_description": "インターフェースに星評価機能を表示するかどうかを制御します",
"showVisualizerInSidebar": "プレーヤーのサイドバーにビジュアライザーを表示する", "showVisualizerInSidebar": "サイドバーのプレーヤーにビジュアライザーを表示",
"combinedLyricsAndVisualizer": "プレーヤーのサイドバーに歌詞とビジュアライザーを統合する", "combinedLyricsAndVisualizer": "サイドバーのプレーヤーに歌詞とビジュアライザーを統合",
"audioFadeOnStatusChange_description": "再生 / 一時停止の状態が変わったときにフェードアウトとフェードインを有効にします", "audioFadeOnStatusChange_description": "再生 / 一時停止の状態が変わったときにフェードアウトとフェードインを有効にします",
"audioFadeOnStatusChange": "ステータス変更時の音声フェード", "audioFadeOnStatusChange": "ステータス変更時の音声フェード",
"combinedLyricsAndVisualizer_description": "歌詞とビジュアライザーを同じパネルに統合します", "combinedLyricsAndVisualizer_description": "歌詞とビジュアライザーを同じパネルに統合します",
"showVisualizerInSidebar_description": "プレーヤーのサイドバーにビジュアライザーを表示するパネルが追加されます", "showVisualizerInSidebar_description": "サイドバーのプレーヤーにビジュアライザーを表示するパネルが追加されます",
"queryBuilderCustomFields": "カスタムフィールド", "queryBuilderCustomFields": "カスタムフィールド",
"queryBuilderCustomFields_inputLabel": "ラベル", "queryBuilderCustomFields_inputLabel": "ラベル",
"queryBuilderCustomFields_inputTag": "タグ", "queryBuilderCustomFields_inputTag": "タグ",
@@ -375,7 +379,53 @@
"automaticUpdates_description": "更新を自動的に確認してインストールします", "automaticUpdates_description": "更新を自動的に確認してインストールします",
"releaseChannel_optionAlpha": "アルファ (nightly)", "releaseChannel_optionAlpha": "アルファ (nightly)",
"discordStateIcon": "再生中アイコンを表示", "discordStateIcon": "再生中アイコンを表示",
"discordStateIcon_description": "Rich Presence ステータスに小さな再生アイコンを表示します。「一時停止時に Rich Presence を表示」が有効になっている場合は、常に一時停止アイコンが表示されます" "discordStateIcon_description": "Rich Presence ステータスに小さな再生アイコンを表示します。「一時停止時に Rich Presence を表示」が有効になっている場合は、常に一時停止アイコンが表示されます",
"sidebarPlaylistListFilterRegex_description": "この正規表現に一致するプレイリストをサイドバーから非表示にします",
"sidebarPlaylistListFilterRegex_placeholder": "例: ^Daily Mix.*",
"sidebarPlaylistListFilterRegex": "プレイリストフィルターの正規表現",
"sidebarPlaylistSorting": "サイドバーでプレイリストを並べ替え",
"sidebarPlaylistSorting_description": "デフォルトのサーバー順ではなく、ドラッグアンドドロップを使用してサイドバーでプレイリストを手動で並べ替えることができます",
"playerItemConfiguration_description": "全画面プレーヤーに表示する項目と順序を設定します",
"playerItemConfiguration": "プレーヤーの項目設定",
"autosave": "再生キューを自動的に保存",
"autosave_description": "再生キューをサーバーに自動的に保存できるようにします。これは Navidrome/Subsonic を使用している場合にのみ可能であり、再生キューを混在させることはできません。",
"autosaveCount": "自動再生キューの保存頻度",
"autosaveCount_description": "キューが保存されるまでにトラックが変更される回数を設定します。1 (最小値) は曲が変わるたびに保存されることを意味します",
"useThemePrimaryShade_description": "選択したテーマで定義されたプライマリシェードをプライマリカラーのバリアントに使用します",
"useThemePrimaryShade": "テーマのプライマリシェードを使用",
"primaryShade": "プライマリシェード",
"primaryShade_description": "ボタン、リンク、およびその他の主要色要素に使用されるプライマリシェード (0–9) を上書きします",
"playerbarWaveformAlign_optionTop": "上部",
"playerbarWaveformAlign_optionCenter": "中央",
"playerbarWaveformAlign_optionBottom": "下部",
"imageResolution_optionTable": "表",
"imageResolution_optionItemCard": "アイテムカード",
"blurExplicitImages": "露骨な画像をぼかす",
"blurExplicitImages_description": "露骨な表現を含むタグが付けられたアルバムおよび楽曲のアートワークをぼかします",
"enableGridMultiSelect": "グリッドの複数選択を有効にする",
"enableGridMultiSelect_description": "有効にすると、グリッドビューで複数のアイテムを選択できます。無効にすると、グリッドアイテムの画像をクリックするとアイテムページに移動します",
"playerbarWaveformBarWidth": "波形バーの幅",
"playerbarWaveformGap": "波形ギャップ",
"playerbarWaveformRadius": "波形半径",
"hotkey_listNavigateToPage": "項目の詳細ページへ移動",
"hotkey_listPlayDefault": "リストを再生 (デフォルト)",
"hotkey_listPlayLast": "最後に再生",
"hotkey_listPlayNext": "次に再生",
"hotkey_listPlayNow": "今すぐ再生",
"spotify_description": "アーティストとアルバムページに Spotify へのリンクを表示します",
"spotify": "Spotify のリンクを表示",
"nativeSpotify_description": "ブラウザーの代わりに Spotify アプリで開きます",
"nativeSpotify": "Spotify アプリを使用",
"listenbrainz_description": "アーティストとアルバムページに ListenBrainz へのリンクを表示します",
"listenbrainz": "ListenBrainz のリンクを表示",
"qobuz_description": "アーティストとアルバムページに Qobuz へのリンクを表示します",
"qobuz": "Qobuz のリンクを表示",
"sidePlayQueueLayout": "サイド再生キューのレイアウト",
"sidePlayQueueLayout_description": "結合されたサイド再生キューのレイアウトを設定します",
"sidePlayQueueLayout_optionHorizontal": "水平",
"sidePlayQueueLayout_optionVertical": "垂直",
"waveformLoadingDelay": "波形読み込みの遅延",
"waveformLoadingDelay_description": "波形を読み込むまでの遅延時間(秒単位)を設定します。Web プレーヤー使用時にカクつきが発生する場合は、この値を増やしてください。"
}, },
"action": { "action": {
"editPlaylist": "$t(entity.playlist, {\"count\": 1}) を編集", "editPlaylist": "$t(entity.playlist, {\"count\": 1}) を編集",
@@ -397,7 +447,10 @@
"removeFromFavorites": "$t(entity.favorite, {\"count\": 2}) から削除", "removeFromFavorites": "$t(entity.favorite, {\"count\": 2}) から削除",
"openIn": { "openIn": {
"lastfm": "Last.fm で開く", "lastfm": "Last.fm で開く",
"musicbrainz": "MusicBrainz で開く" "musicbrainz": "MusicBrainz で開く",
"spotify": "Spotify で開く",
"listenbrainz": "ListenBrainz で開く",
"qobuz": "Qobuz で開く"
}, },
"moveToNext": "次", "moveToNext": "次",
"downloadStarted": "{{count}} 曲のダウンロードを開始しました", "downloadStarted": "{{count}} 曲のダウンロードを開始しました",
@@ -415,7 +468,8 @@
"holdToMoveToBottom": "押し続けると一番下に移動します", "holdToMoveToBottom": "押し続けると一番下に移動します",
"openApplicationDirectory": "アプリケーションディレクトリを開く", "openApplicationDirectory": "アプリケーションディレクトリを開く",
"selectRangeOfItems": "項目の範囲を選択", "selectRangeOfItems": "項目の範囲を選択",
"addOrRemoveFromSelection": "選択に追加または削除" "addOrRemoveFromSelection": "選択に追加または削除",
"goToCurrent": "現在の項目へ移動"
}, },
"common": { "common": {
"backward": "戻る", "backward": "戻る",
@@ -447,7 +501,7 @@
"name": "名前", "name": "名前",
"maximize": "最大化", "maximize": "最大化",
"decrease": "減少", "decrease": "減少",
"ok": "OK", "ok": "Ok",
"description": "説明", "description": "説明",
"configure": "設定", "configure": "設定",
"path": "パス", "path": "パス",
@@ -463,8 +517,8 @@
"setting_other": "設定", "setting_other": "設定",
"version": "バージョン", "version": "バージョン",
"title": "タイトル", "title": "タイトル",
"filter_other": "フィルタ", "filter_other": "フィルタ",
"filters": "フィルタ", "filters": "フィルタ",
"create": "作成", "create": "作成",
"bitrate": "ビットレート", "bitrate": "ビットレート",
"saveAndReplace": "保存して変更", "saveAndReplace": "保存して変更",
@@ -533,19 +587,23 @@
"clean": "クリーン", "clean": "クリーン",
"filter_single": "シングル", "filter_single": "シングル",
"filter_multiple": "複数枚組", "filter_multiple": "複数枚組",
"rename": "名前を変更" "rename": "名前を変更",
"newVersionAvailable": "新しいバージョンが利用可能です",
"numberOfResults": "{{numberOfResults}} 件の結果",
"grouping": "グループ化"
}, },
"table": { "table": {
"config": { "config": {
"view": { "view": {
"table": "テーブル", "table": "",
"grid": "グリッド", "grid": "グリッド",
"list": "リスト" "list": "リスト",
"detail": "詳細"
}, },
"general": { "general": {
"displayType": "表示タイプ", "displayType": "表示タイプ",
"gap": "$t(common.gap)", "gap": "$t(common.gap)",
"tableColumns": "テーブル カラム", "tableColumns": "テーブル",
"autoFitColumns": "カラム長を自動調整", "autoFitColumns": "カラム長を自動調整",
"size": "$t(common.size)", "size": "$t(common.size)",
"itemSize": "項目のサイズ (px)", "itemSize": "項目のサイズ (px)",
@@ -565,7 +623,14 @@
"size_compact": "コンパクト", "size_compact": "コンパクト",
"size_large": "大きい", "size_large": "大きい",
"pagination_itemsPerPage": "ページあたりの項目数", "pagination_itemsPerPage": "ページあたりの項目数",
"pagination_infinite": "無限" "pagination_infinite": "無限",
"pagination": "ページネーション",
"pagination_paginate": "ページ分割",
"showHeader": "ヘッダーを表示",
"verticalBorders": "列の境界線",
"rowHoverHighlight": "行ホバーハイライト",
"alternateRowColors": "交互の行の色",
"horizontalBorders": "行の境界線"
}, },
"label": { "label": {
"releaseDate": "発売日", "releaseDate": "発売日",
@@ -574,7 +639,7 @@
"titleCombined": "$t(common.title) (結合)", "titleCombined": "$t(common.title) (結合)",
"dateAdded": "追加日", "dateAdded": "追加日",
"size": "$t(common.size)", "size": "$t(common.size)",
"bpm": "$t(common.bpm)", "bpm": "$t(common.BPM)",
"lastPlayed": "最後に再生", "lastPlayed": "最後に再生",
"trackNumber": "トラック番号", "trackNumber": "トラック番号",
"rowIndex": "行インデックス", "rowIndex": "行インデックス",
@@ -602,7 +667,8 @@
"image": "画像", "image": "画像",
"sampleRate": "$t(common.sampleRate)", "sampleRate": "$t(common.sampleRate)",
"composer": "作曲家", "composer": "作曲家",
"titleArtist": "$t(common.title) (アーティスト)" "titleArtist": "$t(common.title) (アーティスト)",
"albumGroup": "アルバムグループ"
} }
}, },
"column": { "column": {
@@ -666,7 +732,8 @@
"saveQueueFailed": "キューを保存できませんでした", "saveQueueFailed": "キューを保存できませんでした",
"settingsSyncError": "レンダラーとメインプロセスの設定に矛盾が見つかりました。変更を適用するにはアプリケーションを再起動してください", "settingsSyncError": "レンダラーとメインプロセスの設定に矛盾が見つかりました。変更を適用するにはアプリケーションを再起動してください",
"invalidJson": "無効な JSON", "invalidJson": "無効な JSON",
"serverLockSingleServer": "サーバーがロックされている場合、1 つのサーバーのみが許可されます" "serverLockSingleServer": "サーバーがロックされている場合、1 つのサーバーのみが許可されます",
"playbackPausedDueToError": "エラーのため再生が一時停止されました"
}, },
"filter": { "filter": {
"mostPlayed": "最も多く再生", "mostPlayed": "最も多く再生",
@@ -712,7 +779,9 @@
"id": "ID", "id": "ID",
"album": "$t(entity.album, {\"count\": 1})", "album": "$t(entity.album, {\"count\": 1})",
"explicitStatus": "$t(common.explicitStatus)", "explicitStatus": "$t(common.explicitStatus)",
"sortName": "ソート名" "sortName": "ソート名",
"matchAnd": "すべて",
"matchOr": "いずれか"
}, },
"page": { "page": {
"sidebar": { "sidebar": {
@@ -884,7 +953,8 @@
"groupingTypePrimary": "主なリリースタイプ", "groupingTypePrimary": "主なリリースタイプ",
"favoriteSongs": "お気に入りの曲", "favoriteSongs": "お気に入りの曲",
"topSongsCommunity": "コミュニティ", "topSongsCommunity": "コミュニティ",
"favoriteSongsFrom": "{{title}} のお気に入りの曲" "favoriteSongsFrom": "{{title}} のお気に入りの曲",
"topSongsPersonal": "個人的"
}, },
"manageServers": { "manageServers": {
"title": "サーバーの管理", "title": "サーバーの管理",
@@ -967,7 +1037,7 @@
}, },
"updateServer": { "updateServer": {
"title": "サーバーをアップデート", "title": "サーバーをアップデート",
"success": "サーバーがアップデートされました" "success": "サーバーの更新に成功しました"
}, },
"queryEditor": { "queryEditor": {
"input_optionMatchAll": "すべて一致", "input_optionMatchAll": "すべて一致",
@@ -986,8 +1056,7 @@
"editPlaylist": { "editPlaylist": {
"title": "$t(entity.playlist, {\"count\": 1}) を編集", "title": "$t(entity.playlist, {\"count\": 1}) を編集",
"publicJellyfinNote": "Jellyfin では、何らかの理由でプレイリストが公開されているかどうかが表示されません。公開されたままにしたい場合は、以下の項目を選択してください", "publicJellyfinNote": "Jellyfin では、何らかの理由でプレイリストが公開されているかどうかが表示されません。公開されたままにしたい場合は、以下の項目を選択してください",
"success": "$t(entity.playlist, {\"count\": 1}) が正常に更新されました", "success": "$t(entity.playlist, {\"count\": 1}) が正常に更新されました"
"editNote": "大規模なプレイリストの場合、手動編集は推奨されません。既存のプレイリストを上書きすることでデータ損失が発生するリスクを許容しますか?"
}, },
"shareItem": { "shareItem": {
"allowDownloading": "ダウンロードを許可", "allowDownloading": "ダウンロードを許可",
@@ -995,7 +1064,9 @@
"setExpiration": "有効期限を設定", "setExpiration": "有効期限を設定",
"success": "共有リンクがクリップボードにコピーされました (またはここをクリックして開きます)", "success": "共有リンクがクリップボードにコピーされました (またはここをクリックして開きます)",
"expireInvalid": "有効期限は将来の日時である必要があります", "expireInvalid": "有効期限は将来の日時である必要があります",
"createFailed": "共有リンクを作成できませんでした (共有は有効になっていますか?)" "createFailed": "共有リンクを作成できませんでした (共有は有効になっていますか?)",
"copyToClipboard": "クリップボードにコピー: Ctrl+C、Enter",
"successMustClick": "共有リンクが正常に作成されました。開くにはここをクリックしてください"
}, },
"privateMode": { "privateMode": {
"enabled": "プライベートモードが有効になりました。再生ステータスは外部連携から非表示になっています", "enabled": "プライベートモードが有効になりました。再生ステータスは外部連携から非表示になっています",
@@ -1011,7 +1082,7 @@
"title": "ラジオ局を作成", "title": "ラジオ局を作成",
"input_homepageUrl": "ホームページ URL", "input_homepageUrl": "ホームページ URL",
"input_name": "名前", "input_name": "名前",
"input_streamUrl": "Stream URL" "input_streamUrl": "ストリーム URL"
}, },
"lyricsExport": { "lyricsExport": {
"export": "歌詞をエクスポート", "export": "歌詞をエクスポート",
@@ -1031,6 +1102,9 @@
}, },
"saveQueue": { "saveQueue": {
"success": "プレイキューをサーバーに保存しました" "success": "プレイキューをサーバーに保存しました"
},
"editRadioStation": {
"success": "ラジオ局の更新に成功しました"
} }
}, },
"entity": { "entity": {
@@ -1072,9 +1146,15 @@
"audiobook": "オーディオブック", "audiobook": "オーディオブック",
"audioDrama": "オーディオドラマ", "audioDrama": "オーディオドラマ",
"compilation": "コンピレーション", "compilation": "コンピレーション",
"djMix": "DJ Mix", "djMix": "DJ ミックス",
"demo": "デモ", "demo": "デモ",
"soundtrack": "サウンドトラック" "soundtrack": "サウンドトラック",
"fieldRecording": "フィールドレコーディング",
"interview": "インタビュー",
"live": "ライブ",
"mixtape": "ミックステープ",
"remix": "リミックス",
"spokenWord": "スポークン・ワード"
} }
}, },
"datetime": { "datetime": {
@@ -1110,6 +1190,157 @@
}, },
"visualizer": { "visualizer": {
"visualizerType": "ビジュアライザーの種類", "visualizerType": "ビジュアライザーの種類",
"colors": "色" "colors": "色",
"cyclePresets": "サイクルプリセット",
"cycleTime": "サイクルタイム(秒)",
"includeAllPresets": "すべてのプリセットを含める",
"ignoredPresets": "無視されたプリセット",
"selectedPresets": "選択されたプリセット",
"randomizeNextPreset": "次のプリセットをランダム化",
"blendTime": "ブレンド時間",
"presets": "プリセット",
"selectPreset": "プリセットを選択",
"applyPreset": "プリセットを適用",
"saveAsPreset": "プリセットとして保存",
"updatePreset": "プリセットを更新",
"copyConfiguration": "設定をコピーする",
"pasteConfiguration": "設定を貼り付け",
"pasteConfigurationPlaceholder": "ここに JSON 設定を貼り付けてください...",
"pasteFromClipboard": "クリップボードから貼り付け",
"applyConfiguration": "設定を適用",
"configCopied": "設定をクリップボードにコピーしました",
"configCopyFailed": "設定のコピーに失敗しました",
"configPasted": "設定が正常に適用されました",
"configPasteFailed": "設定の適用に失敗しました。形式を確認してください。",
"configPasteReadFailed": "クリップボードからの読み取りに失敗しました",
"presetName": "プリセット名",
"presetNamePlaceholder": "プリセット名を入力",
"general": "全般",
"mode": "モード",
"mode1To8": "モード 1 - 8",
"mode10": "モード 10",
"barSpace": "バースペース",
"lineWidth": "線幅",
"fillAlpha": "アルファ塗りつぶしを設定",
"channelLayout": "チャンネルレイアウト",
"maxFPS": "最大フレームレート",
"opacity": "不透明度",
"customGradients": "カスタムグラデーション",
"addCustomGradient": "カスタムグラデーションを追加",
"gradientName": "グラデーション名",
"gradientNamePlaceholder": "グラデーション名",
"vertical": "垂直",
"horizontal": "水平",
"colorStops": "カラー停止点の数",
"addColor": "色を加える",
"position": "位置",
"level": "レベル",
"remove": "取り除く",
"pasteGradient": "グラデーションを貼り付け",
"pasteGradientPlaceholder": "グラデーションの JSON をここに貼り付けてください...",
"custom": "カスタム",
"builtIn": "組み込み",
"colorMode": "カラーモード",
"gradient": "勾配",
"gradientLeft": "左へのグラデーション",
"gradientRight": "右へのグラデーション",
"fft": "高速フーリエ変換",
"fftSize": "FFT サイズ",
"smoothing": "平滑化",
"frequencyRangeAndScaling": "周波数範囲とスケーリング",
"minimumFrequency": "最小周波数",
"maximumFrequency": "最大周波数",
"frequencyScale": "周波数スケール",
"sensitivity": "感度",
"weightingFilter": "重み付けフィルタ",
"minimumDecibels": "最小デシベル",
"maximumDecibels": "最大デシベル",
"linearAmplitude": "線形振幅",
"linearBoost": "リニアブースト",
"peakBehavior": "ピーク時の振る舞い",
"showPeaks": "ピークスを表示",
"fadePeaks": "フェードピークス",
"peakLine": "ピークライン",
"gravity": "重力",
"peakFadeTime": "ピークフェード時間(ミリ秒)",
"peakHoldTime": "ピークホールド時間(ミリ秒)",
"radialSpectrum": "放射状スペクトル",
"radial": "ラジアル",
"radialInvert": "放射状インバート",
"spinSpeed": "回転速度",
"radius": "半径",
"reflexMirror": "反射鏡",
"reflexFit": "リフレックス・フィット",
"reflexRatio": "反射比",
"reflexAlpha": "リフレックス・アルファ",
"reflexBrightness": "反射輝度",
"mirror": "鏡",
"miscellaneousSettings": "その他の設定",
"alphaBars": "アルファバー",
"ansiBands": "ANSI バンド",
"ledBars": "LED バー",
"trueLeds": "真の LED",
"lumiBars": "ルミ・バー",
"outlineBars": "アウトラインバー",
"roundBars": "丸棒",
"lowResolution": "低解像度",
"splitGradient": "分割グラデーション",
"showFPS": "FPS を表示",
"showScaleX": "X 軸スケールを表示",
"noteLabels": "注釈ラベル",
"showScaleY": "Y 軸スケールを表示",
"options": {
"mode": {
"0": "[0] 離散周波数",
"1": "[1] 1/24 オクターブ / 240 バンド",
"2": "[2] 1/12 オクターブ / 120 バンド",
"3": "[3] 1/8 オクターブ / 80 バンド",
"4": "[4] 1/6 オクターブ / 60 バンド",
"5": "[5] 1/4 オクターブ / 40 バンド",
"6": "[6] 1/3 オクターブ / 30 バンド",
"7": "[7] 半オクターブ / 20 バンド",
"8": "[8] フルオクターブ / 10 バンド",
"10": "[10] 折れ線グラフ / 面グラフ"
},
"colorMode": {
"gradient": "勾配",
"barIndex": "バー・インデックス",
"barLevel": "バーレベル"
},
"gradient": {
"classic": "クラシック",
"prism": "プリズム",
"rainbow": "虹",
"steelblue": "スチールブルー",
"orangered": "オレンジレッド"
},
"channelLayout": {
"single": "シングル",
"dualCombined": "デュアルコンバインド",
"dualHorizontal": "デュアル水平",
"dualVertical": "デュアルバーティカル"
},
"frequencyScale": {
"none": "なし",
"bark": "樹皮スケール",
"linear": "線形スケール",
"log": "対数スケール",
"mel": "メル尺度"
},
"weightingFilter": {
"none": "なし",
"a": "A",
"b": "B",
"c": "C",
"d": "D",
"z": "Z"
}
},
"systemAudioConsentAllow": "許可",
"systemAudioConsentBody": "ビジュアライザーを機能させるためには、システムオーディオへのアクセスが必要です",
"systemAudioConsentDecline": "拒否",
"systemAudioConsentTitle": "システムオーディオへのアクセスを許可しますか?",
"systemAudioCaptureFailed": "キャプチャを開始できませんでした: {{message}}",
"systemAudioNoAudioTrack": "音声トラックが返されませんでした。プロンプトが表示されたら、音声キャプチャが有効になっていることを確認してください。"
} }
} }
+6 -6
View File
@@ -106,7 +106,7 @@
"ascending": "오름차순", "ascending": "오름차순",
"areYouSure": "확실한가요?", "areYouSure": "확실한가요?",
"bitrate": "비트 전송률", "bitrate": "비트 전송률",
"bpm": "bpm", "bpm": "BPM",
"biography": "바이오그래피", "biography": "바이오그래피",
"center": "중앙", "center": "중앙",
"channel_other": "채널", "channel_other": "채널",
@@ -127,7 +127,7 @@
"filters": "필터", "filters": "필터",
"noResultsFromQuery": "쿼리 결과가 없습니다", "noResultsFromQuery": "쿼리 결과가 없습니다",
"note": "노트", "note": "노트",
"ok": "OK", "ok": "Ok",
"owner": "소유자", "owner": "소유자",
"sampleRate": "샘플레이트", "sampleRate": "샘플레이트",
"tags": "태그", "tags": "태그",
@@ -224,7 +224,7 @@
"biography": "바이오그래피", "biography": "바이오그래피",
"channels": "$t(common.channel_other)", "channels": "$t(common.channel_other)",
"duration": "길이", "duration": "길이",
"bpm": "bpm", "bpm": "BPM",
"albumCount": "$t(entity.album, {\"count\": 2}) 앨범수", "albumCount": "$t(entity.album, {\"count\": 2}) 앨범수",
"comment": "코멘트", "comment": "코멘트",
"favorited": "즐겨찾기", "favorited": "즐겨찾기",
@@ -251,7 +251,7 @@
"input_name": "서버 이름", "input_name": "서버 이름",
"input_password": "비밀번호", "input_password": "비밀번호",
"input_savePassword": "비밀번호 저장하기", "input_savePassword": "비밀번호 저장하기",
"input_url": "url", "input_url": "URL",
"error_savePassword": "비밀번호를 저장하는 도중 오류가 발생했습니다", "error_savePassword": "비밀번호를 저장하는 도중 오류가 발생했습니다",
"ignoreCors": "CORS 무시 ($t(common.restartRequired))", "ignoreCors": "CORS 무시 ($t(common.restartRequired))",
"ignoreSsl": "SSL 무시 ($t(common.restartRequired))", "ignoreSsl": "SSL 무시 ($t(common.restartRequired))",
@@ -458,8 +458,8 @@
"playSimilarSongs": "비슷한 곡 재생", "playSimilarSongs": "비슷한 곡 재생",
"previous": "이전", "previous": "이전",
"queue_clear": "재생 대기열 지우기", "queue_clear": "재생 대기열 지우기",
"queue_moveToBottom": "선택한 곡을 가장 로 이동", "queue_moveToBottom": "선택한 곡을 가장 아래로 이동",
"queue_moveToTop": "선택한 곡을 가장 아래로 이동", "queue_moveToTop": "선택한 곡을 가장 로 이동",
"queue_remove": "선택한 항목 삭제", "queue_remove": "선택한 항목 삭제",
"repeat": "반복", "repeat": "반복",
"repeat_all": "모두 반복하기", "repeat_all": "모두 반복하기",
File diff suppressed because it is too large Load Diff
+920 -879
View File
File diff suppressed because it is too large Load Diff
+927 -892
View File
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+352 -351
View File
@@ -1,165 +1,166 @@
{ {
"action": { "action": {
"addToFavorites": "adicionar a $t(entity.favorite, {\"count\": 2})", "addToFavorites": "Adicionar a $t(entity.favorite, {\"count\": 2})",
"addToPlaylist": "adicionar a $t(entity.playlist, {\"count\": 1})", "addToPlaylist": "Adicionar a $t(entity.playlist, {\"count\": 1})",
"clearQueue": "limpar fila", "clearQueue": "Limpar fila",
"createPlaylist": "criar $t(entity.playlist, {\"count\": 1})", "createPlaylist": "Criar $t(entity.playlist, {\"count\": 1})",
"deletePlaylist": "apagar $t(entity.playlist, {\"count\": 1})", "deletePlaylist": "Apagar $t(entity.playlist, {\"count\": 1})",
"deselectAll": "desmarcar todos", "deselectAll": "Desmarcar todos",
"editPlaylist": "editar $t(entity.playlist, {\"count\": 1})", "editPlaylist": "Editar $t(entity.playlist, {\"count\": 1})",
"goToPage": "vá para página", "goToPage": "Vá para página",
"moveToNext": "mover para o próximo", "moveToNext": "Mover para o próximo",
"moveToBottom": "mover para baixo", "moveToBottom": "Mover para baixo",
"moveToTop": "mover para o topo", "moveToTop": "Mover para o topo",
"refresh": "$t(common.refresh)", "refresh": "$t(common.refresh)",
"removeFromFavorites": "remover de $t(entity.favorite, {\"count\": 2})", "removeFromFavorites": "Remover de $t(entity.favorite, {\"count\": 2})",
"removeFromPlaylist": "remover da $t(entity.playlist, {\"count\": 1})", "removeFromPlaylist": "Remover da $t(entity.playlist, {\"count\": 1})",
"removeFromQueue": "remover da fila", "removeFromQueue": "Remover da fila",
"setRating": "definir classificação", "setRating": "Definir classificação",
"toggleSmartPlaylistEditor": "alternar editor $t(entity.smartPlaylist)", "toggleSmartPlaylistEditor": "Alternar editor $t(entity.smartPlaylist)",
"viewPlaylists": "ver $t(entity.playlist, {\"count\": 2})", "viewPlaylists": "Ver $t(entity.playlist, {\"count\": 2})",
"openIn": { "openIn": {
"lastfm": "Abrir em Last.fm", "lastfm": "Abrir em Last.fm",
"musicbrainz": "Abrir em MusicBrainz" "musicbrainz": "Abrir em MusicBrainz"
} }
}, },
"common": { "common": {
"action_one": "ação", "action_one": "Ação",
"action_many": "ações", "action_many": "ações",
"action_other": "ações", "action_other": "Ações",
"add": "adicionar", "add": "Adicionar",
"additionalParticipants": "participantes adicionais", "additionalParticipants": "Participantes adicionais",
"newVersion": "uma nova versão foi instalada ({{version}})", "newVersion": "Uma nova versão foi instalada ({{version}})",
"viewReleaseNotes": "ver notas de lançamento", "viewReleaseNotes": "Ver notas de lançamento",
"albumGain": "ganho do álbum", "albumGain": "Ganho do álbum",
"albumPeak": "pico do álbum", "albumPeak": "Pico do álbum",
"areYouSure": "tem certeza?", "areYouSure": "Tem certeza?",
"ascending": "ascendente", "ascending": "Ascendente",
"backward": "para trás", "backward": "Para trás",
"biography": "biografia", "biography": "Biografia",
"bitrate": "taxa de bits", "bitrate": "Taxa de bits",
"bpm": "bpm", "bpm": "Bpm",
"cancel": "cancelar", "cancel": "Cancelar",
"center": "centro", "center": "Centro",
"channel_one": "canal", "channel_one": "Canal",
"channel_many": "canais", "channel_many": "canais",
"channel_other": "canais", "channel_other": "Canais",
"clear": "limpar", "clear": "Limpar",
"close": "fechar", "close": "Fechar",
"codec": "codec", "codec": "Codec",
"collapse": "minimizar", "collapse": "Minimizar",
"comingSoon": "em breve…", "comingSoon": "Em breve…",
"configure": "configurar", "configure": "Configurar",
"confirm": "confirmar", "confirm": "Confirmar",
"create": "criar", "create": "Criar",
"currentSong": "$t(entity.track, {\"count\": 1}) atual", "currentSong": "$t(entity.track, {\"count\": 1}) atual",
"decrease": "diminuir", "decrease": "Diminuir",
"delete": "apagar", "delete": "Apagar",
"descending": "abaixar", "descending": "Abaixar",
"description": "descrição", "description": "Descrição",
"disable": "desativar", "disable": "Desativar",
"disc": "disco", "disc": "Disco",
"dismiss": "liberar", "dismiss": "Liberar",
"duration": "duração", "duration": "Duração",
"edit": "editar", "edit": "Editar",
"enable": "ativar", "enable": "Ativar",
"expand": "expandir", "expand": "Expandir",
"favorite": "favorito", "favorite": "Favorito",
"filter_one": "filtro", "filter_one": "Filtro",
"filter_many": "filtros", "filter_many": "filtros",
"filter_other": "filtros", "filter_other": "Filtros",
"filters": "filtros", "filters": "Filtros",
"forceRestartRequired": "reinicie para aplicar as alterações… feche a notificação para reiniciar", "forceRestartRequired": "Reinicie para aplicar as alterações… feche a notificação para reiniciar",
"forward": "para frente", "forward": "Para frente",
"gap": "intervalo", "gap": "Intervalo",
"home": "início", "grouping": "Agrupamento",
"increase": "incrementar", "home": "Início",
"left": "esquerda", "increase": "Incrementar",
"limit": "limite", "left": "Esquerda",
"manage": "gerir", "limit": "Limite",
"maximize": "maximizar", "manage": "Gerir",
"menu": "menu", "maximize": "Maximizar",
"minimize": "minimizar", "menu": "Menu",
"modified": "modificado", "minimize": "Minimizar",
"modified": "Modificado",
"mbid": "ID no MusicBrainz", "mbid": "ID no MusicBrainz",
"name": "nome", "name": "Nome",
"no": "não", "no": "Não",
"none": "nenhum", "none": "Nenhum",
"noResultsFromQuery": "a consulta não retornou resultados", "noResultsFromQuery": "A consulta não retornou resultados",
"note": "observação", "note": "Observação",
"ok": "ok", "ok": "Ok",
"owner": "dono", "owner": "Dono",
"path": "caminho", "path": "Caminho",
"playerMustBePaused": "o player deve estar pausado", "playerMustBePaused": "O player deve estar pausado",
"preview": "pré-visualizar", "preview": "Pré-visualizar",
"previousSong": "anterior $t(entity.track, {\"count\": 1})", "previousSong": "Anterior $t(entity.track, {\"count\": 1})",
"quit": "sair", "quit": "Sair",
"random": "aleatório", "random": "Aleatório",
"rating": "classificação", "rating": "Classificação",
"refresh": "atualizar", "refresh": "Atualizar",
"reload": "recarregar", "reload": "Recarregar",
"reset": "reiniciar", "reset": "Reiniciar",
"resetToDefault": "restaurar ao padrão", "resetToDefault": "Restaurar ao padrão",
"restartRequired": "é necessário reiniciar", "restartRequired": "É necessário reiniciar",
"right": "direita", "right": "Direita",
"save": "gravar", "save": "Gravar",
"saveAndReplace": "gravar e substituir", "saveAndReplace": "Gravar e substituir",
"saveAs": "gravar como", "saveAs": "Gravar como",
"search": "procurar", "search": "Procurar",
"setting_one": "configuração", "setting_one": "Configuração",
"setting_many": "", "setting_many": "",
"setting_other": "", "setting_other": "",
"share": "partilhar", "share": "Partilhar",
"size": "tamanho", "size": "Tamanho",
"sortOrder": "ordem", "sortOrder": "Ordem",
"tags": "tags", "tags": "Tags",
"title": "titulo", "title": "Titulo",
"trackNumber": "faixa", "trackNumber": "Faixa",
"trackGain": "ganho da faixa", "trackGain": "Ganho da faixa",
"trackPeak": "pico da faixa", "trackPeak": "Pico da faixa",
"translation": "tradução", "translation": "Tradução",
"unknown": "desconhecido", "unknown": "Desconhecido",
"version": "versão", "version": "Versão",
"year": "ano", "year": "Ano",
"yes": "sim" "yes": "Sim"
}, },
"entity": { "entity": {
"album_one": "álbum", "album_one": "Álbum",
"album_many": "álbuns", "album_many": "álbuns",
"album_other": "álbuns", "album_other": "Álbuns",
"albumArtist_one": "artista do álbum", "albumArtist_one": "Artista do álbum",
"albumArtist_many": "artistas do álbum", "albumArtist_many": "artistas do álbum",
"albumArtist_other": "artistas do álbum", "albumArtist_other": "Artistas do álbum",
"albumArtistCount_one": "{{count}} artista do álbum", "albumArtistCount_one": "{{count}} artista do álbum",
"albumArtistCount_many": "{{count}} artistas do álbum", "albumArtistCount_many": "{{count}} artistas do álbum",
"albumArtistCount_other": "{{count}} artistas do álbum", "albumArtistCount_other": "{{count}} artistas do álbum",
"albumWithCount_one": "{{count}} álbum", "albumWithCount_one": "{{count}} álbum",
"albumWithCount_many": "{{count}} álbuns", "albumWithCount_many": "{{count}} álbuns",
"albumWithCount_other": "{{count}} álbuns", "albumWithCount_other": "{{count}} álbuns",
"artist_one": "artista", "artist_one": "Artista",
"artist_many": "artistas", "artist_many": "artistas",
"artist_other": "artistas", "artist_other": "Artistas",
"artistWithCount_one": "{{count}} artista", "artistWithCount_one": "{{count}} artista",
"artistWithCount_many": "{{count}} artistas", "artistWithCount_many": "{{count}} artistas",
"artistWithCount_other": "{{count}} artistas", "artistWithCount_other": "{{count}} artistas",
"favorite_one": "favorito", "favorite_one": "Favorito",
"favorite_many": "favoritos", "favorite_many": "favoritos",
"favorite_other": "favoritos", "favorite_other": "Favoritos",
"folder_one": "pasta", "folder_one": "Pasta",
"folder_many": "pastas", "folder_many": "pastas",
"folder_other": "pastas", "folder_other": "Pastas",
"folderWithCount_one": "{{count}} pasta", "folderWithCount_one": "{{count}} pasta",
"folderWithCount_many": "{{count}} pastas", "folderWithCount_many": "{{count}} pastas",
"folderWithCount_other": "{{count}} pastas", "folderWithCount_other": "{{count}} pastas",
"genre_one": "gênero", "genre_one": "Gênero",
"genre_many": "gêneros", "genre_many": "gêneros",
"genre_other": "gêneros", "genre_other": "Gêneros",
"genreWithCount_one": "{{count}} gênero", "genreWithCount_one": "{{count}} gênero",
"genreWithCount_many": "{{count}} gêneros", "genreWithCount_many": "{{count}} gêneros",
"genreWithCount_other": "{{count}} gêneros", "genreWithCount_other": "{{count}} gêneros",
"playlist_one": "playlist", "playlist_one": "Playlist",
"playlist_many": "playlists", "playlist_many": "playlists",
"playlist_other": "playlists", "playlist_other": "Playlists",
"play_one": "{{count}} reprodução", "play_one": "{{count}} reprodução",
"play_many": "{{count}} reproduções", "play_many": "{{count}} reproduções",
"play_other": "{{count}} reproduções", "play_other": "{{count}} reproduções",
@@ -167,189 +168,189 @@
"playlistWithCount_many": "{{count}} playlists", "playlistWithCount_many": "{{count}} playlists",
"playlistWithCount_other": "{{count}} playlists", "playlistWithCount_other": "{{count}} playlists",
"smartPlaylist": "$t(entity.playlist, {\"count\": 1}) inteligente", "smartPlaylist": "$t(entity.playlist, {\"count\": 1}) inteligente",
"track_one": "faixa", "track_one": "Faixa",
"track_many": "faixas", "track_many": "faixas",
"track_other": "faixas", "track_other": "Faixas",
"song_one": "música", "song_one": "Música",
"song_many": "músicas", "song_many": "músicas",
"song_other": "músicas", "song_other": "Músicas",
"trackWithCount_one": "{{count}} faixa", "trackWithCount_one": "{{count}} faixa",
"trackWithCount_many": "{{count}} faixas", "trackWithCount_many": "{{count}} faixas",
"trackWithCount_other": "{{count}} faixas" "trackWithCount_other": "{{count}} faixas"
}, },
"error": { "error": {
"apiRouteError": "não é possível encaminhar a solicitação", "apiRouteError": "Não é possível encaminhar a solicitação",
"audioDeviceFetchError": "ocorreu um erro ao tentar obter dispositivos de áudio", "audioDeviceFetchError": "Ocorreu um erro ao tentar obter dispositivos de áudio",
"authenticationFailed": "falha na autenticação", "authenticationFailed": "Falha na autenticação",
"badAlbum": "está a ver este erro por que está música não é parte de algum album. um motivo comum para si estar a ver este erro é se a sua música estiver na raiz da sua pasta de músicas. o Jellyfin apenas agrupa as músicas se elas estiveram na mesma pasta", "badAlbum": "Está a ver este erro por que está música não é parte de algum album. um motivo comum para si estar a ver este erro é se a sua música estiver na raiz da sua pasta de músicas. o Jellyfin apenas agrupa as músicas se elas estiveram na mesma pasta",
"badValue": "opção inválida \"{{value}}\". este valor não existe no momento", "badValue": "Opção inválida \"{{value}}\". este valor não existe no momento",
"credentialsRequired": "credenciais necessárias", "credentialsRequired": "Credenciais necessárias",
"endpointNotImplementedError": "endpoint {{endpoint}} não está implementado para {{serverType}}", "endpointNotImplementedError": "Endpoint {{endpoint}} não está implementado para {{serverType}}",
"genericError": "um erro ocorreu", "genericError": "Um erro ocorreu",
"invalidServer": "servidor inválido", "invalidServer": "Servidor inválido",
"localFontAccessDenied": "acesso a fontes locais rejeitado", "localFontAccessDenied": "Acesso a fontes locais rejeitado",
"loginRateError": "muitas tentativas de login, tente novamente em alguns segundos", "loginRateError": "Muitas tentativas de login, tente novamente em alguns segundos",
"mpvRequired": "MPV necessário", "mpvRequired": "MPV necessário",
"networkError": "ocorreu um erro na internet", "networkError": "Ocorreu um erro na internet",
"openError": "não foi possível abrir o ficheiro", "openError": "Não foi possível abrir o ficheiro",
"playbackError": "ocorreu um erro ao tentar reproduzir a média", "playbackError": "Ocorreu um erro ao tentar reproduzir a média",
"remoteDisableError": "ocorreu um erro ao tentar $t(common.disable) o servidor remoto", "remoteDisableError": "Ocorreu um erro ao tentar $t(common.disable) o servidor remoto",
"remoteEnableError": "ocorreu um erro ao tentar $t(common.enable) o servidor remoto", "remoteEnableError": "Ocorreu um erro ao tentar $t(common.enable) o servidor remoto",
"remotePortError": "ocorreu um erro ao tentar definir a porta do servidor remoto", "remotePortError": "Ocorreu um erro ao tentar definir a porta do servidor remoto",
"remotePortWarning": "reinicie o servidor para aplicar a nova porta", "remotePortWarning": "Reinicie o servidor para aplicar a nova porta",
"serverNotSelectedError": "nenhum servidor selecionado", "serverNotSelectedError": "Nenhum servidor selecionado",
"serverRequired": "servidor necessário", "serverRequired": "Servidor necessário",
"sessionExpiredError": "a sua sessão expirou", "sessionExpiredError": "A sua sessão expirou",
"systemFontError": "ocorreu um erro ao tentar obter fontes do sistema" "systemFontError": "Ocorreu um erro ao tentar obter fontes do sistema"
}, },
"filter": { "filter": {
"album": "$t(entity.album, {\"count\": 1})", "album": "$t(entity.album, {\"count\": 1})",
"albumArtist": "$t(entity.albumArtist, {\"count\": 1})", "albumArtist": "$t(entity.albumArtist, {\"count\": 1})",
"albumCount": "número de $t(entity.album, {\"count\": 2})", "albumCount": "Número de $t(entity.album, {\"count\": 2})",
"artist": "$t(entity.artist, {\"count\": 1})", "artist": "$t(entity.artist, {\"count\": 1})",
"biography": "bibliografia", "biography": "Bibliografia",
"bitrate": "bitrate", "bitrate": "Bitrate",
"bpm": "bpm", "bpm": "Bpm",
"channels": "$t(common.channel_other)", "channels": "$t(common.channel_other)",
"comment": "comentário", "comment": "Comentário",
"communityRating": "Nota da comunidade", "communityRating": "Nota da comunidade",
"criticRating": "avaliação da crítica", "criticRating": "Avaliação da crítica",
"dateAdded": "data de adição", "dateAdded": "Data de adição",
"disc": "disco", "disc": "Disco",
"duration": "duração", "duration": "Duração",
"favorited": "favoritado", "favorited": "Favoritado",
"fromYear": "a partir do ano", "fromYear": "A partir do ano",
"genre": "$t(entity.genre, {\"count\": 1})", "genre": "$t(entity.genre, {\"count\": 1})",
"id": "id", "id": "Id",
"isCompilation": "é compilação", "isCompilation": "É compilação",
"isFavorited": "é favoritado", "isFavorited": "É favoritado",
"isPublic": "é público", "isPublic": "É público",
"isRated": "possui avaliação", "isRated": "Possui avaliação",
"isRecentlyPlayed": "foi tocado recentemente", "isRecentlyPlayed": "Foi tocado recentemente",
"lastPlayed": "última tocada", "lastPlayed": "Última tocada",
"mostPlayed": "mais tocado", "mostPlayed": "Mais tocado",
"name": "nome", "name": "Nome",
"note": "nota", "note": "Nota",
"owner": "$t(common.owner)", "owner": "$t(common.owner)",
"path": "caminho", "path": "Caminho",
"playCount": "contador de reproduções", "playCount": "Contador de reproduções",
"random": "aleatório", "random": "Aleatório",
"rating": "avaliação", "rating": "Avaliação",
"recentlyAdded": "adicionado recentemente", "recentlyAdded": "Adicionado recentemente",
"recentlyPlayed": "tocado recentemente", "recentlyPlayed": "Tocado recentemente",
"recentlyUpdated": "atualizado recentemente", "recentlyUpdated": "Atualizado recentemente",
"releaseDate": "data de lançamento", "releaseDate": "Data de lançamento",
"releaseYear": "ano de lançamento", "releaseYear": "Ano de lançamento",
"search": "buscar", "search": "Buscar",
"songCount": "contador de músicas", "songCount": "Contador de músicas",
"title": "titulo", "title": "Titulo",
"toYear": "até o ano", "toYear": "Até o ano",
"trackNumber": "faixa" "trackNumber": "Faixa"
}, },
"form": { "form": {
"addServer": { "addServer": {
"error_savePassword": "um erro ocorreu ao tentar gravar a palavra-passe", "error_savePassword": "Um erro ocorreu ao tentar gravar a palavra-passe",
"ignoreCors": "ignorar CORS ($t(common.restartRequired))", "ignoreCors": "Ignorar CORS ($t(common.restartRequired))",
"ignoreSsl": "ignorar ssl ($t(common.restartRequired))", "ignoreSsl": "Ignorar ssl ($t(common.restartRequired))",
"input_legacyAuthentication": "ativar autenticação legada", "input_legacyAuthentication": "Ativar autenticação legada",
"input_name": "nome do servidor", "input_name": "Nome do servidor",
"input_password": "palavra-passe", "input_password": "Palavra-passe",
"input_savePassword": "gravar palavra-passe", "input_savePassword": "Gravar palavra-passe",
"input_url": "url", "input_url": "Url",
"input_username": "nome de utilizador", "input_username": "Nome de utilizador",
"success": "servidor adicionado com sucesso", "success": "Servidor adicionado com sucesso",
"title": "adicionar servidor" "title": "Adicionar servidor"
}, },
"addToPlaylist": { "addToPlaylist": {
"input_playlists": "$t(entity.playlist, {\"count\": 2})", "input_playlists": "$t(entity.playlist, {\"count\": 2})",
"input_skipDuplicates": "pular duplicadas", "input_skipDuplicates": "Pular duplicadas",
"success": "adicionado $t(entity.trackWithCount, {\"count\": {{message}} }) para $t(entity.playlistWithCount, {\"count\": {{numOfPlaylists}} })", "success": "Adicionado $t(entity.trackWithCount, {\"count\": {{message}} }) para $t(entity.playlistWithCount, {\"count\": {{numOfPlaylists}} })",
"title": "adicionar à $t(entity.playlist, {\"count\": 1})" "title": "Adicionar à $t(entity.playlist, {\"count\": 1})"
}, },
"createPlaylist": { "createPlaylist": {
"input_description": "$t(common.description)", "input_description": "$t(common.description)",
"input_name": "$t(common.name)", "input_name": "$t(common.name)",
"input_owner": "$t(common.owner)", "input_owner": "$t(common.owner)",
"input_public": "público", "input_public": "Público",
"success": "$t(entity.playlist, {\"count\": 1}) criada com sucesso", "success": "$t(entity.playlist, {\"count\": 1}) criada com sucesso",
"title": "criar $t(entity.playlist, {\"count\": 1})" "title": "Criar $t(entity.playlist, {\"count\": 1})"
}, },
"deletePlaylist": { "deletePlaylist": {
"input_confirm": "escreva o nome da $t(entity.playlist, {\"count\": 1}) para confirmar", "input_confirm": "Escreva o nome da $t(entity.playlist, {\"count\": 1}) para confirmar",
"success": "$t(entity.playlist, {\"count\": 1}) apagada com sucesso", "success": "$t(entity.playlist, {\"count\": 1}) apagada com sucesso",
"title": "apagar $t(entity.playlist, {\"count\": 1})" "title": "Apagar $t(entity.playlist, {\"count\": 1})"
}, },
"editPlaylist": { "editPlaylist": {
"publicJellyfinNote": "O Jellyfin por algum motivo não expõe se uma playlist é pública ou não. Se deseja que ela permaneça pública, por favor selecione a seguinte entrada", "publicJellyfinNote": "O Jellyfin por algum motivo não expõe se uma playlist é pública ou não. Se deseja que ela permaneça pública, por favor selecione a seguinte entrada",
"success": "$t(entity.playlist, {\"count\": 1}) atualizada com sucesso", "success": "$t(entity.playlist, {\"count\": 1}) atualizada com sucesso",
"title": "editar $t(entity.playlist, {\"count\": 1})" "title": "Editar $t(entity.playlist, {\"count\": 1})"
}, },
"lyricSearch": { "lyricSearch": {
"input_artist": "$t(entity.artist, {\"count\": 1})", "input_artist": "$t(entity.artist, {\"count\": 1})",
"input_name": "$t(common.name)", "input_name": "$t(common.name)",
"title": "pesquisa de letras" "title": "Pesquisa de letras"
}, },
"queryEditor": { "queryEditor": {
"input_optionMatchAll": "corresponder todos", "input_optionMatchAll": "Corresponder todos",
"input_optionMatchAny": "corresponder qualquer um" "input_optionMatchAny": "Corresponder qualquer um"
}, },
"shareItem": { "shareItem": {
"allowDownloading": "permitir descargas", "allowDownloading": "Permitir descargas",
"description": "descrição", "description": "Descrição",
"setExpiration": "definir expiração", "setExpiration": "Definir expiração",
"success": "ligação de compartilhamento copiado para a área de transferência (ou clique aqui para abrir)", "success": "Ligação de compartilhamento copiado para a área de transferência (ou clique aqui para abrir)",
"expireInvalid": "a expiração deve ser uma data futura", "expireInvalid": "A expiração deve ser uma data futura",
"createFailed": "falha ao criar compartilhamento (o compartilhamento está ativado?)" "createFailed": "Falha ao criar compartilhamento (o compartilhamento está ativado?)"
}, },
"updateServer": { "updateServer": {
"success": "servidor atualizado com sucesso", "success": "Servidor atualizado com sucesso",
"title": "atualizar servidor" "title": "Atualizar servidor"
} }
}, },
"page": { "page": {
"albumArtistDetail": { "albumArtistDetail": {
"about": "Sobre {{artist}}", "about": "Sobre {{artist}}",
"appearsOn": "aparece em", "appearsOn": "Aparece em",
"recentReleases": "lançamentos recentes", "recentReleases": "Lançamentos recentes",
"viewDiscography": "ver discografia", "viewDiscography": "Ver discografia",
"relatedArtists": "$t(entity.artist, {\"count\": 2}) relacionados", "relatedArtists": "$t(entity.artist, {\"count\": 2}) relacionados",
"topSongs": "músicas mais tocadas", "topSongs": "Músicas mais tocadas",
"topSongsFrom": "músicas mais tocadas de {{title}}", "topSongsFrom": "Músicas mais tocadas de {{title}}",
"viewAll": "ver tudo", "viewAll": "Ver tudo",
"viewAllTracks": "ver todas as $t(entity.track, {\"count\": 2})" "viewAllTracks": "Ver todas as $t(entity.track, {\"count\": 2})"
}, },
"albumArtistList": { "albumArtistList": {
"title": "$t(entity.albumArtist, {\"count\": 2})" "title": "$t(entity.albumArtist, {\"count\": 2})"
}, },
"albumDetail": { "albumDetail": {
"moreFromArtist": "mais deste $t(entity.artist, {\"count\": 1})", "moreFromArtist": "Mais deste $t(entity.artist, {\"count\": 1})",
"moreFromGeneric": "mais que {{item}}", "moreFromGeneric": "Mais que {{item}}",
"released": "lançado" "released": "Lançado"
}, },
"albumList": { "albumList": {
"artistAlbums": "álbuns de {{artist}}", "artistAlbums": "Álbuns de {{artist}}",
"genreAlbums": "\"{{genre}}\" $t(entity.album, {\"count\": 2})", "genreAlbums": "\"{{genre}}\" $t(entity.album, {\"count\": 2})",
"title": "$t(entity.album, {\"count\": 2})" "title": "$t(entity.album, {\"count\": 2})"
}, },
"appMenu": { "appMenu": {
"collapseSidebar": "recolher barra lateral", "collapseSidebar": "Recolher barra lateral",
"expandSidebar": "expandir barra lateral", "expandSidebar": "Expandir barra lateral",
"goBack": "voltar", "goBack": "Voltar",
"goForward": "avançar", "goForward": "Avançar",
"manageServers": "gerir servidores", "manageServers": "Gerir servidores",
"openBrowserDevtools": "abrir ferramentas do programador", "openBrowserDevtools": "Abrir ferramentas do programador",
"quit": "$t(common.quit)", "quit": "$t(common.quit)",
"selectServer": "selecionar servidor", "selectServer": "Selecionar servidor",
"settings": "$t(common.setting, {\"count\": 2})", "settings": "$t(common.setting, {\"count\": 2})",
"version": "versão {{version}}" "version": "Versão {{version}}"
}, },
"manageServers": { "manageServers": {
"title": "gerir servidores", "title": "Gerir servidores",
"serverDetails": "pormenores do servidor", "serverDetails": "Pormenores do servidor",
"url": "URL", "url": "URL",
"username": "nome de utilizador", "username": "Nome de utilizador",
"editServerDetailsTooltip": "editar pormenores do servidor", "editServerDetailsTooltip": "Editar pormenores do servidor",
"removeServer": "remover servidor" "removeServer": "Remover servidor"
}, },
"contextMenu": { "contextMenu": {
"addFavorite": "$t(action.addToFavorites)", "addFavorite": "$t(action.addToFavorites)",
@@ -360,7 +361,7 @@
"createPlaylist": "$t(action.createPlaylist)", "createPlaylist": "$t(action.createPlaylist)",
"deletePlaylist": "$t(action.deletePlaylist)", "deletePlaylist": "$t(action.deletePlaylist)",
"deselectAll": "$t(action.deselectAll)", "deselectAll": "$t(action.deselectAll)",
"download": "descarregar", "download": "Descarregar",
"moveToNext": "$t(action.moveToNext)", "moveToNext": "$t(action.moveToNext)",
"moveToBottom": "$t(action.moveToBottom)", "moveToBottom": "$t(action.moveToBottom)",
"moveToTop": "$t(action.moveToTop)", "moveToTop": "$t(action.moveToTop)",
@@ -372,69 +373,69 @@
"removeFromQueue": "$t(action.removeFromQueue)", "removeFromQueue": "$t(action.removeFromQueue)",
"setRating": "$t(action.setRating)", "setRating": "$t(action.setRating)",
"playShuffled": "$t(player.shuffle)", "playShuffled": "$t(player.shuffle)",
"shareItem": "partilhar elemento", "shareItem": "Partilhar elemento",
"showDetails": "obter informações" "showDetails": "Obter informações"
}, },
"fullscreenPlayer": { "fullscreenPlayer": {
"config": { "config": {
"dynamicBackground": "fundo dinâmico", "dynamicBackground": "Fundo dinâmico",
"dynamicImageBlur": "tamanho do desfoque da imagem", "dynamicImageBlur": "Tamanho do desfoque da imagem",
"dynamicIsImage": "ativar imagem de fundo", "dynamicIsImage": "Ativar imagem de fundo",
"followCurrentLyric": "acompanhar letra", "followCurrentLyric": "Acompanhar letra",
"lyricAlignment": "alinhamento da letra", "lyricAlignment": "Alinhamento da letra",
"lyricOffset": "deslocamento da letra (ms)", "lyricOffset": "Deslocamento da letra (ms)",
"lyricGap": "espaçamento da letra", "lyricGap": "Espaçamento da letra",
"lyricSize": "tamanho da letra", "lyricSize": "Tamanho da letra",
"opacity": "opacidade", "opacity": "Opacidade",
"showLyricMatch": "exibir correspondência da letra", "showLyricMatch": "Exibir correspondência da letra",
"showLyricProvider": "exibir origem da letra", "showLyricProvider": "Exibir origem da letra",
"synchronized": "sincronizado", "synchronized": "Sincronizado",
"unsynchronized": "não sincronizado", "unsynchronized": "Não sincronizado",
"useImageAspectRatio": "usar proporção da imagem" "useImageAspectRatio": "Usar proporção da imagem"
}, },
"lyrics": "letra", "lyrics": "Letra",
"related": "relacionado", "related": "Relacionado",
"upNext": "a seguir", "upNext": "A seguir",
"visualizer": "visualizador", "visualizer": "Visualizador",
"noLyrics": "nenhuma letra encontrada" "noLyrics": "Nenhuma letra encontrada"
}, },
"genreList": { "genreList": {
"showAlbums": "mostrar $t(entity.genre, {\"count\": 1}) $t(entity.album, {\"count\": 2})", "showAlbums": "Mostrar $t(entity.genre, {\"count\": 1}) $t(entity.album, {\"count\": 2})",
"showTracks": "mostrar $t(entity.genre, {\"count\": 1}) $t(entity.track, {\"count\": 2})", "showTracks": "Mostrar $t(entity.genre, {\"count\": 1}) $t(entity.track, {\"count\": 2})",
"title": "$t(entity.genre, {\"count\": 2})" "title": "$t(entity.genre, {\"count\": 2})"
}, },
"globalSearch": { "globalSearch": {
"commands": { "commands": {
"goToPage": "ir à página", "goToPage": "Ir à página",
"searchFor": "procurar {{query}}", "searchFor": "Procurar {{query}}",
"serverCommands": "comandos do servidor" "serverCommands": "Comandos do servidor"
}, },
"title": "comandos" "title": "Comandos"
}, },
"home": { "home": {
"explore": "explore a sua biblioteca", "explore": "Explore a sua biblioteca",
"mostPlayed": "mais tocado", "mostPlayed": "Mais tocado",
"newlyAdded": "lançamentos recém-adicionados", "newlyAdded": "Lançamentos recém-adicionados",
"recentlyPlayed": "tocado recentemente", "recentlyPlayed": "Tocado recentemente",
"title": "$t(common.home)" "title": "$t(common.home)"
}, },
"itemDetail": { "itemDetail": {
"copyPath": "copiar caminho para a área de transferência", "copyPath": "Copiar caminho para a área de transferência",
"copiedPath": "caminho copiado com sucesso", "copiedPath": "Caminho copiado com sucesso",
"openFile": "mostrar faixa no gestor de ficheiros" "openFile": "Mostrar faixa no gestor de ficheiros"
}, },
"playlist": { "playlist": {
"reorder": "reordenar apenas disponível quando ordenado pelo id" "reorder": "Reordenar apenas disponível quando ordenado pelo ID"
}, },
"playlistList": { "playlistList": {
"title": "$t(entity.playlist, {\"count\": 2})" "title": "$t(entity.playlist, {\"count\": 2})"
}, },
"setting": { "setting": {
"advanced": "avançado", "advanced": "Avançado",
"generalTab": "geral", "generalTab": "Geral",
"hotkeysTab": "teclas de atalho", "hotkeysTab": "Teclas de atalho",
"playbackTab": "reprodução", "playbackTab": "Reprodução",
"windowTab": "janela" "windowTab": "Janela"
}, },
"sidebar": { "sidebar": {
"albumArtists": "$t(entity.albumArtist, {\"count\": 2})", "albumArtists": "$t(entity.albumArtist, {\"count\": 2})",
@@ -443,8 +444,8 @@
"folders": "$t(entity.folder, {\"count\": 2})", "folders": "$t(entity.folder, {\"count\": 2})",
"genres": "$t(entity.genre, {\"count\": 2})", "genres": "$t(entity.genre, {\"count\": 2})",
"home": "$t(common.home)", "home": "$t(common.home)",
"myLibrary": "a minha biblioteca", "myLibrary": "A minha biblioteca",
"nowPlaying": "agora a tocar", "nowPlaying": "Agora a tocar",
"playlists": "$t(entity.playlist, {\"count\": 2})", "playlists": "$t(entity.playlist, {\"count\": 2})",
"search": "$t(common.search)", "search": "$t(common.search)",
"settings": "$t(common.setting, {\"count\": 2})", "settings": "$t(common.setting, {\"count\": 2})",
@@ -452,92 +453,92 @@
"tracks": "$t(entity.track, {\"count\": 2})" "tracks": "$t(entity.track, {\"count\": 2})"
}, },
"trackList": { "trackList": {
"artistTracks": "faixas de {{artist}}", "artistTracks": "Faixas de {{artist}}",
"genreTracks": "\"{{genre}}\" $t(entity.track, {\"count\": 2})", "genreTracks": "\"{{genre}}\" $t(entity.track, {\"count\": 2})",
"title": "$t(entity.track, {\"count\": 2})" "title": "$t(entity.track, {\"count\": 2})"
} }
}, },
"player": { "player": {
"addLast": "adicionar no final", "addLast": "Adicionar no final",
"addNext": "adicionar a seguir", "addNext": "Adicionar a seguir",
"favorite": "favorito", "favorite": "Favorito",
"mute": "mudo", "mute": "Mudo",
"muted": "mudo", "muted": "Mudo",
"next": "próximo", "next": "Próximo",
"play": "tocar", "play": "Tocar",
"playbackFetchCancel": "isto demora um pouco... feche a notificação para cancelar", "playbackFetchCancel": "Isto demora um pouco... feche a notificação para cancelar",
"playbackFetchInProgress": "a carregar músicas…", "playbackFetchInProgress": "A carregar músicas…",
"playbackFetchNoResults": "nenhuma música encontrada", "playbackFetchNoResults": "Nenhuma música encontrada",
"playbackSpeed": "velocidade de reprodução", "playbackSpeed": "Velocidade de reprodução",
"playRandom": "tocar aleatório", "playRandom": "Tocar aleatório",
"playSimilarSongs": "tocar músicas similares", "playSimilarSongs": "Tocar músicas similares",
"previous": "anterior", "previous": "Anterior",
"queue_clear": "limpar fila", "queue_clear": "Limpar fila",
"queue_moveToBottom": "mover selecionados para o topo", "queue_moveToBottom": "Mover selecionados para o fim",
"queue_moveToTop": "mover selecionados para o fim", "queue_moveToTop": "Mover selecionados para o topo",
"queue_remove": "remover selecionados", "queue_remove": "Remover selecionados",
"repeat": "repetir", "repeat": "Repetir",
"repeat_all": "repetir tudo", "repeat_all": "Repetir tudo",
"repeat_off": "repetição desativada", "repeat_off": "Repetição desativada",
"shuffle": "tocar aleatório", "shuffle": "Tocar aleatório",
"shuffle_off": "aleatório desativado", "shuffle_off": "Aleatório desativado",
"skip": "pular", "skip": "Pular",
"skip_back": "retroceder", "skip_back": "Retroceder",
"skip_forward": "avançar", "skip_forward": "Avançar",
"stop": "parar", "stop": "Parar",
"toggleFullscreenPlayer": "alternar player de ecrã cheio", "toggleFullscreenPlayer": "Alternar player de ecrã cheio",
"unfavorite": "remover favorito", "unfavorite": "Remover favorito",
"pause": "pausar", "pause": "Pausar",
"viewQueue": "ver fila" "viewQueue": "Ver fila"
}, },
"setting": { "setting": {
"accentColor": "cor de realce", "accentColor": "Cor de realce",
"accentColor_description": "define a cor de realce para a aplicação", "accentColor_description": "Define a cor de realce para a aplicação",
"albumBackground": "imagem de fundo do álbum", "albumBackground": "Imagem de fundo do álbum",
"albumBackground_description": "adiciona uma imagem de fundo contendo a arte do álbum para a página de álbum", "albumBackground_description": "Adiciona uma imagem de fundo contendo a arte do álbum para a página de álbum",
"albumBackgroundBlur": "tamanho de desfoque da imagem de fundo do álbum", "albumBackgroundBlur": "Tamanho de desfoque da imagem de fundo do álbum",
"albumBackgroundBlur_description": "ajusta a quantidade de desfoque aplicada para a imagem de fundo do álbum", "albumBackgroundBlur_description": "Ajusta a quantidade de desfoque aplicada para a imagem de fundo do álbum",
"applicationHotkeys": "teclas de atalho da aplicação", "applicationHotkeys": "Teclas de atalho da aplicação",
"applicationHotkeys_description": "configure as teclas de atalho da aplicação. clique na caixa de seleção para definir como tecla de atalho global (somente desktop)", "applicationHotkeys_description": "Configure as teclas de atalho da aplicação. clique na caixa de seleção para definir como tecla de atalho global (somente desktop)",
"artistConfiguration": "configuração da página de artista de álbum", "artistConfiguration": "Configuração da página de artista de álbum",
"artistConfiguration_description": "configure quais elementos serão mostrados, e em qual ordem, na página de artista de álbum", "artistConfiguration_description": "Configure quais elementos serão mostrados, e em qual ordem, na página de artista de álbum",
"audioDevice": "dispositivo de áudio", "audioDevice": "Dispositivo de áudio",
"audioDevice_description": "selecione o dispositivo de áudio usado para reprodução (somente player web)", "audioDevice_description": "Selecione o dispositivo de áudio usado para reprodução (somente player web)",
"audioExclusiveMode": "modo de áudio exclusivo", "audioExclusiveMode": "Modo de áudio exclusivo",
"audioExclusiveMode_description": "ativar modo de saída exclusiva. Neste modo, o sistema é geralmente bloqueado, e apenas mpv terá saída de áudio", "audioExclusiveMode_description": "Ativar modo de saída exclusiva. Neste modo, o sistema é geralmente bloqueado, e apenas mpv terá saída de áudio",
"audioPlayer": "player de áudio", "audioPlayer": "Player de áudio",
"audioPlayer_description": "selecione o player de áudio usado para reprodução", "audioPlayer_description": "Selecione o player de áudio usado para reprodução",
"buttonSize": "tamanho do botão da barra de reprodução", "buttonSize": "Tamanho do botão da barra de reprodução",
"buttonSize_description": "o tamanho dos botões da barra de reprodução", "buttonSize_description": "O tamanho dos botões da barra de reprodução",
"clearCache": "limpar cache do navegador", "clearCache": "Limpar cache do navegador",
"clearCache_description": "uma 'limpeza geral' do feishin. em adição a limpar o cache do feishin, limpa o cache do navegador (imagens gravadas e outros recursos). as credenciais de servidor e as configurações serão mantidas", "clearCache_description": "Uma 'limpeza geral' do Feishin. Em adição a limpar o cache do Feishin, limpa o cache do navegador (imagens gravadas e outros recursos). As credenciais de servidor e as configurações serão mantidas",
"clearQueryCache": "limpar cache do feishin", "clearQueryCache": "Limpar cache do Feishin",
"clearQueryCache_description": "uma 'limpeza leve' do feishin. isto irá renovar playlists, metadados de faixas, e resetar letras gravadas. as configurações, as credenciais de servidor e o cache de imagens serão mantidos", "clearQueryCache_description": "Uma 'limpeza leve' do Feishin. Isto irá renovar playlists, metadados de faixas, e resetar letras gravadas. As configurações, as credenciais de servidor e o cache de imagens serão mantidos",
"clearCacheSuccess": "cache limpo com sucesso", "clearCacheSuccess": "Cache limpo com sucesso",
"contextMenu": "configuração do menu de contexto (clique do botão direito do rato)", "contextMenu": "Configuração do menu de contexto (clique do botão direito do rato)",
"contextMenu_description": "permite esconder elementos exibidos no menu quando clica num elemento com o botão direito. elementos não selecionados serão escondidos", "contextMenu_description": "Permite esconder elementos exibidos no menu quando clica num elemento com o botão direito. elementos não selecionados serão escondidos",
"crossfadeDuration": "duraçao de crossfade", "crossfadeDuration": "Duraçao de crossfade",
"crossfadeDuration_description": "define a duração do efeito crossfade", "crossfadeDuration_description": "Define a duração do efeito crossfade",
"crossfadeStyle_description": "seleciona qual estilo de crossfade usado no player de áudio", "crossfadeStyle_description": "Seleciona qual estilo de crossfade usado no player de áudio",
"customCssEnable": "ativar css customizado", "customCssEnable": "Ativar CSS customizado",
"customCssEnable_description": "permite escrever css customizado", "customCssEnable_description": "Permite escrever CSS customizado",
"customCssNotice": "Aviso: apesar de existir alguma higienização (url() e content: não são permitidas), o uso de css personalizado ainda pode representar riscos ao alterar a interface", "customCssNotice": "Aviso: apesar de existir alguma higienização (URL() e content: não são permitidas), o uso de CSS personalizado ainda pode representar riscos ao alterar a interface",
"customCss": "css customizado", "customCss": "Css customizado",
"disableLibraryUpdateOnStartup": "desativar a verificação de novas versões na inicialização", "disableLibraryUpdateOnStartup": "Desativar a verificação de novas versões na inicialização",
"discordApplicationId": "{{discord}} ID da aplicação", "discordApplicationId": "{{discord}} ID da aplicação",
"discordIdleStatus_description": "quando ativado, atualiza o estado enquanto o player está ocioso", "discordIdleStatus_description": "Quando ativado, atualiza o estado enquanto o player está ocioso",
"discordUpdateInterval_description": "o tempo em segundos entre cada atualização (mínimo 15 segundos)", "discordUpdateInterval_description": "O tempo em segundos entre cada atualização (mínimo 15 segundos)",
"playButtonBehavior_description": "define o comportamento padrão do botão play ao adicionar músicas à fila" "playButtonBehavior_description": "Define o comportamento padrão do botão play ao adicionar músicas à fila"
}, },
"table": { "table": {
"column": { "column": {
"discNumber": "disco", "discNumber": "Disco",
"size": "$t(common.size)", "size": "$t(common.size)",
"title": "titulo" "title": "Titulo"
}, },
"config": { "config": {
"label": { "label": {
"discNumber": "numero do disco", "discNumber": "Numero do disco",
"titleCombined": "$t(common.title) (combinado)" "titleCombined": "$t(common.title) (combinado)"
} }
} }
+13 -13
View File
@@ -1,19 +1,19 @@
{ {
"common": { "common": {
"confirm": "confirmă", "confirm": "Confirmă",
"create": "creează", "create": "Creează",
"biography": "biografie", "biography": "Biografie",
"areYouSure": "ești sigur?", "areYouSure": "Ești sigur?",
"no": "nu", "no": "Nu",
"name": "nume", "name": "Nume",
"ok": "ok", "ok": "Ok",
"note": "notă", "note": "Notă",
"yes": "da", "yes": "Da",
"explicit": "explicit", "explicit": "Explicit",
"year": "an", "year": "An",
"menu": "meniu" "menu": "Meniu"
}, },
"filter": { "filter": {
"biography": "biografie" "biography": "Biografie"
} }
} }
+823 -727
View File
File diff suppressed because it is too large Load Diff
+579 -579
View File
File diff suppressed because it is too large Load Diff
+438 -438
View File
File diff suppressed because it is too large Load Diff
+421 -421
View File
File diff suppressed because it is too large Load Diff
+341 -341
View File
@@ -1,323 +1,323 @@
{ {
"action": { "action": {
"editPlaylist": "redigera $t(entity.playlist, {\"count\": 1})", "editPlaylist": "Redigera $t(entity.playlist, {\"count\": 1})",
"goToPage": "gå till sida", "goToPage": "Gå till sida",
"moveToTop": "flytta till toppen", "moveToTop": "Flytta till toppen",
"clearQueue": "rensa kö", "clearQueue": "Rensa kö",
"addToFavorites": "lägg till $t(entity.favorite, {\"count\": 2})", "addToFavorites": "Lägg till $t(entity.favorite, {\"count\": 2})",
"addToPlaylist": "lägg till $t(entity.playlist, {\"count\": 1})", "addToPlaylist": "Lägg till $t(entity.playlist, {\"count\": 1})",
"createPlaylist": "skapa $t(entity.playlist, {\"count\": 1})", "createPlaylist": "Skapa $t(entity.playlist, {\"count\": 1})",
"removeFromPlaylist": "ta bort från $t(entity.playlist, {\"count\": 1})", "removeFromPlaylist": "Ta bort från $t(entity.playlist, {\"count\": 1})",
"viewPlaylists": "visa $t(entity.playlist, {\"count\": 2})", "viewPlaylists": "Visa $t(entity.playlist, {\"count\": 2})",
"refresh": "$t(common.refresh)", "refresh": "$t(common.refresh)",
"deletePlaylist": "ta bort $t(entity.playlist, {\"count\": 1})", "deletePlaylist": "Ta bort $t(entity.playlist, {\"count\": 1})",
"removeFromQueue": "ta bort från kö", "removeFromQueue": "Ta bort från kö",
"deselectAll": "avmarkera alla", "deselectAll": "Avmarkera alla",
"moveToBottom": "flytta till botten", "moveToBottom": "Flytta till botten",
"setRating": "sätt betyg", "setRating": "Sätt betyg",
"toggleSmartPlaylistEditor": "växla $t(entity.smartPlaylist) redigerare", "toggleSmartPlaylistEditor": "Växla $t(entity.smartPlaylist) redigerare",
"removeFromFavorites": "ta bort från $t(entity.favorite, {\"count\": 2})", "removeFromFavorites": "Ta bort från $t(entity.favorite, {\"count\": 2})",
"downloadStarted": "startade nedladdning av {{count}} objekt", "downloadStarted": "Startade nedladdning av {{count}} objekt",
"moveToNext": "flytta till nästa", "moveToNext": "Flytta till nästa",
"moveUp": "flytta upp", "moveUp": "Flytta upp",
"moveDown": "flytta ner", "moveDown": "Flytta ner",
"holdToMoveToTop": "håll för att flytta till toppen", "holdToMoveToTop": "Håll för att flytta till toppen",
"holdToMoveToBottom": "håll för att flytta till botten", "holdToMoveToBottom": "Håll för att flytta till botten",
"moveItems": "flytta objekt", "moveItems": "Flytta objekt",
"shuffle": "slumpa", "shuffle": "Slumpa",
"shuffleAll": "slumpa alla", "shuffleAll": "Slumpa alla",
"shuffleSelected": "slumpa valda", "shuffleSelected": "Slumpa valda",
"viewMore": "visa mer", "viewMore": "Visa mer",
"openIn": { "openIn": {
"lastfm": "Öppna i Last.fm", "lastfm": "Öppna i Last.fm",
"musicbrainz": "Öppna i MusicBrainz" "musicbrainz": "Öppna i MusicBrainz"
}, },
"createRadioStation": "skapa $t(entity.radioStation, {\"count\": 1})", "createRadioStation": "Skapa $t(entity.radioStation, {\"count\": 1})",
"deleteRadioStation": "ta bort $t(entity.radioStation, {\"count\": 1})", "deleteRadioStation": "Ta bort $t(entity.radioStation, {\"count\": 1})",
"addOrRemoveFromSelection": "lägg till eller ta bort från markerade", "addOrRemoveFromSelection": "Lägg till eller ta bort från markerade",
"selectRangeOfItems": "välj en mängd objekt", "selectRangeOfItems": "Välj en mängd objekt",
"selectAll": "markera alla", "selectAll": "Markera alla",
"openApplicationDirectory": "öppna applikationskatalog" "openApplicationDirectory": "Öppna applikationskatalog"
}, },
"common": { "common": {
"backward": "bakåt", "backward": "Bakåt",
"increase": "öka", "increase": "Öka",
"rating": "betyg", "rating": "Betyg",
"bpm": "bpm", "bpm": "Bpm",
"refresh": "laddaom", "refresh": "Laddaom",
"unknown": "okänd", "unknown": "Okänd",
"areYouSure": "är du säker?", "areYouSure": "Är du säker?",
"edit": "redigera", "edit": "Redigera",
"favorite": "favorit", "favorite": "Favorit",
"left": "vänster", "left": "Vänster",
"save": "spara", "save": "Spara",
"right": "höger", "right": "Höger",
"currentSong": "aktuell $t(entity.track, {\"count\": 1})", "currentSong": "Aktuell $t(entity.track, {\"count\": 1})",
"collapse": "kollaps", "collapse": "Kollaps",
"trackNumber": "spår", "trackNumber": "Spår",
"descending": "fallande", "descending": "Fallande",
"add": "lägg till", "add": "Lägg till",
"gap": "avstånd", "gap": "Avstånd",
"ascending": "stigande", "ascending": "Stigande",
"dismiss": "avskeda", "dismiss": "Avskeda",
"year": "år", "year": "År",
"manage": "hantera", "manage": "Hantera",
"limit": "gräns", "limit": "Gräns",
"minimize": "minimera", "minimize": "Minimera",
"modified": "modifierad", "modified": "Modifierad",
"duration": "längd", "duration": "Längd",
"name": "namn", "name": "Namn",
"maximize": "maximera", "maximize": "Maximera",
"decrease": "minska", "decrease": "Minska",
"ok": "ok", "ok": "Ok",
"description": "beskrivning", "description": "Beskrivning",
"configure": "konfigurera", "configure": "Konfigurera",
"path": "sökväg", "path": "Sökväg",
"no": "nej", "no": "Nej",
"owner": "ägare", "owner": "Ägare",
"enable": "aktivera", "enable": "Aktivera",
"clear": "töm", "clear": "Töm",
"forward": "framåt", "forward": "Framåt",
"delete": "ta bort", "delete": "Ta bort",
"cancel": "avbryt", "cancel": "Avbryt",
"forceRestartRequired": "starta om för att tillämpa ändringar... Stäng meddelandet för att starta om", "forceRestartRequired": "Starta om för att tillämpa ändringar... Stäng meddelandet för att starta om",
"setting_one": "inställning", "setting_one": "Inställning",
"setting_other": "", "setting_other": "",
"version": "version", "version": "Version",
"title": "titel", "title": "Titel",
"filter_one": "filter", "filter_one": "Filter",
"filter_other": "filter", "filter_other": "Filter",
"filters": "filter", "filters": "Filter",
"create": "skapa", "create": "Skapa",
"bitrate": "bithastighet", "bitrate": "Bithastighet",
"saveAndReplace": "spara och skrivöver", "saveAndReplace": "Spara och skrivöver",
"action_one": "handling", "action_one": "Handling",
"action_other": "handlingar", "action_other": "Handlingar",
"playerMustBePaused": "spelaren måste pausas", "playerMustBePaused": "Spelaren måste pausas",
"confirm": "bekräfta", "confirm": "Bekräfta",
"resetToDefault": "återställ till standard", "resetToDefault": "Återställ till standard",
"home": "hem", "home": "Hem",
"comingSoon": "kommer snart…", "comingSoon": "Kommer snart…",
"reset": "nollställ", "reset": "Nollställ",
"channel_one": "kanal", "channel_one": "Kanal",
"channel_other": "kanaler", "channel_other": "Kanaler",
"disable": "inaktivera", "disable": "Inaktivera",
"sortOrder": "ordning", "sortOrder": "Ordning",
"none": "ingen", "none": "Ingen",
"menu": "meny", "menu": "Meny",
"restartRequired": "omstart krävs", "restartRequired": "Omstart krävs",
"previousSong": "föregående $t(entity.track, {\"count\": 1})", "previousSong": "Föregående $t(entity.track, {\"count\": 1})",
"noResultsFromQuery": "frågan returnerade inga resultat", "noResultsFromQuery": "Frågan returnerade inga resultat",
"quit": "avsluta", "quit": "Avsluta",
"expand": "expandera", "expand": "Expandera",
"search": "sök", "search": "Sök",
"saveAs": "spara som", "saveAs": "Spara som",
"disc": "skiva", "disc": "Skiva",
"yes": "ja", "yes": "Ja",
"random": "slumpmässig", "random": "Slumpmässig",
"size": "storlek", "size": "Storlek",
"biography": "biografi", "biography": "Biografi",
"note": "anteckning", "note": "Anteckning",
"center": "center", "center": "Center",
"explicitStatus": "olämplig status", "explicitStatus": "Olämplig status",
"additionalParticipants": "ytterligare medverkare", "additionalParticipants": "Ytterligare medverkare",
"newVersion": "en ny version har installerats {{version}}", "newVersion": "En ny version har installerats {{version}}",
"viewReleaseNotes": "se utgåveinformation", "viewReleaseNotes": "Se utgåveinformation",
"bitDepth": "bitdjup", "bitDepth": "Bitdjup",
"close": "stäng", "close": "Stäng",
"codec": "kodek", "codec": "Kodek",
"doNotShowAgain": "visa inte detta igen", "doNotShowAgain": "Visa inte detta igen",
"view": "visa", "view": "Visa",
"externalLinks": "externa länkar", "externalLinks": "Externa länkar",
"faster": "snabbare", "faster": "Snabbare",
"mbid": "MusicBrainz ID", "mbid": "MusicBrainz ID",
"noFilters": "inga filter konfigurerade", "noFilters": "Inga filter konfigurerade",
"preview": "förhandsvisa", "preview": "Förhandsvisa",
"private": "privat", "private": "Privat",
"public": "allmän", "public": "Allmän",
"recordLabel": "skivbolag", "recordLabel": "Skivbolag",
"releaseType": "utgåvetyp", "releaseType": "Utgåvetyp",
"reload": "ladda om", "reload": "Ladda om",
"sampleRate": "samplingstakt", "sampleRate": "Samplingstakt",
"slower": "långsammare", "slower": "Långsammare",
"share": "dela", "share": "Dela",
"sort": "sortera", "sort": "Sortera",
"tags": "taggar", "tags": "Taggar",
"translation": "översättning", "translation": "Översättning",
"explicit": "olämplig", "explicit": "Olämplig",
"clean": "städad", "clean": "Städad",
"gridRows": "rutnätsrader", "gridRows": "Rutnätsrader",
"tableColumns": "tabellkolumner", "tableColumns": "Tabellkolumner",
"itemsMore": "{{count}} fler", "itemsMore": "{{count}} fler",
"countSelected": "{{count}} markerade" "countSelected": "{{count}} markerade"
}, },
"error": { "error": {
"remotePortWarning": "starta om servern för att tillämpa den nya porten", "remotePortWarning": "Starta om servern för att tillämpa den nya porten",
"systemFontError": "ett fel uppstod vid försök att hämta systemteckensnitt", "systemFontError": "Ett fel uppstod vid försök att hämta systemteckensnitt",
"playbackError": "ett fel uppstod vid försök att spela upp media", "playbackError": "Ett fel uppstod vid försök att spela upp media",
"endpointNotImplementedError": "endpoint {{endpoint}} är inte implementerad för {{serverType}}", "endpointNotImplementedError": "Endpoint {{endpoint}} är inte implementerad för {{serverType}}",
"remotePortError": "ett fel uppstod vid försök att ange serverporten", "remotePortError": "Ett fel uppstod vid försök att ange serverporten",
"serverRequired": "server krävs", "serverRequired": "Server krävs",
"authenticationFailed": "autentiseringen misslyckades", "authenticationFailed": "Autentiseringen misslyckades",
"apiRouteError": "det går inte att dirigera begäran", "apiRouteError": "Det går inte att dirigera begäran",
"genericError": "ett fel uppstod", "genericError": "Ett fel uppstod",
"credentialsRequired": "autentiseringsuppgifter som krävs", "credentialsRequired": "Autentiseringsuppgifter som krävs",
"sessionExpiredError": "din session har löpt ut", "sessionExpiredError": "Din session har löpt ut",
"remoteEnableError": "Ett fel uppstod vid försök att $t(common.enable) servern", "remoteEnableError": "Ett fel uppstod vid försök att $t(common.enable) servern",
"localFontAccessDenied": "åtkomst nekad till lokala teckensnitt", "localFontAccessDenied": "Åtkomst nekad till lokala teckensnitt",
"serverNotSelectedError": "ingen server vald", "serverNotSelectedError": "Ingen server vald",
"remoteDisableError": "ett fel uppstod vid försök av $t(common.disable) servern", "remoteDisableError": "Ett fel uppstod vid försök av $t(common.disable) servern",
"mpvRequired": "MPV krävs", "mpvRequired": "MPV krävs",
"audioDeviceFetchError": "ett fel uppstod vid hämtning av ljudenheter", "audioDeviceFetchError": "Ett fel uppstod vid hämtning av ljudenheter",
"invalidServer": "ogiltig server", "invalidServer": "Ogiltig server",
"loginRateError": "för många inloggningsförsök, försök igen om några sekunder", "loginRateError": "För många inloggningsförsök, försök igen om några sekunder",
"badAlbum": "du ser denna sidan eftersom denna låten inte är en del av ett album. du ser troligtvis detta problemet för att du har en låt på toppnivån i din musikmapp. Jellyfin grupperar bara låtar om de finns i en mapp", "badAlbum": "Du ser denna sidan eftersom denna låten inte är en del av ett album. du ser troligtvis detta problemet för att du har en låt på toppnivån i din musikmapp. Jellyfin grupperar bara låtar om de finns i en mapp",
"badValue": "felaktigt alternativ \"{{value}}\". detta värde existerar inte längre", "badValue": "Felaktigt alternativ \"{{value}}\". detta värde existerar inte längre",
"multipleServerSaveQueueError": "spelningskön har en eller flera låtar som inte är från den nuvarande valda servern. detta är inte stöttat", "multipleServerSaveQueueError": "Spelningskön har en eller flera låtar som inte är från den nuvarande valda servern. detta är inte stöttat",
"networkError": "en nätverksfel uppstod", "networkError": "En nätverksfel uppstod",
"notificationDenied": "åtkomst till notifieringarna var nekad. inställningen har ingen verkan", "notificationDenied": "Åtkomst till notifieringarna var nekad. inställningen har ingen verkan",
"openError": "kunde inte öppna filen", "openError": "Kunde inte öppna filen",
"settingsSyncError": "diskrepans hittades mellan inställningarna för renderingsprocessen och huvudprocessen. starta om applikationen för att ändringarna ska tillämpas" "settingsSyncError": "Diskrepans hittades mellan inställningarna för renderingsprocessen och huvudprocessen. starta om applikationen för att ändringarna ska tillämpas"
}, },
"filter": { "filter": {
"mostPlayed": "mest spelade", "mostPlayed": "Mest spelade",
"comment": "kommentar", "comment": "Kommentar",
"playCount": "antal spelningar", "playCount": "Antal spelningar",
"recentlyUpdated": "nyligen uppdaterad", "recentlyUpdated": "Nyligen uppdaterad",
"channels": "$t(common.channel_other)", "channels": "$t(common.channel_other)",
"isCompilation": "är kompilering", "isCompilation": "Är kompilering",
"recentlyPlayed": "nyligen spelad", "recentlyPlayed": "Nyligen spelad",
"isRated": "är betygsatt", "isRated": "Är betygsatt",
"owner": "$t(common.owner)", "owner": "$t(common.owner)",
"title": "titel", "title": "Titel",
"rating": "betyg", "rating": "Betyg",
"search": "sök", "search": "Sök",
"bitrate": "bithastighet", "bitrate": "Bithastighet",
"genre": "$t(entity.genre, {\"count\": 1})", "genre": "$t(entity.genre, {\"count\": 1})",
"recentlyAdded": "nyligen tillagda", "recentlyAdded": "Nyligen tillagda",
"note": "anteckning", "note": "Anteckning",
"name": "namn", "name": "Namn",
"dateAdded": "datum tillagt", "dateAdded": "Datum tillagt",
"releaseDate": "utgivningsdag", "releaseDate": "Utgivningsdag",
"communityRating": "betyg från communityn", "communityRating": "Betyg från communityn",
"path": "sökväg", "path": "Sökväg",
"favorited": "favoritmärkt", "favorited": "Favoritmärkt",
"albumArtist": "$t(entity.albumArtist, {\"count\": 1})", "albumArtist": "$t(entity.albumArtist, {\"count\": 1})",
"isRecentlyPlayed": "spelas nyligen", "isRecentlyPlayed": "Spelas nyligen",
"isFavorited": "är favoritmärkt", "isFavorited": "Är favoritmärkt",
"bpm": "bpm", "bpm": "Bpm",
"releaseYear": "utgivningsår", "releaseYear": "Utgivningsår",
"id": "id", "id": "Id",
"disc": "skiva", "disc": "Skiva",
"biography": "biografi", "biography": "Biografi",
"artist": "$t(entity.artist, {\"count\": 1})", "artist": "$t(entity.artist, {\"count\": 1})",
"duration": "längd", "duration": "Längd",
"isPublic": "är offentlig", "isPublic": "Är offentlig",
"random": "slumpmässig", "random": "Slumpmässig",
"lastPlayed": "senast spelad", "lastPlayed": "Senast spelad",
"toYear": "till år", "toYear": "Till år",
"fromYear": "från år", "fromYear": "Från år",
"album": "$t(entity.album, {\"count\": 1})", "album": "$t(entity.album, {\"count\": 1})",
"trackNumber": "spår", "trackNumber": "Spår",
"songCount": "sångräkning", "songCount": "Sångräkning",
"criticRating": "kritikerbetyg", "criticRating": "Kritikerbetyg",
"albumCount": "$t(entity.album, {\"count\": 2}) antal", "albumCount": "$t(entity.album, {\"count\": 2}) antal",
"explicitStatus": "$t(common.explicitStatus)" "explicitStatus": "$t(common.explicitStatus)"
}, },
"form": { "form": {
"deletePlaylist": { "deletePlaylist": {
"title": "ta bort $t(entity.playlist, {\"count\": 1})", "title": "Ta bort $t(entity.playlist, {\"count\": 1})",
"success": "$t(entity.playlist, {\"count\": 1}) har tagits bort", "success": "$t(entity.playlist, {\"count\": 1}) har tagits bort",
"input_confirm": "Skriv namnet på $t(entity.playlist, {\"count\": 1}) för att bekräfta" "input_confirm": "Skriv namnet på $t(entity.playlist, {\"count\": 1}) för att bekräfta"
}, },
"createPlaylist": { "createPlaylist": {
"input_description": "$t(common.description)", "input_description": "$t(common.description)",
"title": "skapa $t(entity.playlist, {\"count\": 1})", "title": "Skapa $t(entity.playlist, {\"count\": 1})",
"input_public": "offentlig", "input_public": "Offentlig",
"input_name": "$t(common.name)", "input_name": "$t(common.name)",
"success": "$t(entity.playlist, {\"count\": 1}) skapad", "success": "$t(entity.playlist, {\"count\": 1}) skapad",
"input_owner": "$t(common.owner)" "input_owner": "$t(common.owner)"
}, },
"addServer": { "addServer": {
"title": "lägg till server", "title": "Lägg till server",
"input_username": "användarnamn", "input_username": "Användarnamn",
"input_url": "länk", "input_url": "Länk",
"input_password": "lösenord", "input_password": "Lösenord",
"input_legacyAuthentication": "aktivera äldre autentisering", "input_legacyAuthentication": "Aktivera äldre autentisering",
"input_name": "server namn", "input_name": "Server namn",
"success": "servern har lagts till", "success": "Servern har lagts till",
"input_savePassword": "spara lösenord", "input_savePassword": "Spara lösenord",
"ignoreSsl": "ignorera ssl ($t(common.restartRequired))", "ignoreSsl": "Ignorera ssl ($t(common.restartRequired))",
"ignoreCors": "ignorera cors ($t(common.restartRequired))", "ignoreCors": "Ignorera cors ($t(common.restartRequired))",
"error_savePassword": "ett fel uppstod när lösenordet skulle sparas", "error_savePassword": "Ett fel uppstod när lösenordet skulle sparas",
"input_preferInstantMix": "föredra instant mixning", "input_preferInstantMix": "Föredra instant mixning",
"input_preferInstantMixDescription": "använd bara instant mixning för att få liknande låtar. användbar om du har plugin för att förändra detta beteendet" "input_preferInstantMixDescription": "Använd bara instant mixning för att få liknande låtar. användbar om du har plugin för att förändra detta beteendet"
}, },
"addToPlaylist": { "addToPlaylist": {
"success": "lade till $t(entity.trackWithCount, {\"count\": {{message}} }) till $t(entity.playlistWithCount, {\"count\": {{numOfPlaylists}} })", "success": "Lade till $t(entity.trackWithCount, {\"count\": {{message}} }) till $t(entity.playlistWithCount, {\"count\": {{numOfPlaylists}} })",
"title": "lägg till i $t(entity.playlist, {\"count\": 1})", "title": "Lägg till i $t(entity.playlist, {\"count\": 1})",
"input_skipDuplicates": "hoppa över dubbletter", "input_skipDuplicates": "Hoppa över dubbletter",
"input_playlists": "$t(entity.playlist, {\"count\": 2})", "input_playlists": "$t(entity.playlist, {\"count\": 2})",
"create": "skapa $t(entity.playlist, {\"count\": 1}) {{playlist}}", "create": "Skapa $t(entity.playlist, {\"count\": 1}) {{playlist}}",
"searchOrCreate": "sök $t(entity.playlist, {\"count\": 2}) eller skriv för att skapa en ny" "searchOrCreate": "Sök $t(entity.playlist, {\"count\": 2}) eller skriv för att skapa en ny"
}, },
"updateServer": { "updateServer": {
"title": "uppdatera server", "title": "Uppdatera server",
"success": "servern har uppdaterats" "success": "Servern har uppdaterats"
}, },
"queryEditor": { "queryEditor": {
"input_optionMatchAll": "matcha alla", "input_optionMatchAll": "Matcha alla",
"input_optionMatchAny": "matcha något" "input_optionMatchAny": "Matcha något"
}, },
"lyricSearch": { "lyricSearch": {
"input_name": "$t(common.name)", "input_name": "$t(common.name)",
"input_artist": "$t(entity.artist, {\"count\": 1})", "input_artist": "$t(entity.artist, {\"count\": 1})",
"title": "sångtext sök" "title": "Sångtext sök"
}, },
"editPlaylist": { "editPlaylist": {
"title": "redigera $t(entity.playlist, {\"count\": 1})", "title": "Redigera $t(entity.playlist, {\"count\": 1})",
"publicJellyfinNote": "Jellyfin visar av någon anledning inte om en spellista är publik eller inte. Om du önskar att denna ska förbli publik, så får du ha följande indata markerade" "publicJellyfinNote": "Jellyfin visar av någon anledning inte om en spellista är publik eller inte. Om du önskar att denna ska förbli publik, så får du ha följande indata markerade"
}, },
"largeFetchConfirmation": { "largeFetchConfirmation": {
"title": "lägg till objekt till kön", "title": "Lägg till objekt till kön",
"description": "Åtgärden kommer att lägga till alla objekt till den nuvarande filtrerade vyn" "description": "Åtgärden kommer att lägga till alla objekt till den nuvarande filtrerade vyn"
}, },
"createRadioStation": { "createRadioStation": {
"success": "radiostation skapades", "success": "Radiostation skapades",
"title": "skapa radiostation", "title": "Skapa radiostation",
"input_homepageUrl": "hemside-URL", "input_homepageUrl": "Hemside-URL",
"input_name": "namn", "input_name": "Namn",
"input_streamUrl": "stream url" "input_streamUrl": "Stream url"
} }
}, },
"page": { "page": {
"fullscreenPlayer": { "fullscreenPlayer": {
"config": { "config": {
"showLyricMatch": "Visa låttext matchning", "showLyricMatch": "Visa låttext matchning",
"dynamicBackground": "dynamisk bakgrund", "dynamicBackground": "Dynamisk bakgrund",
"followCurrentLyric": "följ aktuell låttext", "followCurrentLyric": "Följ aktuell låttext",
"opacity": "ogenomskinlighet", "opacity": "Ogenomskinlighet",
"lyricSize": "låttext storlek", "lyricSize": "Låttext storlek",
"lyricAlignment": "låttext justering", "lyricAlignment": "Låttext justering",
"lyricGap": "låttext mellanrum", "lyricGap": "Låttext mellanrum",
"synchronized": "synkroniserad", "synchronized": "Synkroniserad",
"showLyricProvider": "visa sångtextleverantör", "showLyricProvider": "Visa sångtextleverantör",
"unsynchronized": "osynkroniserad" "unsynchronized": "Osynkroniserad"
}, },
"lyrics": "sångtext", "lyrics": "Sångtext",
"related": "relaterad" "related": "Relaterad"
}, },
"appMenu": { "appMenu": {
"selectServer": "välj server", "selectServer": "Välj server",
"version": "version {{version}}", "version": "Version {{version}}",
"settings": "$t(common.setting, {\"count\": 2})", "settings": "$t(common.setting, {\"count\": 2})",
"manageServers": "hantera servrar", "manageServers": "Hantera servrar",
"expandSidebar": "expandera sidofältet", "expandSidebar": "Expandera sidofältet",
"openBrowserDevtools": "öppna webbläsarens utvecklingsverktyg", "openBrowserDevtools": "Öppna webbläsarens utvecklingsverktyg",
"quit": "$t(common.quit)", "quit": "$t(common.quit)",
"goBack": "gå tillbaka", "goBack": "Gå tillbaka",
"goForward": "gå framåt", "goForward": "Gå framåt",
"collapseSidebar": "växla sidofältet" "collapseSidebar": "Växla sidofältet"
}, },
"contextMenu": { "contextMenu": {
"addToPlaylist": "$t(action.addToPlaylist)", "addToPlaylist": "$t(action.addToPlaylist)",
@@ -336,20 +336,20 @@
"play": "$t(player.play)", "play": "$t(player.play)",
"numberSelected": "{{count}} vald", "numberSelected": "{{count}} vald",
"removeFromQueue": "$t(action.removeFromQueue)", "removeFromQueue": "$t(action.removeFromQueue)",
"download": "ladda ner", "download": "Ladda ner",
"moveItems": "$t(action.moveItems)", "moveItems": "$t(action.moveItems)",
"moveToNext": "$t(action.moveToNext)", "moveToNext": "$t(action.moveToNext)",
"playSimilarSongs": "$t(player.playSimilarSongs)", "playSimilarSongs": "$t(player.playSimilarSongs)",
"playShuffled": "$t(player.shuffle)", "playShuffled": "$t(player.shuffle)",
"shareItem": "dela objekt", "shareItem": "Dela objekt",
"goTo": "gå till", "goTo": "Gå till",
"goToAlbum": "gå till $t(entity.album, {\"count\": 1})", "goToAlbum": "Gå till $t(entity.album, {\"count\": 1})",
"goToAlbumArtist": "gå till $t(entity.albumArtist, {\"count\": 1})", "goToAlbumArtist": "Gå till $t(entity.albumArtist, {\"count\": 1})",
"showDetails": "hämta information" "showDetails": "Hämta information"
}, },
"albumDetail": { "albumDetail": {
"moreFromArtist": "mer från $t(entity.artist, {\"count\": 1})", "moreFromArtist": "Mer från $t(entity.artist, {\"count\": 1})",
"moreFromGeneric": "mer från {{item}}" "moreFromGeneric": "Mer från {{item}}"
}, },
"albumArtistList": { "albumArtistList": {
"title": "$t(entity.albumArtist, {\"count\": 2})" "title": "$t(entity.albumArtist, {\"count\": 2})"
@@ -358,124 +358,124 @@
"title": "$t(entity.album, {\"count\": 2})" "title": "$t(entity.album, {\"count\": 2})"
}, },
"sidebar": { "sidebar": {
"nowPlaying": "nu spelas" "nowPlaying": "Nu spelas"
}, },
"home": { "home": {
"mostPlayed": "mest spelade", "mostPlayed": "Mest spelade",
"newlyAdded": "nytillkomna utgåvor", "newlyAdded": "Nytillkomna utgåvor",
"explore": "utforska från ditt bibliotek", "explore": "Utforska från ditt bibliotek",
"recentlyPlayed": "nyligen spelat" "recentlyPlayed": "Nyligen spelat"
}, },
"setting": { "setting": {
"playbackTab": "uppspelning", "playbackTab": "Uppspelning",
"generalTab": "allmänt", "generalTab": "Allmänt",
"hotkeysTab": "snabbtangenter", "hotkeysTab": "Snabbtangenter",
"windowTab": "fönster" "windowTab": "Fönster"
}, },
"globalSearch": { "globalSearch": {
"commands": { "commands": {
"serverCommands": "serverkommandon", "serverCommands": "Serverkommandon",
"goToPage": "gå till sidan", "goToPage": "Gå till sidan",
"searchFor": "sök efter {{query}}" "searchFor": "Sök efter {{query}}"
}, },
"title": "kommandon" "title": "Kommandon"
}, },
"manageServers": { "manageServers": {
"url": "URL", "url": "URL",
"username": "användarnamn", "username": "Användarnamn",
"editServerDetailsTooltip": "redigera serverinställningar", "editServerDetailsTooltip": "Redigera serverinställningar",
"removeServer": "ta bort server" "removeServer": "Ta bort server"
} }
}, },
"entity": { "entity": {
"playlist_one": "spellista", "playlist_one": "Spellista",
"playlist_other": "spellistor", "playlist_other": "Spellistor",
"artist_one": "artist", "artist_one": "Artist",
"artist_other": "artister", "artist_other": "Artister",
"albumArtist_one": "albumartist", "albumArtist_one": "Albumartist",
"albumArtist_other": "albumartister", "albumArtist_other": "Albumartister",
"albumArtistCount_one": "{{count}} Albumartist", "albumArtistCount_one": "{{count}} albumartist",
"albumArtistCount_other": "{{count}} Albumartister", "albumArtistCount_other": "{{count}} albumartister",
"albumWithCount_one": "{{count}} album", "albumWithCount_one": "{{count}} album",
"albumWithCount_other": "{{count}} album", "albumWithCount_other": "{{count}} album",
"favorite_one": "favorit", "favorite_one": "Favorit",
"favorite_other": "favoriter", "favorite_other": "Favoriter",
"folder_one": "mapp", "folder_one": "Mapp",
"folder_other": "mappar", "folder_other": "Mappar",
"album_one": "album", "album_one": "Album",
"album_other": "album", "album_other": "Album",
"playlistWithCount_one": "{{count}} spellista", "playlistWithCount_one": "{{count}} spellista",
"playlistWithCount_other": "{{count}} spellistor", "playlistWithCount_other": "{{count}} spellistor",
"folderWithCount_one": "{{count}} mapp", "folderWithCount_one": "{{count}} mapp",
"folderWithCount_other": "{{count}} mappar", "folderWithCount_other": "{{count}} mappar",
"track_one": "spår", "track_one": "Spår",
"track_other": "spår", "track_other": "Spår",
"trackWithCount_one": "{{count}} spår", "trackWithCount_one": "{{count}} spår",
"trackWithCount_other": "{{count}} spår", "trackWithCount_other": "{{count}} spår",
"artistWithCount_one": "{{count}} artist", "artistWithCount_one": "{{count}} artist",
"artistWithCount_other": "{{count}} artister", "artistWithCount_other": "{{count}} artister",
"genre_one": "genre", "genre_one": "Genre",
"genre_other": "genrer", "genre_other": "Genrer",
"genreWithCount_one": "{{count}} genre", "genreWithCount_one": "{{count}} genre",
"genreWithCount_other": "{{count}} genrer", "genreWithCount_other": "{{count}} genrer",
"play_one": "{{count}} spelning", "play_one": "{{count}} spelning",
"play_other": "{{count}} spelningar", "play_other": "{{count}} spelningar",
"smartPlaylist": "smart $t(entity.playlist, {\"count\": 1})", "smartPlaylist": "Smart $t(entity.playlist, {\"count\": 1})",
"song_one": "låt", "song_one": "Låt",
"song_other": "låtar", "song_other": "Låtar",
"radioStation_one": "radiostation", "radioStation_one": "Radiostation",
"radioStation_other": "radiostationer", "radioStation_other": "Radiostationer",
"radioStationWithCount_one": "{{count}} radiostation", "radioStationWithCount_one": "{{count}} radiostation",
"radioStationWithCount_other": "{{count}} radiostationer" "radioStationWithCount_other": "{{count}} radiostationer"
}, },
"player": { "player": {
"repeat_all": "repetera alla", "repeat_all": "Repetera alla",
"repeat": "repetera", "repeat": "Repetera",
"queue_remove": "ta bort markerad", "queue_remove": "Ta bort markerad",
"playRandom": "spela slumpmässigt", "playRandom": "Spela slumpmässigt",
"previous": "föregående", "previous": "Föregående",
"favorite": "favorit", "favorite": "Favorit",
"next": "nästa", "next": "Nästa",
"shuffle": "blanda", "shuffle": "Blanda",
"playbackFetchNoResults": "inga låtar hittades", "playbackFetchNoResults": "Inga låtar hittades",
"playbackFetchInProgress": "laddar låtar…", "playbackFetchInProgress": "Laddar låtar…",
"addNext": "lägg till nästa", "addNext": "Lägg till nästa",
"playbackSpeed": "uppspelningshastighet", "playbackSpeed": "Uppspelningshastighet",
"playbackFetchCancel": "det här tar ett tag... stäng aviseringen för att avbryta", "playbackFetchCancel": "Det här tar ett tag... stäng aviseringen för att avbryta",
"play": "spela", "play": "Spela",
"repeat_off": "repetera inaktiverad", "repeat_off": "Repetera inaktiverad",
"queue_clear": "rensa kö", "queue_clear": "Rensa kö",
"muted": "mutad", "muted": "Mutad",
"queue_moveToTop": "flytta markerad till botten", "queue_moveToTop": "Flytta markerad till toppen",
"queue_moveToBottom": "flytta markerad till toppen", "queue_moveToBottom": "Flytta markerad till botten",
"addLast": "lägg till sist", "addLast": "Lägg till sist",
"mute": "muta" "mute": "Muta"
}, },
"datetime": { "datetime": {
"minuteShort": "min", "minuteShort": "Min",
"secondShort": "sek", "secondShort": "Sek",
"hourShort": "h", "hourShort": "H",
"dayShort": "dag" "dayShort": "Dag"
}, },
"filterOperator": { "filterOperator": {
"after": "är efter", "after": "Är efter",
"afterDate": "är efter (datum)", "afterDate": "Är efter (datum)",
"before": "är före", "before": "Är före",
"beforeDate": "är före (datum)", "beforeDate": "Är före (datum)",
"contains": "innehåller", "contains": "Innehåller",
"endsWith": "slutar med", "endsWith": "Slutar med",
"inPlaylist": "är inom", "inPlaylist": "Är inom",
"inTheLast": "är i den sista", "inTheLast": "Är i den sista",
"inTheRange": "är i spannet", "inTheRange": "Är i spannet",
"inTheRangeDate": "är i spannet (datum)", "inTheRangeDate": "Är i spannet (datum)",
"is": "är", "is": "Är",
"isNot": "är inte", "isNot": "Är inte",
"isGreaterThan": "är större än", "isGreaterThan": "Är större än",
"isLessThan": "är mindre än", "isLessThan": "Är mindre än",
"matchesRegex": "matchar regex", "matchesRegex": "Matchar regex",
"notContains": "innehåller inte", "notContains": "Innehåller inte",
"notInPlaylist": "är inte inom", "notInPlaylist": "Är inte inom",
"notInTheLast": "är inte inom den sista", "notInTheLast": "Är inte inom den sista",
"startsWith": "startar med" "startsWith": "Startar med"
} }
} }
+9 -10
View File
@@ -310,8 +310,7 @@
"editPlaylist": { "editPlaylist": {
"title": "திருத்து $t(entity.playlist, {\"count\": 1})", "title": "திருத்து $t(entity.playlist, {\"count\": 1})",
"publicJellyfinNote": "சில காரணங்களால் செல்லிஃபின் ஒரு பிளேலிச்ட் பொதுவில் இல்லையா என்பதை அம்பலப்படுத்தவில்லை. இது பொதுவில் இருக்க விரும்பினால், தயவுசெய்து பின்வரும் உள்ளீட்டைத் தேர்ந்தெடுக்கவும்", "publicJellyfinNote": "சில காரணங்களால் செல்லிஃபின் ஒரு பிளேலிச்ட் பொதுவில் இல்லையா என்பதை அம்பலப்படுத்தவில்லை. இது பொதுவில் இருக்க விரும்பினால், தயவுசெய்து பின்வரும் உள்ளீட்டைத் தேர்ந்தெடுக்கவும்",
"success": "$t(entity.playlist, {\"count\": 1}) வெற்றிகரமாகப் புதுப்பிக்கப்பட்டது", "success": "$t(entity.playlist, {\"count\": 1}) வெற்றிகரமாகப் புதுப்பிக்கப்பட்டது"
"editNote": "பெரிய பிளேலிச்ட்களுக்கு கைமுறை திருத்தங்கள் பரிந்துரைக்கப்படவில்லை. ஏற்கனவே உள்ள பிளேலிச்ட்டை மேலெழுதுவதால் ஏற்படும் தரவு இழப்பின் அபாயத்தை நிச்சயமாக ஏற்றுக்கொள்கிறீர்களா?"
}, },
"lyricSearch": { "lyricSearch": {
"input_artist": "$t(entity.artist, {\"count\": 1})", "input_artist": "$t(entity.artist, {\"count\": 1})",
@@ -628,8 +627,8 @@
"playbackFetchNoResults": "பாடல்கள் எதுவும் கிடைக்கவில்லை", "playbackFetchNoResults": "பாடல்கள் எதுவும் கிடைக்கவில்லை",
"playbackSpeed": "பிளேபேக் விரைவு", "playbackSpeed": "பிளேபேக் விரைவு",
"playRandom": "சீரற்ற முறையில் விளையாடுங்கள்", "playRandom": "சீரற்ற முறையில் விளையாடுங்கள்",
"queue_moveToBottom": "மேலே தேர்ந்தெடுக்கப்பட்ட நகர்த்த", "queue_moveToBottom": "தேர்ந்தெடுக்கப்பட்டதை கீழே நகர்த்தவும்",
"queue_moveToTop": "தேர்ந்தெடுக்கப்பட்டதை கீழே நகர்த்தவும்", "queue_moveToTop": "மேலே தேர்ந்தெடுக்கப்பட்ட நகர்த்த",
"skip_back": "பின்னோக்கி தவிர்க்கவும்", "skip_back": "பின்னோக்கி தவிர்க்கவும்",
"skip_forward": "முன்னோக்கி தவிர்க்கவும்", "skip_forward": "முன்னோக்கி தவிர்க்கவும்",
"stop": "நிறுத்து", "stop": "நிறுத்து",
@@ -801,7 +800,7 @@
"enableRemote": "ரிமோட் கண்ட்ரோல் சேவையகத்தை இயக்கவும்", "enableRemote": "ரிமோட் கண்ட்ரோல் சேவையகத்தை இயக்கவும்",
"enableRemote_description": "பயன்பாட்டைக் கட்டுப்படுத்த மற்ற சாதனங்களை அனுமதிக்க ரிமோட் கண்ட்ரோல் சேவையகத்தை இயக்குகிறது", "enableRemote_description": "பயன்பாட்டைக் கட்டுப்படுத்த மற்ற சாதனங்களை அனுமதிக்க ரிமோட் கண்ட்ரோல் சேவையகத்தை இயக்குகிறது",
"externalLinks": "வெளிப்புற இணைப்புகளைக் காட்டு", "externalLinks": "வெளிப்புற இணைப்புகளைக் காட்டு",
"externalLinks_description": "கலைஞர்/ஆல்பம் பக்கங்களில் வெளிப்புற இணைப்புகளை (last.fm, மியூசிக் ப்ரெய்ன்ச்) காண்பிக்க உதவுகிறது", "externalLinks_description": "கலைஞர்/ஆல்பம் பக்கங்களில் வெளிப்புற இணைப்புகளை (Last.fm, மியூசிக் ப்ரெய்ன்ச்) காண்பிக்க உதவுகிறது",
"exitToTray": "தட்டில் வெளியேறவும்", "exitToTray": "தட்டில் வெளியேறவும்",
"globalMediaHotkeys": "உலகளாவிய மீடியா ஆட்கீச்", "globalMediaHotkeys": "உலகளாவிய மீடியா ஆட்கீச்",
"discordUpdateInterval": "{{discord}} பணக்கார இருப்பு புதுப்பிப்பு இடைவெளி", "discordUpdateInterval": "{{discord}} பணக்கார இருப்பு புதுப்பிப்பு இடைவெளி",
@@ -873,7 +872,7 @@
"discordServeImage_description": "சேவையகத்திலிருந்தே {{discord}} சிறந்த இருப்புக்கான கவர் ஆர்ட்டைப் பகிரவும், செல்லிஃபின் மற்றும் நவிட்ரோமுக்கு மட்டுமே கிடைக்கும். படங்களைப் பெற {{discord}} ஒரு போட்டைப் பயன்படுத்துகிறது, எனவே உங்கள் சர்வர் பொது இணையத்திலிருந்து அணுகக்கூடியதாக இருக்க வேண்டும்", "discordServeImage_description": "சேவையகத்திலிருந்தே {{discord}} சிறந்த இருப்புக்கான கவர் ஆர்ட்டைப் பகிரவும், செல்லிஃபின் மற்றும் நவிட்ரோமுக்கு மட்டுமே கிடைக்கும். படங்களைப் பெற {{discord}} ஒரு போட்டைப் பயன்படுத்துகிறது, எனவே உங்கள் சர்வர் பொது இணையத்திலிருந்து அணுகக்கூடியதாக இருக்க வேண்டும்",
"preferLocalLyrics": "உள்ளக பாடல்களை விரும்புங்கள்", "preferLocalLyrics": "உள்ளக பாடல்களை விரும்புங்கள்",
"preferLocalLyrics_description": "கிடைக்கும்போது தொலைநிலை பாடல்களை விட உள்ளக பாடல்களை விரும்புங்கள்", "preferLocalLyrics_description": "கிடைக்கும்போது தொலைநிலை பாடல்களை விட உள்ளக பாடல்களை விரும்புங்கள்",
"lastfm": "last.fm இணைப்புகளைக் காட்டு", "lastfm": "Last.fm இணைப்புகளைக் காட்டு",
"lastfm_description": "கலைஞர்/ஆல்பம் பக்கங்களில் Last.fm க்கான இணைப்புகளைக் காட்டு", "lastfm_description": "கலைஞர்/ஆல்பம் பக்கங்களில் Last.fm க்கான இணைப்புகளைக் காட்டு",
"musicbrainz": "மியூசிக் பிரேன்ச் இணைப்புகளைக் காட்டு", "musicbrainz": "மியூசிக் பிரேன்ச் இணைப்புகளைக் காட்டு",
"musicbrainz_description": "கலைஞர்/ஆல்பம் பக்கங்களில் மியூசிக் பிரைன்ச் இணைப்புகளைக் காட்டு, அங்கு மியூசிக் பிரைன்ச் ID உள்ளது", "musicbrainz_description": "கலைஞர்/ஆல்பம் பக்கங்களில் மியூசிக் பிரைன்ச் இணைப்புகளைக் காட்டு, அங்கு மியூசிக் பிரைன்ச் ID உள்ளது",
@@ -926,7 +925,7 @@
"exportImportSettings_control_title": "இறக்குமதி / ஏற்றுமதி அமைப்புகள்", "exportImportSettings_control_title": "இறக்குமதி / ஏற்றுமதி அமைப்புகள்",
"exportImportSettings_destructiveWarning": "அமைப்புகளை இறக்குமதி செய்வது அழிவுகரமானது, கீழே உள்ள \"இறக்குமதி\" என்பதைக் சொடுக்கு செய்வதற்கு முன் மேலே உள்ளவற்றை மதிப்பாய்வு செய்யவும்!", "exportImportSettings_destructiveWarning": "அமைப்புகளை இறக்குமதி செய்வது அழிவுகரமானது, கீழே உள்ள \"இறக்குமதி\" என்பதைக் சொடுக்கு செய்வதற்கு முன் மேலே உள்ளவற்றை மதிப்பாய்வு செய்யவும்!",
"exportImportSettings_importBtn": "இறக்குமதி அமைப்புகள்", "exportImportSettings_importBtn": "இறக்குமதி அமைப்புகள்",
"exportImportSettings_importModalTitle": "feishin அமைப்புகளை இறக்குமதி செய்யவும்", "exportImportSettings_importModalTitle": "Feishin அமைப்புகளை இறக்குமதி செய்யவும்",
"exportImportSettings_importSuccess": "அமைப்புகள் வெற்றிகரமாக இறக்குமதி செய்யப்பட்டன!", "exportImportSettings_importSuccess": "அமைப்புகள் வெற்றிகரமாக இறக்குமதி செய்யப்பட்டன!",
"exportImportSettings_notValidJSON": "அனுப்பப்பட்ட கோப்பு சாதொபொகு செல்லுபடியாகாது", "exportImportSettings_notValidJSON": "அனுப்பப்பட்ட கோப்பு சாதொபொகு செல்லுபடியாகாது",
"exportImportSettings_offendingKeyError": "\"{{offendingKey}}\" தவறானது - {{reason}}", "exportImportSettings_offendingKeyError": "\"{{offendingKey}}\" தவறானது - {{reason}}",
@@ -949,8 +948,8 @@
"logLevel_optionError": "பிழை", "logLevel_optionError": "பிழை",
"logLevel_optionInfo": "தகவல்", "logLevel_optionInfo": "தகவல்",
"logLevel_optionWarn": "முன்னறிவிப்பு", "logLevel_optionWarn": "முன்னறிவிப்பு",
"mpvExtraParameters": "mpv கூடுதல் அளவுருக்கள்", "mpvExtraParameters": "MPV கூடுதல் அளவுருக்கள்",
"mpvExtraParameters_description": "mpv க்கு அனுப்ப கூடுதல் வாதங்கள்", "mpvExtraParameters_description": "MPV க்கு அனுப்ப கூடுதல் வாதங்கள்",
"notify": "பாடல் அறிவிப்புகளை இயக்கவும்", "notify": "பாடல் அறிவிப்புகளை இயக்கவும்",
"notify_description": "தற்போதைய பாடலை மாற்றும்போது அறிவிப்புகளைக் காட்டு", "notify_description": "தற்போதைய பாடலை மாற்றும்போது அறிவிப்புகளைக் காட்டு",
"pathReplace": "கோப்பு பாதை மாற்று", "pathReplace": "கோப்பு பாதை மாற்று",
@@ -1016,7 +1015,7 @@
"artist": "$t(entity.artist, {\"count\": 1})", "artist": "$t(entity.artist, {\"count\": 1})",
"biography": "$t(common.biography)", "biography": "$t(common.biography)",
"bitrate": "$t(common.bitrate)", "bitrate": "$t(common.bitrate)",
"bpm": "$t(common.bpm)", "bpm": "$t(common.BPM)",
"channels": "$t(common.channel, {\"count\": 2})", "channels": "$t(common.channel, {\"count\": 2})",
"codec": "$t(common.codec)", "codec": "$t(common.codec)",
"dateAdded": "தேதி சேர்க்கப்பட்டது", "dateAdded": "தேதி சேர்க்கப்பட்டது",
+554 -554
View File
File diff suppressed because it is too large Load Diff
+415 -355
View File
@@ -1,175 +1,181 @@
{ {
"action": { "action": {
"addToFavorites": "додати до $t(entity.favorite, {\"count\": 2})", "addToFavorites": "Додати до $t(entity.favorite, {\"count\": 2})",
"addOrRemoveFromSelection": "додати або видалити з вибору", "addOrRemoveFromSelection": "Додати або видалити з вибору",
"selectRangeOfItems": "вибрати діапазон елементів", "selectRangeOfItems": "Вибрати діапазон елементів",
"addToPlaylist": "додати до $t(entity.playlist, {\"count\": 1})", "addToPlaylist": "Додати до $t(entity.playlist, {\"count\": 1})",
"clearQueue": "очистити чергу", "clearQueue": "Очистити чергу",
"createPlaylist": "створити $t(entity.playlist, {\"count\": 1})", "createPlaylist": "Створити $t(entity.playlist, {\"count\": 1})",
"createRadioStation": "створити $t(entity.radioStation, {\"count\": 1})", "createRadioStation": "Створити $t(entity.radioStation, {\"count\": 1})",
"deletePlaylist": "видалити $t(entity.playlist, {\"count\": 1})", "deletePlaylist": "Видалити $t(entity.playlist, {\"count\": 1})",
"deleteRadioStation": "видалити $t(entity.radioStation, {\"count\": 1})", "deleteRadioStation": "Видалити $t(entity.radioStation, {\"count\": 1})",
"selectAll": "вибрати все", "selectAll": "Вибрати все",
"deselectAll": "скасувати вибір усього", "deselectAll": "Скасувати вибір усього",
"downloadStarted": "почато завантаження {{count}} елементів", "downloadStarted": "Почато завантаження {{count}} елементів",
"editPlaylist": "редагувати $t(entity.playlist, {\"count\": 1})", "editPlaylist": "Редагувати $t(entity.playlist, {\"count\": 1})",
"goToPage": "перейти на сторінку", "goToPage": "Перейти на сторінку",
"moveToNext": "перейти до наступного", "moveToNext": "Перейти до наступного",
"moveToBottom": "перемістити вниз", "moveToBottom": "Перемістити вниз",
"moveToTop": "перемістити вгору", "moveToTop": "Перемістити вгору",
"moveUp": "перемістити вище", "moveUp": "Перемістити вище",
"moveDown": "перемістити нижче", "moveDown": "Перемістити нижче",
"holdToMoveToTop": "утримуйте, щоб перемістити вгору", "holdToMoveToTop": "Утримуйте, щоб перемістити вгору",
"holdToMoveToBottom": "утримувати, щоб перемістити вниз", "holdToMoveToBottom": "Утримувати, щоб перемістити вниз",
"moveItems": "перемістити елементи", "moveItems": "Перемістити елементи",
"shuffle": "перемішати", "shuffle": "Перемішати",
"shuffleAll": "все випадково", "shuffleAll": "Все випадково",
"shuffleSelected": "вибране випадково", "shuffleSelected": "Вибране випадково",
"refresh": "$t(common.refresh)", "refresh": "$t(common.refresh)",
"removeFromFavorites": "видалити з $t(entity.favorite, {\"count\": 2})", "removeFromFavorites": "Видалити з $t(entity.favorite, {\"count\": 2})",
"removeFromPlaylist": "видалити з $t(entity.playlist, {\"count\": 1})", "removeFromPlaylist": "Видалити з $t(entity.playlist, {\"count\": 1})",
"removeFromQueue": "видалити з черги", "removeFromQueue": "Видалити з черги",
"setRating": "встановити рейтинг", "setRating": "Встановити рейтинг",
"toggleSmartPlaylistEditor": "перемикати редактор $t(entity.smartPlaylist)", "toggleSmartPlaylistEditor": "Перемикати редактор $t(entity.smartPlaylist)",
"viewPlaylists": "показати $t(entity.playlist, {\"count\": 2})", "viewPlaylists": "Показати $t(entity.playlist, {\"count\": 2})",
"viewMore": "переглянути більше", "viewMore": "Переглянути більше",
"openApplicationDirectory": "відкрити каталог додатків", "openApplicationDirectory": "Відкрити каталог додатків",
"openIn": { "openIn": {
"lastfm": "Відкрити в Last.fm", "lastfm": "Відкрити в Last.fm",
"musicbrainz": "Відкрити в MusicBrainz" "musicbrainz": "Відкрити в MusicBrainz",
"listenbrainz": "Відкрити у ListenBrainz",
"qobuz": "Відкрити у Qobuz",
"spotify": "Відкрити у Spotify"
} }
}, },
"common": { "common": {
"countSelected": "вибрано {{count}}", "countSelected": "Вибрано {{count}}",
"explicitStatus": "явний статус", "explicitStatus": "Явний статус",
"action_one": "дія", "action_one": "Дія",
"action_few": "дії", "action_few": "дії",
"action_many": "дій", "action_many": "дій",
"add": "додати", "add": "Додати",
"additionalParticipants": "додаткові учасники", "additionalParticipants": "Додаткові учасники",
"newVersion": "встановлено нову версію ({{version}})", "newVersion": "Встановлено нову версію ({{version}})",
"viewReleaseNotes": "переглянути список змін", "viewReleaseNotes": "Переглянути список змін",
"albumGain": "підсилення альбому", "albumGain": "Підсилення альбому",
"albumPeak": "піковий рівень альбому", "albumPeak": "Піковий рівень альбому",
"areYouSure": "ви впевнені?", "areYouSure": "Ви впевнені?",
"ascending": "зростаючи", "ascending": "Зростаючи",
"backward": "назад", "backward": "Назад",
"biography": "біографія", "biography": "Біографія",
"bitDepth": "розрядність", "bitDepth": "Розрядність",
"bitrate": "бітрейт", "bitrate": "Бітрейт",
"bpm": "уд/хв", "bpm": "Уд/хв",
"cancel": "скасувати", "cancel": "Скасувати",
"center": "посередині", "center": "Посередині",
"channel_one": "канал", "channel_one": "Канал",
"channel_few": "канали", "channel_few": "канали",
"channel_many": "каналів", "channel_many": "каналів",
"clear": "очистити", "clear": "Очистити",
"close": "закрити", "close": "Закрити",
"codec": "кодек", "codec": "Кодек",
"collapse": "згорнути", "collapse": "Згорнути",
"comingSoon": "скоро…", "comingSoon": "Скоро…",
"configure": "налаштувати", "configure": "Налаштувати",
"confirm": "підтвердити", "confirm": "Підтвердити",
"create": "створити", "create": "Створити",
"currentSong": "поточний $t(entity.track, {\"count\": 1})", "currentSong": "Поточний $t(entity.track, {\"count\": 1})",
"decrease": "знизити", "decrease": "Знизити",
"delete": "видалити", "delete": "Видалити",
"descending": "за спаданням", "descending": "За спаданням",
"description": "опис", "description": "Опис",
"disable": "вимкнути", "disable": "Вимкнути",
"disc": "диск", "disc": "Диск",
"dismiss": "відхилити", "dismiss": "Відхилити",
"doNotShowAgain": "не показувати це знову", "doNotShowAgain": "Не показувати це знову",
"duration": "тривалість", "duration": "Тривалість",
"view": "показати", "view": "Показати",
"edit": "змінити", "edit": "Змінити",
"enable": "увімкнути", "enable": "Увімкнути",
"expand": "розширити", "expand": "Розширити",
"example": "приклад", "example": "Приклад",
"externalLinks": "зовнішні посилання", "externalLinks": "Зовнішні посилання",
"faster": "швидше", "faster": "Швидше",
"favorite": "улюблений", "favorite": "Улюблений",
"filter_one": "фільтр", "filter_one": "Фільтр",
"filter_few": "фільтри", "filter_few": "фільтри",
"filter_many": "фільтрів", "filter_many": "фільтрів",
"filters": "фільтри", "filters": "Фільтри",
"filter_single": "одиночний", "filter_single": "Одиночний",
"filter_multiple": "кілька", "filter_multiple": "Кілька",
"forceRestartRequired": "перезапустіть, щоб застосувати зміни… закрийте повідомлення, щоб перезапустити", "forceRestartRequired": "Перезапустіть, щоб застосувати зміни… закрийте повідомлення, щоб перезапустити",
"forward": "уперед", "forward": "Уперед",
"gap": "прогалина", "gap": "Прогалина",
"home": "додому", "grouping": "Групування",
"increase": "збільшити", "home": "Додому",
"left": "ліво", "increase": "Збільшити",
"limit": "ліміт", "left": "Ліво",
"manage": "управління", "limit": "Ліміт",
"maximize": "максимізувати", "manage": "Управління",
"menu": "меню", "maximize": "Максимізувати",
"minimize": "мінімізувати", "menu": "Меню",
"modified": "відредаговано", "minimize": "Мінімізувати",
"modified": "Відредаговано",
"mbid": "MusicBrainz ID", "mbid": "MusicBrainz ID",
"mood": "настрій", "mood": "Настрій",
"name": "назва", "name": "Назва",
"no": "ні", "no": "Ні",
"none": "жоден", "none": "Жоден",
"noResultsFromQuery": "запит не дав результатів", "noResultsFromQuery": "Запит не дав результатів",
"noFilters": "фільтри не налаштовані", "noFilters": "Фільтри не налаштовані",
"note": "примітка", "note": "Примітка",
"ok": "ок", "ok": "Ок",
"owner": "власник", "owner": "Власник",
"path": "шлях", "path": "Шлях",
"playerMustBePaused": "плеєр повинен бути призупинений", "playerMustBePaused": "Плеєр повинен бути призупинений",
"preview": "перегляд", "preview": "Перегляд",
"previousSong": "минулий $t(entity.track, {\"count\": 1})", "previousSong": "Минулий $t(entity.track, {\"count\": 1})",
"private": "приватний", "private": "Приватний",
"public": "публічний", "public": "Публічний",
"quit": "вийти", "quit": "Вийти",
"random": "випадково", "random": "Випадково",
"rating": "рейтинг", "rating": "Рейтинг",
"retry": "повторити спробу", "retry": "Повторити спробу",
"recordLabel": "лейбл звукозапису", "recordLabel": "Лейбл звукозапису",
"releaseType": "тип випуску", "releaseType": "Тип випуску",
"refresh": "оновити", "refresh": "Оновити",
"reload": "перезавантажити", "reload": "Перезавантажити",
"rename": "перейменувати", "rename": "Перейменувати",
"reset": "скинути", "reset": "Скинути",
"resetToDefault": "скинути до заводських налаштувань", "resetToDefault": "Скинути до заводських налаштувань",
"restartRequired": "необхідний перезапуск", "restartRequired": "Необхідний перезапуск",
"right": "право", "right": "Право",
"clean": "чистo", "clean": "Чистo",
"sampleRate": "частота дискретизації", "sampleRate": "Частота дискретизації",
"save": "зберегти", "save": "Зберегти",
"saveAndReplace": "зберегти та замінити", "saveAndReplace": "Зберегти та замінити",
"saveAs": "зберегти як", "saveAs": "Зберегти як",
"search": "пошук", "search": "Пошук",
"setting_one": "налаштування", "setting_one": "Налаштування",
"setting_few": "налаштування", "setting_few": "налаштування",
"setting_many": "налаштувань", "setting_many": "налаштувань",
"slower": "повільніше", "slower": "Повільніше",
"share": "поділитися", "share": "Поділитися",
"size": "розмір", "size": "Розмір",
"sort": "впорядкувати", "sort": "Впорядкувати",
"sortOrder": "порядок", "sortOrder": "Порядок",
"tags": "теги", "tags": "Теги",
"title": "назва", "title": "Назва",
"trackNumber": "трек", "trackNumber": "Трек",
"trackGain": "підсилення треку", "trackGain": "Підсилення треку",
"trackPeak": "піковий рівень треку", "trackPeak": "Піковий рівень треку",
"translation": "переклад", "translation": "Переклад",
"unknown": "невідомий", "unknown": "Невідомий",
"version": "версія", "version": "Версія",
"year": "рік", "year": "Рік",
"yes": "так", "yes": "Так",
"explicit": "Експліцитний зміст", "explicit": "Експліцитний зміст",
"gridRows": "рядки сітки", "gridRows": "Рядки сітки",
"tableColumns": "стовпці таблиці", "tableColumns": "Стовпці таблиці",
"itemsMore": "{{count}} більше" "itemsMore": "{{count}} більше",
"numberOfResults": "{{numberOfResults}} результатів",
"newVersionAvailable": "Доступна нова версія"
}, },
"entity": { "entity": {
"album_one": "альбом", "album_one": "Альбом",
"album_few": "альбоми", "album_few": "альбоми",
"album_many": "альбомів", "album_many": "альбомів",
"albumArtist_one": "виконавець альбому", "albumArtist_one": "Виконавець альбому",
"albumArtist_few": "виконавці альбому", "albumArtist_few": "виконавці альбому",
"albumArtist_many": "виконавців альбому", "albumArtist_many": "виконавців альбому",
"albumArtistCount_one": "{{count}} виконавець альбому", "albumArtistCount_one": "{{count}} виконавець альбому",
@@ -178,34 +184,34 @@
"albumWithCount_one": "{{count}} альбом", "albumWithCount_one": "{{count}} альбом",
"albumWithCount_few": "{{count}} альбоми", "albumWithCount_few": "{{count}} альбоми",
"albumWithCount_many": "{{count}} альбомів", "albumWithCount_many": "{{count}} альбомів",
"radioStation_one": "радіостанція", "radioStation_one": "Радіостанція",
"radioStation_few": "радіостанції", "radioStation_few": "радіостанції",
"radioStation_many": "радіостанцій", "radioStation_many": "радіостанцій",
"radioStationWithCount_one": "{{count}} радіостанція", "radioStationWithCount_one": "{{count}} радіостанція",
"radioStationWithCount_few": "{{count}} радіостанції", "radioStationWithCount_few": "{{count}} радіостанції",
"radioStationWithCount_many": "{{count}} радіостанцій", "radioStationWithCount_many": "{{count}} радіостанцій",
"artist_one": "виконавець", "artist_one": "Виконавець",
"artist_few": "виконавці", "artist_few": "виконавці",
"artist_many": "виконавців", "artist_many": "виконавців",
"artistWithCount_one": "{{count}} виконавець", "artistWithCount_one": "{{count}} виконавець",
"artistWithCount_few": "{{count}} виконавці", "artistWithCount_few": "{{count}} виконавці",
"artistWithCount_many": "{{count}} виконавців", "artistWithCount_many": "{{count}} виконавців",
"favorite_one": "улюблений", "favorite_one": "Улюблений",
"favorite_few": "улюблені", "favorite_few": "улюблені",
"favorite_many": "улюблених", "favorite_many": "улюблених",
"folder_one": "папка", "folder_one": "Папка",
"folder_few": "папки", "folder_few": "папки",
"folder_many": "папок", "folder_many": "папок",
"folderWithCount_one": "{{count}} папка", "folderWithCount_one": "{{count}} папка",
"folderWithCount_few": "{{count}} папки", "folderWithCount_few": "{{count}} папки",
"folderWithCount_many": "{{count}} папок", "folderWithCount_many": "{{count}} папок",
"genre_one": "жанр", "genre_one": "Жанр",
"genre_few": "жанри", "genre_few": "жанри",
"genre_many": "жанрів", "genre_many": "жанрів",
"genreWithCount_one": "{{count}} жанр", "genreWithCount_one": "{{count}} жанр",
"genreWithCount_few": "{{count}} жанри", "genreWithCount_few": "{{count}} жанри",
"genreWithCount_many": "{{count}} жанрів", "genreWithCount_many": "{{count}} жанрів",
"playlist_one": "плейлист", "playlist_one": "Плейлист",
"playlist_few": "плейлисти", "playlist_few": "плейлисти",
"playlist_many": "плейлистів", "playlist_many": "плейлистів",
"play_one": "{{count}} відтворення", "play_one": "{{count}} відтворення",
@@ -214,11 +220,11 @@
"playlistWithCount_one": "{{count}} плейлист", "playlistWithCount_one": "{{count}} плейлист",
"playlistWithCount_few": "{{count}} плейлисти", "playlistWithCount_few": "{{count}} плейлисти",
"playlistWithCount_many": "{{count}} плейлистів", "playlistWithCount_many": "{{count}} плейлистів",
"smartPlaylist": "розумний $t(entity.playlist, {\"count\": 1})", "smartPlaylist": "Розумний $t(entity.playlist, {\"count\": 1})",
"track_one": "трек", "track_one": "Трек",
"track_few": "треки", "track_few": "треки",
"track_many": "треків", "track_many": "треків",
"song_one": "пісня", "song_one": "Пісня",
"song_few": "пісні", "song_few": "пісні",
"song_many": "пісень", "song_many": "пісень",
"trackWithCount_one": "{{count}} трек", "trackWithCount_one": "{{count}} трек",
@@ -226,258 +232,266 @@
"trackWithCount_many": "{{count}} треків" "trackWithCount_many": "{{count}} треків"
}, },
"error": { "error": {
"apiRouteError": "неможливо виконати запит", "apiRouteError": "Неможливо виконати запит",
"audioDeviceFetchError": "сталася помилка під час спроби отримати аудіопристрої", "audioDeviceFetchError": "Сталася помилка під час спроби отримати аудіопристрої",
"authenticationFailed": "аутентифікація не вдалася", "authenticationFailed": "Аутентифікація не вдалася",
"badAlbum": "ви бачите цю сторінку, тому що ця пісня не входить до альбому. найімовірніше, ця проблема виникає, якщо у верхньому рівні вашої музичної папки знаходиться пісня. Jellyfin групує треки тільки в тому випадку, якщо вони знаходяться в папці", "badAlbum": "Ви бачите цю сторінку, тому що ця пісня не входить до альбому. найімовірніше, ця проблема виникає, якщо у верхньому рівні вашої музичної папки знаходиться пісня. Jellyfin групує треки тільки в тому випадку, якщо вони знаходяться в папці",
"badValue": "недійсний параметр \"{{value}}\". це значення більше не існує", "badValue": "Недійсний параметр \"{{value}}\". це значення більше не існує",
"credentialsRequired": "необхідні дані для входу", "credentialsRequired": "Необхідні дані для входу",
"endpointNotImplementedError": "кінцева точка {{endpoint}} не реалізована для {{serverType}}", "endpointNotImplementedError": "Кінцева точка {{endpoint}} не реалізована для {{serverType}}",
"genericError": "сталася помилка", "genericError": "Сталася помилка",
"invalidServer": "недійсний сервер", "invalidServer": "Недійсний сервер",
"localFontAccessDenied": "відмова в доступі до локальних шрифтів", "localFontAccessDenied": "Відмова в доступі до локальних шрифтів",
"loginRateError": "занадто багато спроб входу, спробуйте ще раз через кілька секунд", "loginRateError": "Занадто багато спроб входу, спробуйте ще раз через кілька секунд",
"mpvRequired": "необхідний MPV", "mpvRequired": "Необхідний MPV",
"multipleServerSaveQueueError": "у черзі відтворення є одна або кілька пісень, які не належать до поточного сервера. це не підтримується", "multipleServerSaveQueueError": "У черзі відтворення є одна або кілька пісень, які не належать до поточного сервера. це не підтримується",
"networkError": "сталася мережева помилка", "networkError": "Сталася мережева помилка",
"noNetwork": "сервер недоступний", "noNetwork": "Сервер недоступний",
"noNetworkDescription": "не вдалося підключитися до цього сервера", "noNetworkDescription": "Не вдалося підключитися до цього сервера",
"notificationDenied": "дозвіл на сповіщення було відхилено. це налаштування не має впливу", "notificationDenied": "Дозвіл на сповіщення було відхилено. це налаштування не має впливу",
"openError": "не вдалося відкрити файл", "openError": "Не вдалося відкрити файл",
"playbackError": "сталася помилка під час спроби відтворити медіафайл", "playbackError": "Сталася помилка під час спроби відтворити медіафайл",
"remoteDisableError": "сталася помилка під час спроби $t(common.disable) віддаленого сервера", "remoteDisableError": "Сталася помилка під час спроби $t(common.disable) віддаленого сервера",
"remoteEnableError": "сталася помилка під час спроби $t(common.enable) віддаленого сервера", "remoteEnableError": "Сталася помилка під час спроби $t(common.enable) віддаленого сервера",
"remotePortError": "сталася помилка під час спроби налаштувати порт віддаленого сервера", "remotePortError": "Сталася помилка під час спроби налаштувати порт віддаленого сервера",
"remotePortWarning": "перезапустіть сервер щоб застосувати новий порт", "remotePortWarning": "Перезапустіть сервер щоб застосувати новий порт",
"saveQueueFailed": "не вдалося зберегти чергу", "saveQueueFailed": "Не вдалося зберегти чергу",
"serverNotSelectedError": "не вибрано жодного сервера", "serverNotSelectedError": "Не вибрано жодного сервера",
"serverRequired": "потрібен сервер", "serverRequired": "Потрібен сервер",
"sessionExpiredError": "ваша сесія закінчилася", "sessionExpiredError": "Ваша сесія закінчилася",
"systemFontError": "сталася помилка під час спроби отримати системні шрифти", "systemFontError": "Сталася помилка під час спроби отримати системні шрифти",
"settingsSyncError": "виявлено розбіжності між налаштуваннями в рендерері та основним процесом. перезапустіть програму, щоб застосувати зміни" "settingsSyncError": "Виявлено розбіжності між налаштуваннями в рендерері та основним процесом. перезапустіть програму, щоб застосувати зміни",
"invalidJson": "Недійсний JSON",
"playbackPausedDueToError": "Відтворення було призупинено через помилку"
}, },
"filter": { "filter": {
"album": "$t(entity.album, {\"count\": 1})", "album": "$t(entity.album, {\"count\": 1})",
"albumArtist": "$t(entity.albumArtist, {\"count\": 1})", "albumArtist": "$t(entity.albumArtist, {\"count\": 1})",
"albumCount": "кількість $t(entity.album, {\"count\": 2})", "albumCount": "Кількість $t(entity.album, {\"count\": 2})",
"artist": "$t(entity.artist, {\"count\": 1})", "artist": "$t(entity.artist, {\"count\": 1})",
"biography": "біографія", "biography": "Біографія",
"bitrate": "бітрейт", "bitrate": "Бітрейт",
"bpm": "уд/хв", "bpm": "Уд/хв",
"channels": "$t(common.channel, {\"count\": 2})", "channels": "$t(common.channel, {\"count\": 2})",
"comment": "коментар", "comment": "Коментар",
"communityRating": "рейтинг спільноти", "communityRating": "Рейтинг спільноти",
"criticRating": "рейтинг критиків", "criticRating": "Рейтинг критиків",
"dateAdded": "дата додавання", "dateAdded": "Дата додавання",
"disc": "диск", "disc": "Диск",
"duration": "тривалість", "duration": "Тривалість",
"favorited": "улюблене", "favorited": "Улюблене",
"fromYear": "з року", "fromYear": "З року",
"genre": "$t(entity.genre, {\"count\": 1})", "genre": "$t(entity.genre, {\"count\": 1})",
"id": "id", "id": "Id",
"isCompilation": "є компіляцією", "isCompilation": "Є компіляцією",
"isFavorited": "є улюбленим", "isFavorited": "Є улюбленим",
"isPublic": "є публічним", "isPublic": "Є публічним",
"isRated": "є оціненим", "isRated": "Є оціненим",
"isRecentlyPlayed": "нещодавно відтворено", "isRecentlyPlayed": "Нещодавно відтворено",
"lastPlayed": "нещодавно відтворені", "lastPlayed": "Останнє відтворене",
"mostPlayed": "найбільш відтворювані", "mostPlayed": "Найбільш відтворювані",
"name": "назва", "name": "Назва",
"note": "примітка", "note": "Примітка",
"owner": "$t(common.owner)", "owner": "$t(common.owner)",
"path": "шлях", "path": "Шлях",
"playCount": "кількість відтворень", "playCount": "Кількість відтворень",
"random": "випадково", "random": "Випадково",
"rating": "рейтинг", "rating": "Рейтинг",
"recentlyAdded": "нещодавно додано", "recentlyAdded": "Нещодавно додано",
"recentlyPlayed": "нещодавно відтворено", "recentlyPlayed": "Нещодавно відтворено",
"recentlyUpdated": "нещодавно оновлено", "recentlyUpdated": "Нещодавно оновлено",
"releaseDate": "дата випуску", "releaseDate": "Дата випуску",
"releaseYear": "рік випуску", "releaseYear": "Рік випуску",
"search": "шукати", "search": "Шукати",
"songCount": "кількість пісень", "songCount": "Кількість пісень",
"sortName": "сортування за назвою", "sortName": "Сортування за назвою",
"title": "назва", "title": "Назва",
"toYear": "до року", "toYear": "До року",
"trackNumber": "трек", "trackNumber": "Трек",
"explicitStatus": "$t(common.explicitStatus)" "explicitStatus": "$t(common.explicitStatus)",
"matchAnd": "І",
"matchOr": "Або"
}, },
"datetime": { "datetime": {
"minuteShort": "хв.", "minuteShort": "Хв.",
"secondShort": "сек.", "secondShort": "Сек.",
"hourShort": "год", "hourShort": "Год",
"dayShort": "дн." "dayShort": "Дн."
}, },
"filterOperator": { "filterOperator": {
"after": "є після", "after": "Є після",
"afterDate": "після (дата)", "afterDate": "Після (дата)",
"before": "є перед", "before": "Є перед",
"beforeDate": "є перед (дата)", "beforeDate": "Є перед (дата)",
"contains": "містить", "contains": "Містить",
"endsWith": "закінчується на", "endsWith": "Закінчується на",
"inPlaylist": "є в", "inPlaylist": "Є в",
"inTheLast": "є в останньому", "inTheLast": "Є в останньому",
"inTheRange": "є в межах", "inTheRange": "Є в межах",
"inTheRangeDate": "є в межах (дата)", "inTheRangeDate": "Є в межах (дата)",
"is": "є", "is": "Є",
"isNot": "не є", "isNot": "Не є",
"isGreaterThan": "більше ніж", "isGreaterThan": "Більше ніж",
"isLessThan": "менше ніж", "isLessThan": "Менше ніж",
"matchesRegex": "відповідає регулярному виразу", "matchesRegex": "Відповідає регулярному виразу",
"notContains": "не містить", "notContains": "Не містить",
"notInPlaylist": "немає в", "notInPlaylist": "Немає в",
"notInTheLast": "не є в останньому", "notInTheLast": "Не є в останньому",
"startsWith": "починається з" "startsWith": "Починається з"
}, },
"form": { "form": {
"addServer": { "addServer": {
"error_savePassword": "сталася помилка під час спроби зберегти пароль", "error_savePassword": "Сталася помилка під час спроби зберегти пароль",
"ignoreCors": "ігнорувати cors ($t(common.restartRequired))", "ignoreCors": "Ігнорувати cors ($t(common.restartRequired))",
"ignoreSsl": "ігнорувати ssl ($t(common.restartRequired)}", "ignoreSsl": "Ігнорувати ssl ($t(common.restartRequired)}",
"input_legacyAuthentication": "увімкнути застарілу автентифікацію", "input_legacyAuthentication": "Увімкнути застарілу автентифікацію",
"input_name": "назва сервера", "input_name": "Назва сервера",
"input_password": "пароль", "input_password": "Пароль",
"input_preferInstantMix": "віддавати перевагу миттєвому міксу", "input_preferInstantMix": "Віддавати перевагу миттєвому міксу",
"input_preferInstantMixDescription": "використовувати тільки миттєвий мікс щоб отримати подібні пісні. корисно, коли у вас є плагіни, які змінюють цю поведінку", "input_preferInstantMixDescription": "Використовувати тільки миттєвий мікс щоб отримати подібні пісні. корисно, коли у вас є плагіни, які змінюють цю поведінку",
"input_preferRemoteUrl": "віддавати перевагу публічній URL-адресі", "input_preferRemoteUrl": "Віддавати перевагу публічній URL-адресі",
"input_remoteUrl": "публічна URL-адреса", "input_remoteUrl": "Публічна URL-адреса",
"input_remoteUrlPlaceholder": "опціонально: публічна URL-адреса для зовнішніх функцій", "input_remoteUrlPlaceholder": "Опціонально: публічна URL-адреса для зовнішніх функцій",
"input_savePassword": "зберегти пароль", "input_savePassword": "Зберегти пароль",
"input_url": "URL-адреса", "input_url": "URL-адреса",
"input_username": "Ім'я користувача", "input_username": "Ім'я користувача",
"success": "сервер додано успішно", "success": "Сервер додано успішно",
"title": "додати сервер" "title": "Додати сервер"
}, },
"largeFetchConfirmation": { "largeFetchConfirmation": {
"title": "додати елементи до черги", "title": "Додати елементи до черги",
"description": "Ця дія додасть усі елементи в поточний відфільтрований перегляд" "description": "Ця дія додасть усі елементи в поточний відфільтрований перегляд"
}, },
"addToPlaylist": { "addToPlaylist": {
"create": "створити $t(entity.playlist, {\"count\": 1}) {{playlist}}", "create": "Створити $t(entity.playlist, {\"count\": 1}) {{playlist}}",
"input_playlists": "$t(entity.playlist, {\"count\": 2})", "input_playlists": "$t(entity.playlist, {\"count\": 2})",
"input_skipDuplicates": "пропустити дублікати", "input_skipDuplicates": "Пропустити дублікати",
"searchOrCreate": "шукайте $t(entity.playlist, {\"count\": 2}) або пишіть, щоб створити новий", "searchOrCreate": "Шукайте $t(entity.playlist, {\"count\": 2}) або пишіть, щоб створити новий",
"success": "додано $t(entity.trackWithCount, {\"count\": {{message}} }) до $t(entity.playlistWithCount, {\"count\": {{numOfPlaylists}} })", "success": "Додано $t(entity.trackWithCount, {\"count\": {{message}} }) до $t(entity.playlistWithCount, {\"count\": {{numOfPlaylists}} })",
"title": "додати до $t(entity.playlist, {\"count\": 1})" "title": "Додати до $t(entity.playlist, {\"count\": 1})"
}, },
"createPlaylist": { "createPlaylist": {
"input_description": "$t(common.description)", "input_description": "$t(common.description)",
"input_name": "$t(common.name)", "input_name": "$t(common.name)",
"input_owner": "$t(common.owner)", "input_owner": "$t(common.owner)",
"input_public": "публічний", "input_public": "Публічний",
"success": "$t(entity.playlist, {\"count\": 1}) стрворено успішно", "success": "$t(entity.playlist, {\"count\": 1}) стрворено успішно",
"title": "створити $t(entity.playlist, {\"count\": 1})" "title": "Створити $t(entity.playlist, {\"count\": 1})"
}, },
"createRadioStation": { "createRadioStation": {
"success": "радіостанція створена успішно", "success": "Радіостанція створена успішно",
"title": "створити радіостанцію", "title": "Створити радіостанцію",
"input_homepageUrl": "адреса домашньої сторінки", "input_homepageUrl": "Адреса домашньої сторінки",
"input_name": "назва", "input_name": "Назва",
"input_streamUrl": "URL-адреса потоку" "input_streamUrl": "URL-адреса потоку"
}, },
"deletePlaylist": { "deletePlaylist": {
"input_confirm": "введіть ім'я $t(entity.playlist, {\"count\": 1}) для підтвердження", "input_confirm": "Введіть ім'я $t(entity.playlist, {\"count\": 1}) для підтвердження",
"success": "$t(entity.playlist, {\"count\": 1}) успішно видалено", "success": "$t(entity.playlist, {\"count\": 1}) успішно видалено",
"title": "видалити $t(entity.playlist, {\"count\": 1})" "title": "Видалити $t(entity.playlist, {\"count\": 1})"
}, },
"editPlaylist": { "editPlaylist": {
"publicJellyfinNote": "Jellyfin з якоїсь причини не показує, чи є плейлист публічним чи ні. Якщо ви хочете, щоб він залишався публічним, виберіть варіант нижче", "publicJellyfinNote": "Jellyfin з якоїсь причини не показує, чи є плейлист публічним чи ні. Якщо ви хочете, щоб він залишався публічним, виберіть варіант нижче",
"editNote": "ручне редагування не рекомендується для великих плейлистів. ви впевнені, що готові прийняти ризик втрати даних, який виникає при перезапису існуючого плейлисту?",
"success": "$t(entity.playlist, {\"count\": 1}) успішно оновлено", "success": "$t(entity.playlist, {\"count\": 1}) успішно оновлено",
"title": "змінити $t(entity.playlist, {\"count\": 1})" "title": "Змінити $t(entity.playlist, {\"count\": 1})"
}, },
"lyricsExport": { "lyricsExport": {
"export": "експортувати тексти пісень", "export": "Експортувати тексти пісень",
"input_synced": "експортувати синхронізовані тексти пісень", "input_synced": "Експортувати синхронізовані тексти пісень",
"input_offset": "$t(setting.lyricOffset)" "input_offset": "$t(setting.lyricOffset)"
}, },
"lyricSearch": { "lyricSearch": {
"input_artist": "$t(entity.artist, {\"count\": 1})", "input_artist": "$t(entity.artist, {\"count\": 1})",
"input_name": "$t(common.name)", "input_name": "$t(common.name)",
"title": "шукати тексти пісень" "title": "Шукати тексти пісень"
}, },
"queryEditor": { "queryEditor": {
"title": "редактор запитів", "title": "Редактор запитів",
"input_optionMatchAll": "збіг за всіма", "input_optionMatchAll": "Збіг за всіма",
"input_optionMatchAny": "збіг за будь-яким", "input_optionMatchAny": "Збіг за будь-яким",
"addRuleGroup": "додати групу правил", "addRuleGroup": "Додати групу правил",
"removeRuleGroup": "видалити групу правил", "removeRuleGroup": "Видалити групу правил",
"resetToDefault": "скинути до заводських налаштувань", "resetToDefault": "Скинути до заводських налаштувань",
"clearFilters": "очистити фільтри" "clearFilters": "Очистити фільтри"
}, },
"saveQueue": { "saveQueue": {
"success": "черга відтворення збережена на сервері" "success": "Черга відтворення збережена на сервері"
}, },
"shareItem": { "shareItem": {
"allowDownloading": "дозволити завантаження", "allowDownloading": "Дозволити завантаження",
"description": "опис", "description": "Опис",
"setExpiration": "встановити термін дії", "setExpiration": "Встановити термін дії",
"success": "посилання для спільного використання скопійовано в буфер обміну (натисніть тут, щоб відкрити)", "success": "Посилання для спільного використання скопійовано в буфер обміну (натисніть тут, щоб відкрити)",
"expireInvalid": "термін дії повинен бути в майбутньому", "expireInvalid": "Термін дії повинен бути в майбутньому",
"createFailed": "не вдалося створити спільний доступ (чи ввімкнено спільний доступ?)" "createFailed": "Не вдалося створити спільний доступ (чи ввімкнено спільний доступ?)",
"copyToClipboard": "Скопіювати до буфера обміну: Ctrl+C, enter",
"successMustClick": "Посилання успішно створено, натисніть сюди, щоб відкрити"
}, },
"shuffleAll": { "shuffleAll": {
"title": "відтворити випадково", "title": "Відтворити випадково",
"input_genre": "$t(entity.genre, {\"count\": 1})", "input_genre": "$t(entity.genre, {\"count\": 1})",
"input_limit": "скільки пісень?", "input_limit": "Скільки пісень?",
"input_minYear": "від року", "input_minYear": "Від року",
"input_maxYear": "до року", "input_maxYear": "До року",
"input_played": "відтворити фільтр", "input_played": "Відтворити фільтр",
"input_played_optionAll": "всі треки", "input_played_optionAll": "Всі треки",
"input_played_optionUnplayed": "тільки не відтворені треки", "input_played_optionUnplayed": "Тільки не відтворені треки",
"input_played_optionPlayed": "тільки відтворені треки" "input_played_optionPlayed": "Тільки відтворені треки"
}, },
"updateServer": { "updateServer": {
"success": "сервер успішно оновлено", "success": "Сервер успішно оновлено",
"title": "оновити сервер" "title": "Оновити сервер"
}, },
"privateMode": { "privateMode": {
"enabled": "приватний режим увімкнено, стан відтворення тепер приховано від зовнішніх інтеграцій", "enabled": "Приватний режим увімкнено, стан відтворення тепер приховано від зовнішніх інтеграцій",
"disabled": "приватний режим вимкнено, стан відтворення тепер видно для увімкнених зовнішніх інтеграцій", "disabled": "Приватний режим вимкнено, стан відтворення тепер видно для увімкнених зовнішніх інтеграцій",
"title": "приватний режим" "title": "Приватний режим"
},
"editRadioStation": {
"success": "Радіо станція успішно оновлена"
} }
}, },
"player": { "player": {
"skip": "пропустити" "skip": "Пропустити"
}, },
"page": { "page": {
"albumArtistDetail": { "albumArtistDetail": {
"about": "Про {{artist}}", "about": "Про {{artist}}",
"appearsOn": "з'являється на", "appearsOn": "З'являється на",
"favoriteSongs": "улюблені пісні", "favoriteSongs": "Улюблені пісні",
"groupingTypeAll": "всі типи випуску", "groupingTypeAll": "Всі типи випуску",
"groupingTypePrimary": "основні типи випуску", "groupingTypePrimary": "Основні типи випуску",
"recentReleases": "останні випуски", "recentReleases": "Останні випуски",
"viewDiscography": "переглянути дискографію", "viewDiscography": "Переглянути дискографію",
"relatedArtists": "подібні $t(entity.artist, {\"count\": 2})", "relatedArtists": "Подібні $t(entity.artist, {\"count\": 2})",
"topSongs": "найкращі пісні", "topSongs": "Найкращі пісні",
"topSongsCommunity": "спільнота", "topSongsCommunity": "Спільнота",
"topSongsFrom": "найкращі пісні від {{title}}", "topSongsFrom": "Найкращі пісні від {{title}}",
"topSongsPersonal": "особисте", "topSongsPersonal": "Особисте",
"favoriteSongsFrom": "улюблені пісні від {{title}}", "favoriteSongsFrom": "Улюблені пісні від {{title}}",
"viewAll": "показати все", "viewAll": "Показати все",
"viewAllTracks": "показати усі $t(entity.track, {\"count\": 2})" "viewAllTracks": "Показати усі $t(entity.track, {\"count\": 2})"
}, },
"albumArtistList": { "albumArtistList": {
"title": "$t(entity.albumArtist, {\"count\": 2})" "title": "$t(entity.albumArtist, {\"count\": 2})"
}, },
"albumDetail": { "albumDetail": {
"moreFromArtist": "більше від цього $t(entity.artist, {\"count\": 1})", "moreFromArtist": "Більше від цього $t(entity.artist, {\"count\": 1})",
"moreFromGeneric": "більше від {{item}}", "moreFromGeneric": "Більше від {{item}}",
"released": "видано" "released": "Видано"
}, },
"albumList": { "albumList": {
"artistAlbums": "альбоми виконавця {{artist}}", "artistAlbums": "Альбоми виконавця {{artist}}",
"genreAlbums": "\"{{genre}}\" $t(entity.album, {\"count\": 2})", "genreAlbums": "\"{{genre}}\" $t(entity.album, {\"count\": 2})",
"title": "$t(entity.album, {\"count\": 2})" "title": "$t(entity.album, {\"count\": 2})"
}, },
"radioList": { "radioList": {
"title": "радіостанції" "title": "Радіостанції"
}, },
"releasenotes": { "releasenotes": {
"commitsSinceStable": "комміти від {{stable}}", "commitsSinceStable": "Комміти від {{stable}}",
"noNewCommits": "немає нових коммітів у цьому періоді", "noNewCommits": "Немає нових коммітів у цьому періоді",
"noStableReleaseToCompare": "немає доступної стабільної версії для порівняння" "noStableReleaseToCompare": "Немає доступної стабільної версії для порівняння"
}, },
"favorites": { "favorites": {
"title": "$t(entity.favorite, {\"count\": 2})" "title": "$t(entity.favorite, {\"count\": 2})"
@@ -487,30 +501,30 @@
"privateMode": "(Приватний режим)" "privateMode": "(Приватний режим)"
}, },
"appMenu": { "appMenu": {
"collapseSidebar": "згорнути бічну панель", "collapseSidebar": "Згорнути бічну панель",
"commandPalette": "відкрити палітру команд", "commandPalette": "Відкрити палітру команд",
"expandSidebar": "розгорнути бічну панель", "expandSidebar": "Розгорнути бічну панель",
"goBack": "повернутися назад", "goBack": "Повернутися назад",
"goForward": "перейти вперед", "goForward": "Перейти вперед",
"manageServers": "управління серверами", "manageServers": "Управління серверами",
"privateModeOff": "вимкнути приватний режим", "privateModeOff": "Вимкнути приватний режим",
"privateModeOn": "увімкнути приватний режим", "privateModeOn": "Увімкнути приватний режим",
"openBrowserDevtools": "відкрити інструменти розробника", "openBrowserDevtools": "Відкрити інструменти розробника",
"quit": "$t(common.quit)", "quit": "$t(common.quit)",
"selectServer": "вибрати сервер", "selectServer": "Вибрати сервер",
"selectMusicFolder": "вибрати папку з музикою", "selectMusicFolder": "Вибрати папку з музикою",
"noMusicFolder": "не вибрано папку з музикою", "noMusicFolder": "Не вибрано папку з музикою",
"multipleMusicFolders": "Вибрано {{count}} папок з музикою", "multipleMusicFolders": "Вибрано {{count}} папок з музикою",
"settings": "$t(common.setting, {\"count\": 2})", "settings": "$t(common.setting, {\"count\": 2})",
"version": "версія {{version}}" "version": "Версія {{version}}"
}, },
"manageServers": { "manageServers": {
"title": "управління серверами", "title": "Управління серверами",
"serverDetails": "інформація про сервер", "serverDetails": "Інформація про сервер",
"url": "URL-адреса", "url": "URL-адреса",
"username": "Ім'я користувача", "username": "Ім'я користувача",
"editServerDetailsTooltip": "редагувати дані сервера", "editServerDetailsTooltip": "Редагувати дані сервера",
"removeServer": "видалити сервер" "removeServer": "Видалити сервер"
}, },
"contextMenu": { "contextMenu": {
"addFavorite": "$t(action.addToFavorites)", "addFavorite": "$t(action.addToFavorites)",
@@ -521,7 +535,7 @@
"createPlaylist": "$t(action.createPlaylist)", "createPlaylist": "$t(action.createPlaylist)",
"deletePlaylist": "$t(action.deletePlaylist)", "deletePlaylist": "$t(action.deletePlaylist)",
"deselectAll": "$t(action.deselectAll)", "deselectAll": "$t(action.deselectAll)",
"download": "завантажити", "download": "Завантажити",
"moveItems": "$t(action.moveItems)", "moveItems": "$t(action.moveItems)",
"moveToNext": "$t(action.moveToNext)", "moveToNext": "$t(action.moveToNext)",
"moveToBottom": "$t(action.moveToBottom)", "moveToBottom": "$t(action.moveToBottom)",
@@ -534,11 +548,57 @@
"removeFromQueue": "$t(action.removeFromQueue)", "removeFromQueue": "$t(action.removeFromQueue)",
"setRating": "$t(action.setRating)", "setRating": "$t(action.setRating)",
"playShuffled": "$t(player.shuffle)", "playShuffled": "$t(player.shuffle)",
"shareItem": "поділитися елементом", "shareItem": "Поділитися елементом",
"goTo": "перейти до", "goTo": "Перейти до",
"goToAlbum": "перейти до $t(entity.album, {\"count\": 1})", "goToAlbum": "Перейти до $t(entity.album, {\"count\": 1})",
"goToAlbumArtist": "перейти до $t(entity.albumArtist, {\"count\": 1})", "goToAlbumArtist": "Перейти до $t(entity.albumArtist, {\"count\": 1})",
"showDetails": "отримати інформацію" "showDetails": "Отримати інформацію"
},
"fullscreenPlayer": {
"config": {
"dynamicBackground": "Динамічний фон",
"dynamicImageBlur": "Розмір розмиття зображення",
"dynamicIsImage": "Включити фонове зображення",
"followCurrentLyric": "Слідкувати за поточним рядком",
"lyricAlignment": "Вирівнювання тексту",
"lyricOffset": "Затримка тексту (мс)",
"lyricGap": "Розмір між рядками",
"lyricSize": "Розмір тексту",
"opacity": "Непрозорість",
"showLyricMatch": "Показувати збіг тексту пісень",
"showLyricProvider": "Показувати джерело тексту пісень",
"synchronized": "Синхронізовано",
"unsynchronized": "Несинхронізовано",
"useImageAspectRatio": "Використовувати співвідношення сторін зображення"
},
"lyrics": "Текст пісні",
"related": "Пов'язані",
"upNext": "Далі",
"visualizer": "Візуалізатор",
"noLyrics": "Текст пісні не знайдено"
},
"genreList": {
"showAlbums": "Показати $t(entity.genre, {\"count\": 1}) $t(entity.album, {\"count\": 2})",
"showTracks": "Показати $t(entity.genre, {\"count\": 1}) $t(entity.track, {\"count\": 2})",
"title": "$t(entity.genre, {\"count\": 2})"
},
"folderList": {
"title": "$t(entity.folder, {\"count\": 2})"
},
"globalSearch": {
"commands": {
"goToPage": "Перейти до сторінки",
"searchFor": "Шукати на {{query}}",
"serverCommands": "Команди сервера"
},
"title": "Команди"
},
"home": {
"explore": "Дослідити з вашої бібліотеки",
"genres": "$t(entity.genre, {\"count\": 2})",
"mostPlayed": "Найбільш відтворені",
"newlyAdded": "Нещодавно додані релізи",
"recentlyPlayed": "Нещодавно відтворені"
} }
} }
} }
+94 -47
View File
@@ -19,7 +19,10 @@
"goToPage": "前往页面", "goToPage": "前往页面",
"openIn": { "openIn": {
"lastfm": "在 Last.fm 中打开", "lastfm": "在 Last.fm 中打开",
"musicbrainz": "在 MusicBrainz 中打开" "musicbrainz": "在 MusicBrainz 中打开",
"listenbrainz": "在 ListenBrainz 中打开",
"qobuz": "在 Qobuz 中打开",
"spotify": "在 Spotify 中打开"
}, },
"moveToNext": "移至下一首", "moveToNext": "移至下一首",
"downloadStarted": "开始下载 {{count}} 个项目", "downloadStarted": "开始下载 {{count}} 个项目",
@@ -43,7 +46,7 @@
"common": { "common": {
"increase": "增高", "increase": "增高",
"rating": "评分", "rating": "评分",
"bpm": "bpm", "bpm": "BPM",
"refresh": "刷新", "refresh": "刷新",
"unknown": "未知", "unknown": "未知",
"edit": "编辑", "edit": "编辑",
@@ -75,7 +78,7 @@
"forward": "前进", "forward": "前进",
"delete": "删除", "delete": "删除",
"cancel": "取消", "cancel": "取消",
"forceRestartRequired": "重启应用使更改生效…关闭通知即可重启", "forceRestartRequired": "重启应用使更改生效…关闭通知即可重启",
"setting_other": "设置", "setting_other": "设置",
"version": "版本", "version": "版本",
"title": "标题", "title": "标题",
@@ -108,7 +111,7 @@
"duration": "时长", "duration": "时长",
"ok": "好", "ok": "好",
"no": "否", "no": "否",
"playerMustBePaused": "播放器必须暂停", "playerMustBePaused": "播放器必须暂停",
"channel_other": "频道", "channel_other": "频道",
"none": "无", "none": "无",
"disc": "碟片", "disc": "碟片",
@@ -156,7 +159,10 @@
"filter_single": "单项", "filter_single": "单项",
"mood": "氛围", "mood": "氛围",
"rename": "重命名", "rename": "重命名",
"filter_multiple": "多项" "filter_multiple": "多项",
"newVersionAvailable": "新版本现已可用",
"numberOfResults": "{{numberOfResults}} 结果",
"grouping": "分组"
}, },
"entity": { "entity": {
"albumArtist_other": "专辑艺术家", "albumArtist_other": "专辑艺术家",
@@ -202,8 +208,8 @@
"queue_clear": "清空播放队列", "queue_clear": "清空播放队列",
"muted": "已静音", "muted": "已静音",
"unfavorite": "取消收藏", "unfavorite": "取消收藏",
"queue_moveToTop": "将所选项移至部", "queue_moveToTop": "将所选项移至部",
"queue_moveToBottom": "将所选项移至部", "queue_moveToBottom": "将所选项移至部",
"shuffle_off": "禁用随机播放", "shuffle_off": "禁用随机播放",
"addLast": "最后", "addLast": "最后",
"mute": "静音", "mute": "静音",
@@ -234,12 +240,12 @@
"setting": { "setting": {
"crossfadeStyle_description": "选择用于音频播放器的淡入淡出风格", "crossfadeStyle_description": "选择用于音频播放器的淡入淡出风格",
"hotkey_favoriteCurrentSong": "收藏$t(common.currentSong)", "hotkey_favoriteCurrentSong": "收藏$t(common.currentSong)",
"audioExclusiveMode_description": "启用独占输出模式。在此模式下,系统通常被锁定为只有 mpv 能够输出音频", "audioExclusiveMode_description": "启用独占输出模式。在此模式下,系统通常被锁定为只有 MPV 能够输出音频",
"disableLibraryUpdateOnStartup": "禁用启动时查询新版本", "disableLibraryUpdateOnStartup": "禁用启动时查询新版本",
"gaplessAudio": "无缝音频", "gaplessAudio": "无缝音频",
"audioPlayer_description": "选择用于播放的音频播放器", "audioPlayer_description": "选择用于播放的音频播放器",
"globalMediaHotkeys": "全局媒体快捷键", "globalMediaHotkeys": "全局媒体快捷键",
"gaplessAudio_description": "调整 mpv 无缝音频设置", "gaplessAudio_description": "调整 MPV 无缝音频设置",
"followLyric_description": "滚动歌词到当前播放位置", "followLyric_description": "滚动歌词到当前播放位置",
"audioExclusiveMode": "音频独占模式", "audioExclusiveMode": "音频独占模式",
"font": "字体", "font": "字体",
@@ -255,7 +261,7 @@
"followLyric": "跟随当前歌词", "followLyric": "跟随当前歌词",
"crossfadeDuration": "淡入淡出持续时间", "crossfadeDuration": "淡入淡出持续时间",
"audioPlayer": "音频播放器", "audioPlayer": "音频播放器",
"discordApplicationId": "{{discord}} 应用 id", "discordApplicationId": "{{discord}} 应用 ID",
"applicationHotkeys_description": "配置应用快捷键。勾选设为全局快捷键(仅桌面端)", "applicationHotkeys_description": "配置应用快捷键。勾选设为全局快捷键(仅桌面端)",
"customFontPath_description": "设置应用使用的自定义字体路径", "customFontPath_description": "设置应用使用的自定义字体路径",
"gaplessAudio_optionWeak": "弱(推荐)", "gaplessAudio_optionWeak": "弱(推荐)",
@@ -279,7 +285,7 @@
"scrobble": "记录播放信息", "scrobble": "记录播放信息",
"skipDuration_description": "设置每次按下跳过按钮将会跳过的时长", "skipDuration_description": "设置每次按下跳过按钮将会跳过的时长",
"fontType_optionSystem": "系统字体", "fontType_optionSystem": "系统字体",
"mpvExecutablePath_description": "设置 mpv 可执行文件的路径。如果留空,则使用默认路径", "mpvExecutablePath_description": "设置 MPV 可执行文件的路径。如果留空,则使用默认路径",
"sampleRate": "采样率", "sampleRate": "采样率",
"sidePlayQueueStyle_optionAttached": "吸附", "sidePlayQueueStyle_optionAttached": "吸附",
"sidebarConfiguration": "侧边栏设定", "sidebarConfiguration": "侧边栏设定",
@@ -328,7 +334,7 @@
"hotkey_toggleShuffle": "切换随机", "hotkey_toggleShuffle": "切换随机",
"theme": "主题", "theme": "主题",
"playbackStyle_description": "选择音频播放器的播放风格", "playbackStyle_description": "选择音频播放器的播放风格",
"mpvExecutablePath": "mpv 可执行文件路径", "mpvExecutablePath": "MPV 可执行文件路径",
"hotkey_rate2": "评为 2 星", "hotkey_rate2": "评为 2 星",
"playButtonBehavior_description": "设置将歌曲添加到播放队列时播放按钮的默认行为", "playButtonBehavior_description": "设置将歌曲添加到播放队列时播放按钮的默认行为",
"minimumScrobblePercentage_description": "歌曲被记录为已播放所需的最小播放百分比", "minimumScrobblePercentage_description": "歌曲被记录为已播放所需的最小播放百分比",
@@ -338,7 +344,7 @@
"savePlayQueue": "保存播放队列", "savePlayQueue": "保存播放队列",
"minimumScrobbleSeconds_description": "歌曲被记录为已播放所需的最小播放时间", "minimumScrobbleSeconds_description": "歌曲被记录为已播放所需的最小播放时间",
"skipPlaylistPage_description": "打开歌单时,直接查看歌曲列表而非查看默认页面", "skipPlaylistPage_description": "打开歌单时,直接查看歌曲列表而非查看默认页面",
"fontType_description": "内置字体可以选择 feishin 提供的字体之一。系统字体允许您选择操作系统提供的任何字体。自定义选项允许您使用自己的字体", "fontType_description": "内置字体可以选择 Feishin 提供的字体之一。系统字体允许您选择操作系统提供的任何字体。自定义选项允许您使用自己的字体",
"playButtonBehavior": "播放按钮行为", "playButtonBehavior": "播放按钮行为",
"volumeWheelStep": "音量滚轮分度", "volumeWheelStep": "音量滚轮分度",
"sidebarPlaylistList_description": "显示或隐藏侧边栏歌单列表", "sidebarPlaylistList_description": "显示或隐藏侧边栏歌单列表",
@@ -379,20 +385,20 @@
"replayGainClipping_description": "自动降低增益以防止{{ReplayGain}}造成削波", "replayGainClipping_description": "自动降低增益以防止{{ReplayGain}}造成削波",
"replayGainPreamp": "{{ReplayGain}}前置放大(分贝)", "replayGainPreamp": "{{ReplayGain}}前置放大(分贝)",
"replayGainClipping": "{{ReplayGain}}削波", "replayGainClipping": "{{ReplayGain}}削波",
"discordUpdateInterval": "{{discord}} rich presence 更新间隔", "discordUpdateInterval": "{{discord}} Rich Presence 更新间隔",
"discordApplicationId_description": "{{discord}} rich presence 应用 id(默认为 {{defaultId}}", "discordApplicationId_description": "{{discord}} Rich Presence 应用 ID(默认为 {{defaultId}}",
"discordUpdateInterval_description": "更新间隔秒数(至少 15 秒)", "discordUpdateInterval_description": "更新间隔秒数(至少 15 秒)",
"discordRichPresence_description": "在 {{discord}} rich presence 中显示播放状态。图片键为:{{icon}}、{{playing}} 和 {{paused}}", "discordRichPresence_description": "在 {{discord}} Rich Presence 中显示播放状态。图片键为:{{icon}}、{{playing}} 和 {{paused}}",
"accentColor": "强调色", "accentColor": "强调色",
"accentColor_description": "设置应用的强调色", "accentColor_description": "设置应用的强调色",
"replayGainPreamp_description": "调整应用在{{ReplayGain}}值上的前置放大增益", "replayGainPreamp_description": "调整应用在{{ReplayGain}}值上的前置放大增益",
"discordIdleStatus": "显示 rich presence 闲置状态", "discordIdleStatus": "显示 Rich Presence 闲置状态",
"clearCache": "清除浏览器缓存", "clearCache": "清除浏览器缓存",
"buttonSize": "播放器栏按钮大小", "buttonSize": "播放器栏按钮大小",
"buttonSize_description": "播放器栏按钮大小", "buttonSize_description": "播放器栏按钮大小",
"clearCache_description": "feishin的“硬清除”。除了清除feishin的缓存,清空浏览器缓存(保存的图像和其他资源)。服务器凭据和设置会被保留", "clearCache_description": "Feishin的“硬清除”。除了清除Feishin的缓存,清空浏览器缓存(保存的图像和其他资源)。服务器凭据和设置会被保留",
"clearQueryCache_description": "feishin的“软清除”。这将会刷新播放列表、元数据并重置保存的歌词。设置、服务器凭据和缓存图像会被保留", "clearQueryCache_description": "Feishin的“软清除”。这将会刷新播放列表、元数据并重置保存的歌词。设置、服务器凭据和缓存图像会被保留",
"clearQueryCache": "清除feishin缓存", "clearQueryCache": "清除Feishin缓存",
"externalLinks": "显示外部链接", "externalLinks": "显示外部链接",
"externalLinks_description": "允许在艺术家/专辑页面上显示外部链接(Last.fm、MusicBrainz", "externalLinks_description": "允许在艺术家/专辑页面上显示外部链接(Last.fm、MusicBrainz",
"mpvExtraParameters_help": "每行一个", "mpvExtraParameters_help": "每行一个",
@@ -414,10 +420,10 @@
"contextMenu_description": "允许您隐藏右键单击项目时显示在菜单中的项目。未选中的项目将被隐藏", "contextMenu_description": "允许您隐藏右键单击项目时显示在菜单中的项目。未选中的项目将被隐藏",
"customCssEnable_description": "允许编写自定义 css", "customCssEnable_description": "允许编写自定义 css",
"customCss": "自定义css", "customCss": "自定义css",
"customCss_description": "自定义css内容。注意:内容和远程url是不允许的属性。内容预览展示如下。出于安全考虑,您未设置的其它字段也会显示", "customCss_description": "自定义css内容。注意:内容和远程URL是不允许的属性。内容预览展示如下。出于安全考虑,您未设置的其它字段也会显示",
"contextMenu": "上下文菜单(右键单击)配置", "contextMenu": "上下文菜单(右键单击)配置",
"customCssEnable": "启用自定义 css", "customCssEnable": "启用自定义 css",
"customCssNotice": "警告:虽然预设了一些安全限制(不允许 url() 和 content:),但使用自定义 css 仍然会因更改界面而带来风险", "customCssNotice": "警告:虽然预设了一些安全限制(不允许 URL() 和 content:),但使用自定义 css 仍然会因更改界面而带来风险",
"transcode_description": "可以转码为不同的格式", "transcode_description": "可以转码为不同的格式",
"transcodeBitrate": "转码比特率", "transcodeBitrate": "转码比特率",
"albumBackground": "专辑背景图片", "albumBackground": "专辑背景图片",
@@ -445,14 +451,14 @@
"lastfmApiKey": "{{lastfm}} API 密钥", "lastfmApiKey": "{{lastfm}} API 密钥",
"lastfmApiKey_description": "{{lastfm}} 的 API 密钥。封面艺术图所需", "lastfmApiKey_description": "{{lastfm}} 的 API 密钥。封面艺术图所需",
"discordServeImage": "从服务器提供 {{discord}} 图像", "discordServeImage": "从服务器提供 {{discord}} 图像",
"discordServeImage_description": "从服务器本身分享 {{discord}} rich presence 的封面艺术,仅适用于 Jellyfin 和 Navidrome。 {{discord}} 使用机器人来获取图像,因此您的服务器必须可通过公共互联网访问", "discordServeImage_description": "从服务器本身分享 {{discord}} Rich Presence 的封面艺术,仅适用于 Jellyfin 和 Navidrome。 {{discord}} 使用机器人来获取图像,因此您的服务器必须可通过公共互联网访问",
"musicbrainz": "显示 MusicBrainz 链接", "musicbrainz": "显示 MusicBrainz 链接",
"musicbrainz_description": "在存在 MusicBrainz ID 的艺术家/专辑页面上显示 MusicBrainz 链接", "musicbrainz_description": "在艺术家/专辑页面上显示 MusicBrainz 链接(如果存在 MusicBrainz ID",
"lastfm": "显示 last.fm 链接", "lastfm": "显示 Last.fm 链接",
"lastfm_description": "在艺术家/专辑页面上显示 Last.fm 的链接", "lastfm_description": "在艺术家/专辑页面上显示 Last.fm 的链接",
"preferLocalLyrics_description": "优先选择本地歌词(如有),而不是远程歌词", "preferLocalLyrics_description": "优先选择本地歌词(如有),而不是远程歌词",
"preferLocalLyrics": "首选本地歌词", "preferLocalLyrics": "首选本地歌词",
"discordPausedStatus": "暂停时显示rich presence", "discordPausedStatus": "暂停时显示Rich Presence",
"discordPausedStatus_description": "启用后将在播放器暂停时显示状态", "discordPausedStatus_description": "启用后将在播放器暂停时显示状态",
"preservePitch": "保持音高", "preservePitch": "保持音高",
"preservePitch_description": "在调整播放速度时保持音高", "preservePitch_description": "在调整播放速度时保持音高",
@@ -483,7 +489,7 @@
"exportImportSettings_control_title": "导入/导出设置", "exportImportSettings_control_title": "导入/导出设置",
"exportImportSettings_destructiveWarning": "导入设置会破坏现有设置,请在点击下方“导入”按钮前仔细阅读以上内容!", "exportImportSettings_destructiveWarning": "导入设置会破坏现有设置,请在点击下方“导入”按钮前仔细阅读以上内容!",
"exportImportSettings_importBtn": "导入设置", "exportImportSettings_importBtn": "导入设置",
"exportImportSettings_importModalTitle": "导入 feishin 设置", "exportImportSettings_importModalTitle": "导入 Feishin 设置",
"exportImportSettings_importSuccess": "设置已成功导入!", "exportImportSettings_importSuccess": "设置已成功导入!",
"exportImportSettings_notValidJSON": "传递的文件不是有效的 JSON 文件", "exportImportSettings_notValidJSON": "传递的文件不是有效的 JSON 文件",
"exportImportSettings_offendingKeyError": "\"{{offendingKey}}\" 不正确 - {{reason}}", "exportImportSettings_offendingKeyError": "\"{{offendingKey}}\" 不正确 - {{reason}}",
@@ -504,14 +510,14 @@
"combinedLyricsAndVisualizer": "在播放器侧边栏合并歌词和可视化界面", "combinedLyricsAndVisualizer": "在播放器侧边栏合并歌词和可视化界面",
"autoDJ_description": "自动添加相似歌曲到队列中", "autoDJ_description": "自动添加相似歌曲到队列中",
"notify_description": "歌曲变更时显示通知", "notify_description": "歌曲变更时显示通知",
"mpvExtraParameters_description": "向mpv传递额外参数", "mpvExtraParameters_description": "向MPV传递额外参数",
"audioFadeOnStatusChange": "音频改变时淡入淡出", "audioFadeOnStatusChange": "音频改变时淡入淡出",
"showVisualizerInSidebar": "在播放器侧边栏显示可视化效果", "showVisualizerInSidebar": "在播放器侧边栏显示可视化效果",
"showLyricsInSidebar": "在播放器侧边栏显示歌词", "showLyricsInSidebar": "在播放器侧边栏显示歌词",
"analyticsDisable": "退出使用情况的分析", "analyticsDisable": "退出使用情况的分析",
"artistReleaseTypeConfiguration": "艺术家发行类型设置", "artistReleaseTypeConfiguration": "艺术家发行类型设置",
"useThemeAccentColor": "使用主题强调色", "useThemeAccentColor": "使用主题强调色",
"mpvExtraParameters": "mpv额外参数", "mpvExtraParameters": "MPV额外参数",
"showRatings": "显示星级评分", "showRatings": "显示星级评分",
"followCurrentSong": "跟随当前歌曲", "followCurrentSong": "跟随当前歌曲",
"logLevel": "日志等级", "logLevel": "日志等级",
@@ -546,7 +552,7 @@
"autoDJ_timing": "定时", "autoDJ_timing": "定时",
"autoDJ_timing_description": "自动 DJ 触发前队列中剩余的歌曲数量", "autoDJ_timing_description": "自动 DJ 触发前队列中剩余的歌曲数量",
"crossfadeStyle": "交叉渐变风格", "crossfadeStyle": "交叉渐变风格",
"discordRichPresence": "{{discord}} rich presence", "discordRichPresence": "{{discord}} Rich Presence",
"homeFeatureStyle_description": "控制首页特色轮播图的样式", "homeFeatureStyle_description": "控制首页特色轮播图的样式",
"homeFeatureStyle": "首页特色旋转样式", "homeFeatureStyle": "首页特色旋转样式",
"homeFeatureStyle_optionMultiple": "多样", "homeFeatureStyle_optionMultiple": "多样",
@@ -580,7 +586,7 @@
"automaticUpdates_description": "自动检查并安装更新", "automaticUpdates_description": "自动检查并安装更新",
"releaseChannel_optionAlpha": "alpha(每日构建版)", "releaseChannel_optionAlpha": "alpha(每日构建版)",
"discordStateIcon": "显示播放图标", "discordStateIcon": "显示播放图标",
"discordStateIcon_description": "在 rich presence 状态中显示一个小的播放图标。启用“暂停时显示 rich presence 在线状态”后,暂停图标始终显示", "discordStateIcon_description": "在 Rich Presence 状态中显示一个小的播放图标。启用“暂停时显示 Rich Presence 在线状态”后,暂停图标始终显示",
"blurExplicitImages": "模糊显式图片", "blurExplicitImages": "模糊显式图片",
"blurExplicitImages_description": "专辑和歌曲封面若被标记为不雅内容,将会进行模糊处理", "blurExplicitImages_description": "专辑和歌曲封面若被标记为不雅内容,将会进行模糊处理",
"autosave": "自动保存播放队列", "autosave": "自动保存播放队列",
@@ -592,7 +598,21 @@
"primaryShade": "主色调", "primaryShade": "主色调",
"primaryShade_description": "覆盖按钮、链接和其他主色元素使用的主色调(0-9)", "primaryShade_description": "覆盖按钮、链接和其他主色元素使用的主色调(0-9)",
"playerItemConfiguration_description": "配置全屏播放器上显示的项目及其显示顺序", "playerItemConfiguration_description": "配置全屏播放器上显示的项目及其显示顺序",
"playerItemConfiguration": "播放器项目配置" "playerItemConfiguration": "播放器项目配置",
"listenbrainz_description": "在艺术家/专辑页面上显示 ListenBrainz 链接",
"listenbrainz": "显示 ListenBrainz 链接",
"qobuz_description": "在艺术家/专辑页面上显示 Qobuz 链接",
"qobuz": "显示 Qobuz 链接",
"spotify_description": "在艺术家/专辑页面上显示 Spotify 链接",
"spotify": "显示 Spotify 链接",
"nativeSpotify_description": "在 Spotify 应用中打开,而不是在浏览器中打开",
"nativeSpotify": "使用 Spotify 应用",
"sidePlayQueueLayout": "侧边播放队列布局",
"sidePlayQueueLayout_description": "设置附加侧边播放队列的布局",
"sidePlayQueueLayout_optionHorizontal": "水平",
"sidePlayQueueLayout_optionVertical": "垂直",
"waveformLoadingDelay": "波形加载延迟",
"waveformLoadingDelay_description": "加载波形前的延迟时间(秒)。如果在使用网页播放器时遇到卡顿现象,请增加此值。"
}, },
"error": { "error": {
"remotePortWarning": "重启服务器使新端口生效", "remotePortWarning": "重启服务器使新端口生效",
@@ -653,7 +673,7 @@
"fromYear": "起始年份", "fromYear": "起始年份",
"criticRating": "评论家评分", "criticRating": "评论家评分",
"trackNumber": "曲目", "trackNumber": "曲目",
"bpm": "bpm", "bpm": "BPM",
"artist": "$t(entity.artist, {\"count\": 1})", "artist": "$t(entity.artist, {\"count\": 1})",
"comment": "评论", "comment": "评论",
"isCompilation": "为合辑", "isCompilation": "为合辑",
@@ -667,7 +687,7 @@
"genre": "$t(entity.genre, {\"count\": 1})", "genre": "$t(entity.genre, {\"count\": 1})",
"note": "注释", "note": "注释",
"albumCount": "$t(entity.album, {\"count\": 2})数", "albumCount": "$t(entity.album, {\"count\": 2})数",
"id": "id", "id": "ID",
"disc": "碟片", "disc": "碟片",
"duration": "时长", "duration": "时长",
"album": "$t(entity.album, {\"count\": 1})", "album": "$t(entity.album, {\"count\": 1})",
@@ -905,12 +925,12 @@
"ignoreSsl": "忽略 ssl $t(common.restartRequired)", "ignoreSsl": "忽略 ssl $t(common.restartRequired)",
"ignoreCors": "忽略 cors $t(common.restartRequired)", "ignoreCors": "忽略 cors $t(common.restartRequired)",
"error_savePassword": "保存密码时出现错误", "error_savePassword": "保存密码时出现错误",
"input_url": "url", "input_url": "URL",
"input_preferInstantMixDescription": "仅使用即时混音来获取类似的歌曲。如果您有修改此行为的插件,则很有用", "input_preferInstantMixDescription": "仅使用即时混音来获取类似的歌曲。如果您有修改此行为的插件,则很有用",
"input_preferInstantMix": "首选即时混音", "input_preferInstantMix": "首选即时混音",
"input_preferRemoteUrl": "首选公共 url", "input_preferRemoteUrl": "首选公共 URL",
"input_remoteUrl": "公共 url", "input_remoteUrl": "公共 URL",
"input_remoteUrlPlaceholder": "可选:对外功能的公共 url" "input_remoteUrlPlaceholder": "可选:对外功能的公共 URL"
}, },
"addToPlaylist": { "addToPlaylist": {
"success": "添加$t(entity.trackWithCount, {\"count\": {{message}} })到$t(entity.playlistWithCount, {\"count\": {{numOfPlaylists}} })", "success": "添加$t(entity.trackWithCount, {\"count\": {{message}} })到$t(entity.playlistWithCount, {\"count\": {{numOfPlaylists}} })",
@@ -944,8 +964,7 @@
"editPlaylist": { "editPlaylist": {
"title": "编辑$t(entity.playlist, {\"count\": 1})", "title": "编辑$t(entity.playlist, {\"count\": 1})",
"publicJellyfinNote": "Jellyfin 出于某种原因不会显示播放列表是否公开。如果您希望保持公开,请选择以下输入", "publicJellyfinNote": "Jellyfin 出于某种原因不会显示播放列表是否公开。如果您希望保持公开,请选择以下输入",
"success": "$t(entity.playlist, {\"count\": 1})更新成功", "success": "$t(entity.playlist, {\"count\": 1})更新成功"
"editNote": "不建议对大型播放列表进行手动编辑,你确定接受新播放列表覆盖已有播放列表可能导致的数据丢失风险吗?"
}, },
"lyricSearch": { "lyricSearch": {
"title": "搜索歌词", "title": "搜索歌词",
@@ -996,6 +1015,9 @@
"input_played_optionPlayed": "仅已播放的曲目", "input_played_optionPlayed": "仅已播放的曲目",
"input_limit": "有多少首歌?", "input_limit": "有多少首歌?",
"input_played": "播放筛选器" "input_played": "播放筛选器"
},
"editRadioStation": {
"success": "电台更新成功"
} }
}, },
"table": { "table": {
@@ -1044,7 +1066,7 @@
"duration": "$t(common.duration)", "duration": "$t(common.duration)",
"dateAdded": "添加日期", "dateAdded": "添加日期",
"size": "$t(common.size)", "size": "$t(common.size)",
"bpm": "$t(common.bpm)", "bpm": "$t(common.BPM)",
"lastPlayed": "最后播放", "lastPlayed": "最后播放",
"trackNumber": "音轨编号", "trackNumber": "音轨编号",
"rowIndex": "行索引", "rowIndex": "行索引",
@@ -1090,7 +1112,7 @@
"releaseDate": "发布日期", "releaseDate": "发布日期",
"bitrate": "比特率", "bitrate": "比特率",
"title": "标题", "title": "标题",
"bpm": "bpm", "bpm": "BPM",
"dateAdded": "添加日期", "dateAdded": "添加日期",
"artist": "$t(entity.artist, {\"count\": 1})", "artist": "$t(entity.artist, {\"count\": 1})",
"songCount": "$t(entity.track, {\"count\": 2})", "songCount": "$t(entity.track, {\"count\": 2})",
@@ -1210,13 +1232,27 @@
"miscellaneousSettings": "杂项设置", "miscellaneousSettings": "杂项设置",
"options": { "options": {
"channelLayout": { "channelLayout": {
"single": "单项" "single": "单项",
"dualCombined": "双重组合",
"dualHorizontal": "双水平",
"dualVertical": "双垂直"
}, },
"mode": { "mode": {
"0": "[0] 离散频率" "0": "[0] 离散频率",
"1": "[1] 1/24倍频程 / 240频段",
"2": "[2] 1/12 倍频程 / 120 频段",
"3": "[3] 1/8倍频程 / 80频段",
"4": "[4] 1/6倍频程 / 60频段",
"5": "[5] 1/4倍频程 / 40频段",
"6": "[6] 1/3倍频程 / 30频段",
"7": "[7] 半倍频程 / 20 频段",
"8": "[8] 全倍频程 / 10 频段",
"10": "[10] 折线图 / 面积图"
}, },
"colorMode": { "colorMode": {
"gradient": "渐变" "gradient": "渐变",
"barIndex": "Bar-Index",
"barLevel": "Bar-Level"
}, },
"gradient": { "gradient": {
"classic": "经典", "classic": "经典",
@@ -1226,7 +1262,11 @@
"orangered": "橙红色" "orangered": "橙红色"
}, },
"frequencyScale": { "frequencyScale": {
"none": "无" "none": "无",
"bark": "树皮鳞片",
"linear": "线性刻度",
"log": "对数刻度",
"mel": "梅尔刻度"
}, },
"weightingFilter": { "weightingFilter": {
"none": "无", "none": "无",
@@ -1284,7 +1324,14 @@
"splitGradient": "渐变分割", "splitGradient": "渐变分割",
"showScaleX": "显示比例尺 X", "showScaleX": "显示比例尺 X",
"noteLabels": "笔记标签", "noteLabels": "笔记标签",
"showScaleY": "显示比例尺 Y" "showScaleY": "显示比例尺 Y",
"alphaBars": "Alpha 条",
"ansiBands": "ANSI 频段",
"ledBars": "LED 灯条",
"trueLeds": "真正的LED",
"lumiBars": "Lumi 条",
"outlineBars": "轮廓栏",
"roundBars": "圆条"
}, },
"queryBuilder": { "queryBuilder": {
"standardTags": "标准标签", "standardTags": "标准标签",
+107 -74
View File
@@ -3,7 +3,7 @@
"backward": "返回", "backward": "返回",
"biography": "簡介", "biography": "簡介",
"bitrate": "位元率", "bitrate": "位元率",
"bpm": "bpm", "bpm": "BPM",
"clear": "清空", "clear": "清空",
"collapse": "折疊", "collapse": "折疊",
"comingSoon": "即將推出…", "comingSoon": "即將推出…",
@@ -12,7 +12,7 @@
"delete": "刪除", "delete": "刪除",
"descending": "降冪", "descending": "降冪",
"description": "描述", "description": "描述",
"forceRestartRequired": "重新啟動應用程式使更改生效…關閉通知即可重啟", "forceRestartRequired": "重新啟動應用程式使更改生效…關閉通知即可重啟",
"menu": "選單", "menu": "選單",
"action_other": "操作", "action_other": "操作",
"add": "新增", "add": "新增",
@@ -39,7 +39,7 @@
"ok": "好", "ok": "好",
"owner": "所有者", "owner": "所有者",
"path": "路徑", "path": "路徑",
"playerMustBePaused": "播放器必須暫停", "playerMustBePaused": "播放器必須暫停",
"previousSong": "上一首$t(entity.track, {\"count\": 1})", "previousSong": "上一首$t(entity.track, {\"count\": 1})",
"quit": "退出", "quit": "退出",
"random": "隨機", "random": "隨機",
@@ -64,8 +64,8 @@
"cancel": "取消", "cancel": "取消",
"center": "中央", "center": "中央",
"channel_other": "聲道", "channel_other": "聲道",
"configure": "配置", "configure": "設定",
"create": "建", "create": "建",
"currentSong": "目前$t(entity.track, {\"count\": 1})", "currentSong": "目前$t(entity.track, {\"count\": 1})",
"minimize": "最小化", "minimize": "最小化",
"modified": "已修改", "modified": "已修改",
@@ -78,7 +78,7 @@
"newVersion": "已安裝新版本 ({{version}})", "newVersion": "已安裝新版本 ({{version}})",
"viewReleaseNotes": "查看發行註記", "viewReleaseNotes": "查看發行註記",
"albumGain": "專輯增益", "albumGain": "專輯增益",
"albumPeak": "專輯peak", "albumPeak": "專輯峰值",
"bitDepth": "位元深度", "bitDepth": "位元深度",
"close": "關閉", "close": "關閉",
"codec": "編碼", "codec": "編碼",
@@ -115,7 +115,10 @@
"rename": "重新命名", "rename": "重新命名",
"itemsMore": "{{count}} 更多", "itemsMore": "{{count}} 更多",
"filter_single": "單選", "filter_single": "單選",
"filter_multiple": "複選" "filter_multiple": "複選",
"newVersionAvailable": "有新的版本可供使用",
"numberOfResults": "{{numberOfResults}} 項結果",
"grouping": "分組"
}, },
"error": { "error": {
"endpointNotImplementedError": "{{serverType}} 尚未實現端點 {{endpoint}}", "endpointNotImplementedError": "{{serverType}} 尚未實現端點 {{endpoint}}",
@@ -124,13 +127,13 @@
"authenticationFailed": "驗證失敗", "authenticationFailed": "驗證失敗",
"credentialsRequired": "需要憑證", "credentialsRequired": "需要憑證",
"genericError": "發生了錯誤", "genericError": "發生了錯誤",
"invalidServer": "無效的服器", "invalidServer": "無效的服器",
"localFontAccessDenied": "無法取得本地字體", "localFontAccessDenied": "無法取得本地字體",
"loginRateError": "登請求嘗試次數過多,請稍後再試", "loginRateError": "登請求嘗試次數過多,請稍後再試",
"remoteDisableError": "$t(common.disable)遠端伺服器時出現錯誤", "remoteDisableError": "$t(common.disable)遠端伺服器時出現錯誤",
"remoteEnableError": "$t(common.enable)遠端伺服器時出現錯誤", "remoteEnableError": "$t(common.enable)遠端伺服器時出現錯誤",
"remotePortError": "設定遠端伺服器端口時發生錯誤", "remotePortError": "設定遠端伺服器連接埠時發生錯誤",
"remotePortWarning": "重啟伺服器使新端口生效", "remotePortWarning": "重啟伺服器使新連接埠生效",
"serverRequired": "需要伺服器", "serverRequired": "需要伺服器",
"sessionExpiredError": "工作階段已過期", "sessionExpiredError": "工作階段已過期",
"systemFontError": "嘗試取得系統字體時出現錯誤", "systemFontError": "嘗試取得系統字體時出現錯誤",
@@ -138,13 +141,13 @@
"mpvRequired": "需要 MPV", "mpvRequired": "需要 MPV",
"playbackError": "無法播放媒體", "playbackError": "無法播放媒體",
"badAlbum": "您看到此頁面是因為這首歌不是專輯的一部分。如果您的音樂資料夾頂層有一首歌,則很可能會看到此問題。 Jellyfin 僅將資料夾中的曲目分組", "badAlbum": "您看到此頁面是因為這首歌不是專輯的一部分。如果您的音樂資料夾頂層有一首歌,則很可能會看到此問題。 Jellyfin 僅將資料夾中的曲目分組",
"badValue": "無效選項{{value}}。該值不再存在", "badValue": "無效選項{{value}}。該值不再存在",
"networkError": "發生網路錯誤", "networkError": "發生網路錯誤",
"notificationDenied": "通知權限被拒絕。此設定無效", "notificationDenied": "通知權限被拒絕。此設定無效",
"openError": "無法開啟檔案", "openError": "無法開啟檔案",
"multipleServerSaveQueueError": "播放佇列中包含不是來自目前伺服器的歌曲,此操作不受支援", "multipleServerSaveQueueError": "播放佇列中包含不是來自目前伺服器的歌曲,此操作不受支援",
"saveQueueFailed": "儲存播放佇列失敗", "saveQueueFailed": "儲存播放佇列失敗",
"settingsSyncError": "偵測到渲染器與主程之間的設定不一致,請重新啟動應用程式以套用變更", "settingsSyncError": "偵測到渲染器與主程之間的設定不一致,請重新啟動應用程式以套用變更",
"noNetwork": "伺服器無法連線", "noNetwork": "伺服器無法連線",
"noNetworkDescription": "無法連接到此伺服器", "noNetworkDescription": "無法連接到此伺服器",
"invalidJson": "無效的 JSON", "invalidJson": "無效的 JSON",
@@ -198,7 +201,7 @@
"genres": "$t(entity.genre, {\"count\": 2})" "genres": "$t(entity.genre, {\"count\": 2})"
}, },
"appMenu": { "appMenu": {
"openBrowserDevtools": "開瀏覽器開發者工具", "openBrowserDevtools": "開瀏覽器開發者工具",
"collapseSidebar": "折疊側邊欄", "collapseSidebar": "折疊側邊欄",
"expandSidebar": "展開側邊欄", "expandSidebar": "展開側邊欄",
"goBack": "返回", "goBack": "返回",
@@ -230,7 +233,9 @@
"showLyricMatch": "顯示匹配的歌詞", "showLyricMatch": "顯示匹配的歌詞",
"dynamicImageBlur": "圖片模糊大小", "dynamicImageBlur": "圖片模糊大小",
"dynamicIsImage": "啟用背景圖片", "dynamicIsImage": "啟用背景圖片",
"lyricOffset": "歌詞偏移時間 (ms)" "lyricOffset": "歌詞偏移時間 (ms)",
"lyricOpacityNonActive": "非活躍歌詞的不透明度",
"lyricScaleNonActive": "非活躍歌詞的比例"
}, },
"lyrics": "歌詞", "lyrics": "歌詞",
"related": "相關", "related": "相關",
@@ -391,8 +396,8 @@
"next": "下一首", "next": "下一首",
"play": "播放", "play": "播放",
"playbackFetchCancel": "請稍等…關閉通知以取消", "playbackFetchCancel": "請稍等…關閉通知以取消",
"queue_moveToBottom": "使所選置", "queue_moveToBottom": "使所選置",
"queue_moveToTop": "使所選置", "queue_moveToTop": "使所選置",
"playSimilarSongs": "播放相似歌曲", "playSimilarSongs": "播放相似歌曲",
"viewQueue": "檢視佇列", "viewQueue": "檢視佇列",
"addLastShuffled": "新增至尾端 (隨機)", "addLastShuffled": "新增至尾端 (隨機)",
@@ -421,7 +426,7 @@
"hotkey_volumeDown": "音量降低", "hotkey_volumeDown": "音量降低",
"hotkey_volumeMute": "靜音", "hotkey_volumeMute": "靜音",
"minimumScrobblePercentage": "最小紀錄時長(百分比)", "minimumScrobblePercentage": "最小紀錄時長(百分比)",
"minimumScrobblePercentage_description": "歌曲被記錄為已播放(scrobble)所需的最小播放百分比", "minimumScrobblePercentage_description": "歌曲被記錄為已播放(Scrobble)所需的最小播放百分比",
"theme_description": "設定應用程式的主題", "theme_description": "設定應用程式的主題",
"accentColor": "強調色", "accentColor": "強調色",
"accentColor_description": "設定應用程式的強調色", "accentColor_description": "設定應用程式的強調色",
@@ -429,8 +434,8 @@
"applicationHotkeys_description": "設定應用程式快捷鍵。切換勾選框來設為全域快捷鍵(僅桌面端)", "applicationHotkeys_description": "設定應用程式快捷鍵。切換勾選框來設為全域快捷鍵(僅桌面端)",
"audioDevice": "音訊設備", "audioDevice": "音訊設備",
"audioDevice_description": "選擇用於播放的音訊設備", "audioDevice_description": "選擇用於播放的音訊設備",
"audioExclusiveMode": "音訊獨模式", "audioExclusiveMode": "音訊獨模式",
"audioExclusiveMode_description": "啟用獨輸出模式。在此模式下,系統通常被鎖定,只有 mpv 能夠輸出音訊", "audioExclusiveMode_description": "啟用獨輸出模式。在此模式下,系統通常被鎖定,只有 MPV 能夠輸出音訊。視覺化音訊截取在此選項啟用時不會作用",
"audioPlayer": "音訊播放器", "audioPlayer": "音訊播放器",
"crossfadeDuration": "淡入淡出持續時間", "crossfadeDuration": "淡入淡出持續時間",
"crossfadeDuration_description": "設定淡入淡出持續時間", "crossfadeDuration_description": "設定淡入淡出持續時間",
@@ -438,12 +443,12 @@
"customFontPath": "自定字體路徑", "customFontPath": "自定字體路徑",
"customFontPath_description": "設定應用程式使用的自定字體路徑", "customFontPath_description": "設定應用程式使用的自定字體路徑",
"disableLibraryUpdateOnStartup": "禁用啟動時檢查新版本", "disableLibraryUpdateOnStartup": "禁用啟動時檢查新版本",
"discordApplicationId": "{{discord}} 應用程式 id", "discordApplicationId": "{{discord}} 應用程式 ID",
"discordApplicationId_description": "{{discord}} rich presence 應用程式 id(預設為 {{defaultId}}", "discordApplicationId_description": "{{discord}} Rich Presence 應用程式 ID(預設為 {{defaultId}}",
"discordIdleStatus": "顯示 rich presence 閒置狀態", "discordIdleStatus": "顯示 Rich Presence 閒置狀態",
"discordIdleStatus_description": "啟用後將會在播放器閒置時更新狀態", "discordIdleStatus_description": "啟用後將會在播放器閒置時更新狀態",
"discordRichPresence_description": "在 {{discord}} rich presence 中顯示播放狀態。圖片鍵為:{{icon}}、{{playing}} 和 {{paused}}", "discordRichPresence_description": "在 {{discord}} Rich Presence 中顯示播放狀態。圖片鍵為:{{icon}}、{{playing}} 和 {{paused}}",
"discordUpdateInterval": "{{discord}} rich presence 更新間隔", "discordUpdateInterval": "{{discord}} Rich Presence 更新間隔",
"discordUpdateInterval_description": "更新間隔秒數(至少 15 秒)", "discordUpdateInterval_description": "更新間隔秒數(至少 15 秒)",
"enableRemote": "啟用遠端控制伺服器", "enableRemote": "啟用遠端控制伺服器",
"enableRemote_description": "啟用遠端控制伺服器,以允許其他設備控制此應用程式", "enableRemote_description": "啟用遠端控制伺服器,以允許其他設備控制此應用程式",
@@ -451,12 +456,12 @@
"followLyric": "跟隨目前歌詞", "followLyric": "跟隨目前歌詞",
"font_description": "設定應用程式使用的字體", "font_description": "設定應用程式使用的字體",
"fontType": "字體類型", "fontType": "字體類型",
"fontType_description": "內建字體可以選擇 feishin 提供的字體之一。系統字體允許您選擇作業系統提供的任何字體。自定選項允許您使用自己的字體", "fontType_description": "內建字體可以選擇 Feishin 提供的字體之一。系統字體允許您選擇作業系統提供的任何字體。自定選項允許您使用自己的字體",
"fontType_optionBuiltIn": "內建字體", "fontType_optionBuiltIn": "內建字體",
"fontType_optionCustom": "自定字體", "fontType_optionCustom": "自定字體",
"fontType_optionSystem": "系統字體", "fontType_optionSystem": "系統字體",
"gaplessAudio": "無間隔音訊", "gaplessAudio": "無間隔音訊",
"gaplessAudio_description": "調整 mpv 無間隔音訊設定", "gaplessAudio_description": "調整 MPV 無間隔音訊設定",
"gaplessAudio_optionWeak": "弱(建議)", "gaplessAudio_optionWeak": "弱(建議)",
"globalMediaHotkeys": "全域媒體快捷鍵", "globalMediaHotkeys": "全域媒體快捷鍵",
"hotkey_browserForward": "瀏覽器往前", "hotkey_browserForward": "瀏覽器往前",
@@ -495,15 +500,15 @@
"minimizeToTray": "最小化到系統匣", "minimizeToTray": "最小化到系統匣",
"minimizeToTray_description": "將應用程式最小化到系統匣", "minimizeToTray_description": "將應用程式最小化到系統匣",
"minimumScrobbleSeconds": "最小紀錄時間(秒)", "minimumScrobbleSeconds": "最小紀錄時間(秒)",
"minimumScrobbleSeconds_description": "歌曲被記錄為已播放(scrobble)所需的最小播放時間", "minimumScrobbleSeconds_description": "歌曲被記錄為已播放(Scrobble)所需的最小播放時間",
"mpvExecutablePath": "mpv 執行檔路徑", "mpvExecutablePath": "MPV 執行檔路徑",
"playbackStyle_optionCrossFade": "淡入淡出", "playbackStyle_optionCrossFade": "淡入淡出",
"playbackStyle_optionNormal": "一般", "playbackStyle_optionNormal": "一般",
"playButtonBehavior": "播放按鈕動作", "playButtonBehavior": "播放按鈕動作",
"playButtonBehavior_description": "設定歌曲新增到佇列時播放按鈕的預設動作", "playButtonBehavior_description": "設定歌曲新增到佇列時播放按鈕的預設動作",
"playButtonBehavior_optionAddLast": "$t(player.addLast)", "playButtonBehavior_optionAddLast": "$t(player.addLast)",
"playButtonBehavior_optionAddNext": "$t(player.addNext)", "playButtonBehavior_optionAddNext": "$t(player.addNext)",
"remotePort": "遠端控制伺服器端口", "remotePort": "遠端控制伺服器連接埠",
"remoteUsername": "遠端控制伺服器使用者名稱", "remoteUsername": "遠端控制伺服器使用者名稱",
"replayGainClipping": "{{ReplayGain}}削波", "replayGainClipping": "{{ReplayGain}}削波",
"replayGainFallback": "{{ReplayGain}}後備替代", "replayGainFallback": "{{ReplayGain}}後備替代",
@@ -517,7 +522,7 @@
"replayGainPreamp_description": "調整使用在{{ReplayGain}}值上的前置放大增益", "replayGainPreamp_description": "調整使用在{{ReplayGain}}值上的前置放大增益",
"savePlayQueue": "儲存播放佇列", "savePlayQueue": "儲存播放佇列",
"sampleRate_description": "如果選擇的取樣率與目前媒體的取樣率不同,請選擇要使用的輸出取樣率。小於 8000 的值將使用預設頻率", "sampleRate_description": "如果選擇的取樣率與目前媒體的取樣率不同,請選擇要使用的輸出取樣率。小於 8000 的值將使用預設頻率",
"savePlayQueue_description": "當應用程式關閉時儲存播放佇列,並在應用程式開時恢複它", "savePlayQueue_description": "當應用程式關閉時儲存播放佇列,並在應用程式開時恢複它",
"scrobble": "記錄播放資訊(Scrobble", "scrobble": "記錄播放資訊(Scrobble",
"scrobble_description": "在你的媒體伺服器中記錄播放資訊", "scrobble_description": "在你的媒體伺服器中記錄播放資訊",
"showSkipButton": "顯示跳過按鈕", "showSkipButton": "顯示跳過按鈕",
@@ -529,13 +534,13 @@
"sidebarConfiguration_description": "選擇側邊欄包含的項目與順序", "sidebarConfiguration_description": "選擇側邊欄包含的項目與順序",
"sidebarPlaylistList_description": "顯示或隱藏側邊欄歌單清單", "sidebarPlaylistList_description": "顯示或隱藏側邊欄歌單清單",
"sidePlayQueueStyle": "側邊播放佇列樣式", "sidePlayQueueStyle": "側邊播放佇列樣式",
"sidePlayQueueStyle_description": "設側邊播放佇列樣式", "sidePlayQueueStyle_description": "設側邊播放佇列樣式",
"sidePlayQueueStyle_optionAttached": "吸附", "sidePlayQueueStyle_optionAttached": "吸附",
"sidePlayQueueStyle_optionDetached": "分離", "sidePlayQueueStyle_optionDetached": "分離",
"skipDuration": "跳過時長", "skipDuration": "跳過時長",
"skipDuration_description": "設每次按下跳過按鈕將會跳過的時長", "skipDuration_description": "設每次按下跳過按鈕將會跳過的時長",
"skipPlaylistPage": "跳過播放清單頁面", "skipPlaylistPage": "跳過播放清單頁面",
"skipPlaylistPage_description": "開播放清單時,直接查看歌曲列表而非查看預設頁面", "skipPlaylistPage_description": "開播放清單時,直接查看歌曲列表而非查看預設頁面",
"theme": "主題", "theme": "主題",
"themeDark": "主題(深色)", "themeDark": "主題(深色)",
"useSystemTheme_description": "使用系統定義的淺色或深色主題", "useSystemTheme_description": "使用系統定義的淺色或深色主題",
@@ -558,37 +563,37 @@
"hotkey_favoriteCurrentSong": "收藏 $t(common.currentSong)", "hotkey_favoriteCurrentSong": "收藏 $t(common.currentSong)",
"hotkey_playbackStop": "停止", "hotkey_playbackStop": "停止",
"hotkey_rate0": "清除評分", "hotkey_rate0": "清除評分",
"mpvExecutablePath_description": "設定 mpv 執行檔的路徑。如果留空,則使用預設路徑", "mpvExecutablePath_description": "設定 MPV 執行檔的路徑。如果留空,則使用預設路徑",
"playbackStyle_description": "選擇播放器的播放風格", "playbackStyle_description": "選擇播放器的播放風格",
"playButtonBehavior_optionPlay": "$t(player.play)", "playButtonBehavior_optionPlay": "$t(player.play)",
"remotePassword": "遠端控制伺服器密碼", "remotePassword": "遠端控制伺服器密碼",
"remotePassword_description": "設定遠端控制伺服器的密碼。這些憑證預設以不安全的方式傳輸,因此您應該使用一個您不在意的唯一密碼", "remotePassword_description": "設定遠端控制伺服器的密碼。這些憑證預設以不安全的方式傳輸,因此您應該使用一個您不在意的唯一密碼",
"remotePort_description": "設定遠端控制伺服器的端口", "remotePort_description": "設定遠端控制伺服器的連接埠",
"remoteUsername_description": "設定遠端控制伺服器的使用者名稱。如果使用者名稱和密碼都為空,則身驗證將被禁用", "remoteUsername_description": "設定遠端控制伺服器的使用者名稱。如果使用者名稱和密碼都為空,則身驗證將被禁用",
"replayGainClipping_description": "自動降低增益以防止{{ReplayGain}}造成削波", "replayGainClipping_description": "自動降低增益以防止{{ReplayGain}}造成削波",
"showSkipButtons": "顯示跳過按鈕", "showSkipButtons": "顯示跳過按鈕",
"themeDark_description": "應用程式將使用深色主題", "themeDark_description": "應用程式將使用深色主題",
"clearQueryCache_description": "Feishin的軟清除。這將會刷新播放清單、曲目標籤並重置儲存的歌詞。會保留設定、伺服器憑證和暫存圖片", "clearQueryCache_description": "Feishin的軟清除。這將會刷新播放清單、曲目標籤並重置儲存的歌詞。會保留設定、伺服器憑證和暫存圖片",
"clearCache": "清除瀏覽器快取", "clearCache": "清除瀏覽器快取",
"clearCache_description": "Feishin的硬清除。除了清除Feishin的快取、清除瀏覽器快取(儲存的圖片和其他資源)。會保留伺服器憑證和設定", "clearCache_description": "Feishin的硬清除。除了清除Feishin的快取、清除瀏覽器快取(儲存的圖片和其他資源)。會保留伺服器憑證和設定",
"clearQueryCache": "清除Feishin快取", "clearQueryCache": "清除Feishin快取",
"buttonSize": "播放器欄按鈕大小", "buttonSize": "播放器欄按鈕大小",
"buttonSize_description": "播放器欄按鈕大小", "buttonSize_description": "播放器欄按鈕大小",
"albumBackground": "專輯背景圖片", "albumBackground": "專輯背景圖片",
"albumBackground_description": "為包含專輯封面的專輯頁面新增背景圖片", "albumBackground_description": "為包含專輯封面的專輯頁面新增背景圖片",
"albumBackgroundBlur": "專輯背景圖片模糊大小", "albumBackgroundBlur": "專輯背景圖片模糊大小",
"albumBackgroundBlur_description": "調整應用於專輯背景圖片的模糊量", "albumBackgroundBlur_description": "調整應用程式於專輯背景圖片的模糊量",
"artistConfiguration": "專輯藝人頁面設定", "artistConfiguration": "專輯藝人頁面設定",
"artistConfiguration_description": "設定專輯藝人頁面中顯示的項目及排序", "artistConfiguration_description": "設定專輯藝人頁面中顯示的項目及排序",
"clearCacheSuccess": "成功清除快取", "clearCacheSuccess": "成功清除快取",
"contextMenu": "右鍵選單配置", "contextMenu": "右鍵選單設定",
"contextMenu_description": "允許您隱藏在右鍵選單項目時顯示的項目。未選取的項目將被隱藏", "contextMenu_description": "允許您隱藏在右鍵選單項目時顯示的項目。未選取的項目將被隱藏",
"customCssEnable": "啟用自訂CSS", "customCssEnable": "啟用自訂CSS",
"customCssEnable_description": "允許撰寫自訂CSS", "customCssEnable_description": "允許撰寫自訂CSS",
"customCssNotice": "警告:即使已限制某些用法(不允許 url() 和 content:),但使用自訂 CSS 仍然會透過更改介面帶來風險", "customCssNotice": "警告:即使已限制某些用法(不允許 URL() 和 content:),但使用自訂 CSS 仍然會透過更改介面帶來風險",
"customCss": "自訂CSS", "customCss": "自訂CSS",
"customCss_description": "自訂 CSS 內容。注意:內容和遠端 URL 是不允許使用的屬性。您的內容預覽如下所示。由於需要進行清理,因此存在一些您未設定的其他欄位", "customCss_description": "自訂 CSS 內容。注意:內容和遠端 URL 是不允許使用的屬性。您的內容預覽如下所示。由於需要進行清理,因此存在一些您未設定的其他欄位",
"discordPausedStatus": "暫停時顯示 rich presence", "discordPausedStatus": "暫停時顯示 Rich Presence",
"discordPausedStatus_description": "啟用後,播放器暫停時將顯示狀態", "discordPausedStatus_description": "啟用後,播放器暫停時將顯示狀態",
"discordListening": "將狀態設為\"正在聽\"", "discordListening": "將狀態設為\"正在聽\"",
"discordListening_description": "將狀態顯示為\"正在聽\"而不是\"正在玩\"", "discordListening_description": "將狀態顯示為\"正在聽\"而不是\"正在玩\"",
@@ -598,13 +603,13 @@
"externalLinks_description": "在藝人/專輯頁面顯示外部連結(Last.fm, MusicBrainz)", "externalLinks_description": "在藝人/專輯頁面顯示外部連結(Last.fm, MusicBrainz)",
"preferLocalLyrics": "偏好本地歌詞", "preferLocalLyrics": "偏好本地歌詞",
"preferLocalLyrics_description": "優先選擇本地歌詞,而不是遠端歌詞(如果可用)", "preferLocalLyrics_description": "優先選擇本地歌詞,而不是遠端歌詞(如果可用)",
"homeConfiguration": "首頁配置", "homeConfiguration": "首頁設定",
"homeConfiguration_description": "配置在首頁上顯示哪些項目以及顯示順序", "homeConfiguration_description": "設定在首頁上顯示哪些項目以及顯示順序",
"homeFeature": "首頁特色輪播", "homeFeature": "首頁特色輪播",
"homeFeature_description": "控制是否在首頁上顯示大型特色輪播", "homeFeature_description": "控制是否在首頁上顯示大型特色輪播",
"imageAspectRatio": "使用原生封面照長寬比", "imageAspectRatio": "使用原生封面照長寬比",
"imageAspectRatio_description": "如果啟用,封面照將使用其原始長寬比顯示。對於非 1:1 的封面,剩餘空間將為空", "imageAspectRatio_description": "如果啟用,封面照將使用其原始長寬比顯示。對於非 1:1 的封面,剩餘空間將為空",
"lastfm": "顯示 last.fm 連結", "lastfm": "顯示 Last.fm 連結",
"lastfm_description": "在藝人/專輯頁面顯示 Last.fm 連結", "lastfm_description": "在藝人/專輯頁面顯示 Last.fm 連結",
"lastfmApiKey": "{{lastfm}} API金鑰", "lastfmApiKey": "{{lastfm}} API金鑰",
"lastfmApiKey_description": "{{lastfm}}的API金鑰。用於封面照", "lastfmApiKey_description": "{{lastfm}}的API金鑰。用於封面照",
@@ -621,14 +626,14 @@
"startMinimized": "啟動時最小化", "startMinimized": "啟動時最小化",
"startMinimized_description": "在系統匣中啟動應用程式", "startMinimized_description": "在系統匣中啟動應用程式",
"transcode_description": "啟用轉碼到不同格式", "transcode_description": "啟用轉碼到不同格式",
"transcodeBitrate": "要轉碼的比特率", "transcodeBitrate": "要轉碼的位元率",
"transcodeBitrate_description": "選擇要轉碼的比特率。 0 表示讓伺服器選擇", "transcodeBitrate_description": "選擇要轉碼的位元率。 0 表示讓伺服器選擇",
"transcodeFormat": "轉碼的格式", "transcodeFormat": "轉碼的格式",
"transcodeFormat_description": "選擇要轉碼的格式。留空來讓伺服器決定", "transcodeFormat_description": "選擇要轉碼的格式。留空來讓伺服器決定",
"translationApiProvider": "翻譯API提供者", "translationApiProvider": "翻譯API提供者",
"translationApiProvider_description": "翻譯API的提供者", "translationApiProvider_description": "翻譯API的提供者",
"translationApiKey": "翻譯API金鑰", "translationApiKey": "翻譯API金鑰",
"translationApiKey_description": "翻譯的API金鑰(僅限全域服端點)", "translationApiKey_description": "翻譯的API金鑰(僅限全域服端點)",
"translationTargetLanguage": "目標翻譯語言", "translationTargetLanguage": "目標翻譯語言",
"translationTargetLanguage_description": "翻譯的目標語言", "translationTargetLanguage_description": "翻譯的目標語言",
"trayEnabled": "顯示系統匣", "trayEnabled": "顯示系統匣",
@@ -765,17 +770,33 @@
"automaticUpdates": "自動更新", "automaticUpdates": "自動更新",
"automaticUpdates_description": "自動檢查並安裝更新", "automaticUpdates_description": "自動檢查並安裝更新",
"discordStateIcon": "顯示播放中圖示", "discordStateIcon": "顯示播放中圖示",
"discordStateIcon_description": "在 rich presence 狀態中顯示一個小的播放圖示。啟用「暫停時顯示 rich presence」時,會始終顯示暫停的圖示", "discordStateIcon_description": "在 Rich Presence 狀態中顯示一個小的播放圖示。啟用「暫停時顯示 Rich Presence」時,會始終顯示暫停的圖示",
"useThemePrimaryShade": "套用主題主色調", "useThemePrimaryShade": "套用主題主色調",
"useThemePrimaryShade_description": "使用所選主題中定義的主色調作為主色變體", "useThemePrimaryShade_description": "使用所選主題中定義的主色調作為主色變體",
"primaryShade": "主要色調", "primaryShade": "主要色調",
"primaryShade_description": "覆蓋按鈕、連結及其他主色調元素所使用的主色調(0–9)", "primaryShade_description": "覆蓋按鈕、連結及其他主色調元素所使用的主色調(0–9)",
"playerItemConfiguration_description": "設定全螢幕播放器顯示的項目及排列順序", "playerItemConfiguration_description": "設定全螢幕播放器顯示的項目及排列順序",
"playerItemConfiguration": "播放器項目配置", "playerItemConfiguration": "播放器項目設定",
"autosave": "自動儲存播放佇列", "autosave": "自動儲存播放佇列",
"autosave_description": "啟用自動將播放佇列儲存到您的伺服器。這只有在使用Navidrome/Subsonic時才可使用,並且您不能有混合播放佇列。", "autosave_description": "啟用自動將播放佇列儲存到您的伺服器。這只有在使用Navidrome/Subsonic時才可使用,並且您不能有混合播放佇列。",
"autosaveCount": "自動播放佇列儲存頻率", "autosaveCount": "自動播放佇列儲存頻率",
"autosaveCount_description": "在儲存佇列之前,有多少曲目更改。1(最小)表示每次歌曲更改" "autosaveCount_description": "在儲存佇列之前,有多少曲目更改。1(最小)表示每次歌曲更改",
"spotify_description": "在藝人與專輯頁面顯示 Spotify 的連結",
"spotify": "顯示 Spotify 的連結",
"nativeSpotify_description": "在 Spotify 應用程式中開啟,而非在瀏覽器中開啟",
"nativeSpotify": "使用 Spotify 應用程式",
"sidePlayQueueLayout": "側邊播放佇列佈局",
"sidePlayQueueLayout_description": "設定吸附側邊播放佇列的佈局",
"sidePlayQueueLayout_optionHorizontal": "水平",
"sidePlayQueueLayout_optionVertical": "垂直",
"listenbrainz_description": "在藝術家/專輯頁面上顯示 ListenBrainz 的連結",
"listenbrainz": "顯示 ListenBrainz 連結",
"qobuz_description": "在藝術家/專輯頁面上顯示 Qobuz 的連結",
"qobuz": "顯示 Qobuz 連結",
"waveformLoadingDelay": "波形載入延遲",
"waveformLoadingDelay_description": "載入波形前的延遲(以秒為單位)。如果您在使用網頁播放器時遇到卡頓,請增加此值。",
"playerbarWaveformStretch": "波形拉伸",
"playerbarWaveformStretch_description": "拉伸波形來填補可用空間"
}, },
"table": { "table": {
"config": { "config": {
@@ -784,7 +805,7 @@
"gap": "$t(common.gap)", "gap": "$t(common.gap)",
"size": "$t(common.size)", "size": "$t(common.size)",
"tableColumns": "列", "tableColumns": "列",
"autoFitColumns": "列寬自適應", "autoFitColumns": "自動調整列寬",
"followCurrentSong": "跟隨目前歌曲", "followCurrentSong": "跟隨目前歌曲",
"itemGap": "項目間隔 (px)", "itemGap": "項目間隔 (px)",
"itemSize": "項目大小 (px)", "itemSize": "項目大小 (px)",
@@ -816,7 +837,7 @@
"album": "$t(entity.album, {\"count\": 1})", "album": "$t(entity.album, {\"count\": 1})",
"albumArtist": "$t(entity.albumArtist, {\"count\": 1})", "albumArtist": "$t(entity.albumArtist, {\"count\": 1})",
"artist": "$t(entity.artist, {\"count\": 1})", "artist": "$t(entity.artist, {\"count\": 1})",
"bpm": "$t(common.bpm)", "bpm": "$t(common.BPM)",
"biography": "$t(common.biography)", "biography": "$t(common.biography)",
"bitrate": "$t(common.bitrate)", "bitrate": "$t(common.bitrate)",
"channels": "$t(common.channel, {\"count\": 2})", "channels": "$t(common.channel, {\"count\": 2})",
@@ -862,7 +883,7 @@
"albumCount": "$t(entity.album, {\"count\": 2})", "albumCount": "$t(entity.album, {\"count\": 2})",
"artist": "$t(entity.artist, {\"count\": 1})", "artist": "$t(entity.artist, {\"count\": 1})",
"biography": "簡介", "biography": "簡介",
"bitrate": "比特率", "bitrate": "位元率",
"channels": "$t(common.channel, {\"count\": 2})", "channels": "$t(common.channel, {\"count\": 2})",
"comment": "評論", "comment": "評論",
"dateAdded": "新增日期", "dateAdded": "新增日期",
@@ -875,7 +896,7 @@
"releaseDate": "發布日期", "releaseDate": "發布日期",
"releaseYear": "年份", "releaseYear": "年份",
"genre": "$t(entity.genre, {\"count\": 1})", "genre": "$t(entity.genre, {\"count\": 1})",
"bpm": "bpm", "bpm": "BPM",
"songCount": "$t(entity.track, {\"count\": 2})", "songCount": "$t(entity.track, {\"count\": 2})",
"title": "標題", "title": "標題",
"trackNumber": "曲目編號", "trackNumber": "曲目編號",
@@ -889,7 +910,7 @@
"action": { "action": {
"addToFavorites": "新增到$t(entity.favorite, {\"count\": 2})", "addToFavorites": "新增到$t(entity.favorite, {\"count\": 2})",
"clearQueue": "清空播放佇列", "clearQueue": "清空播放佇列",
"createPlaylist": "建$t(entity.playlist, {\"count\": 1})", "createPlaylist": "建$t(entity.playlist, {\"count\": 1})",
"deletePlaylist": "刪除$t(entity.playlist, {\"count\": 1})", "deletePlaylist": "刪除$t(entity.playlist, {\"count\": 1})",
"addToPlaylist": "新增到$t(entity.playlist, {\"count\": 1})", "addToPlaylist": "新增到$t(entity.playlist, {\"count\": 1})",
"deselectAll": "取消全選", "deselectAll": "取消全選",
@@ -907,7 +928,10 @@
"moveToNext": "移至下一項", "moveToNext": "移至下一項",
"openIn": { "openIn": {
"lastfm": "在Last.fm開啟", "lastfm": "在Last.fm開啟",
"musicbrainz": "在MusicBrainz開啟" "musicbrainz": "在MusicBrainz開啟",
"spotify": "在 Spotify 中開啟",
"listenbrainz": "在 ListenBrainz 中開啟",
"qobuz": "在 Qobuz 中開啟"
}, },
"downloadStarted": "已開始下載 {{count}} 項內容", "downloadStarted": "已開始下載 {{count}} 項內容",
"moveItems": "移動項目", "moveItems": "移動項目",
@@ -919,7 +943,7 @@
"moveDown": "向下移動", "moveDown": "向下移動",
"holdToMoveToTop": "按住以移動至頂部", "holdToMoveToTop": "按住以移動至頂部",
"holdToMoveToBottom": "按住以移動至底部", "holdToMoveToBottom": "按住以移動至底部",
"createRadioStation": "建 $t(entity.radioStation, {\"count\": 1})", "createRadioStation": "建 $t(entity.radioStation, {\"count\": 1})",
"deleteRadioStation": "刪除 $t(entity.radioStation, {\"count\": 1})", "deleteRadioStation": "刪除 $t(entity.radioStation, {\"count\": 1})",
"openApplicationDirectory": "開啟應用程式目錄", "openApplicationDirectory": "開啟應用程式目錄",
"addOrRemoveFromSelection": "新增或移除選取項目", "addOrRemoveFromSelection": "新增或移除選取項目",
@@ -953,8 +977,8 @@
"albumCount": "$t(entity.album, {\"count\": 2})數", "albumCount": "$t(entity.album, {\"count\": 2})數",
"artist": "$t(entity.artist, {\"count\": 1})", "artist": "$t(entity.artist, {\"count\": 1})",
"biography": "個人簡介", "biography": "個人簡介",
"bitrate": "比特率", "bitrate": "位元率",
"bpm": "bpm", "bpm": "BPM",
"channels": "$t(common.channel, {\"count\": 2})", "channels": "$t(common.channel, {\"count\": 2})",
"comment": "評論", "comment": "評論",
"communityRating": "社群評分", "communityRating": "社群評分",
@@ -962,7 +986,7 @@
"dateAdded": "已新增日期", "dateAdded": "已新增日期",
"disc": "光碟", "disc": "光碟",
"duration": "時長", "duration": "時長",
"id": "id", "id": "ID",
"fromYear": "從年份", "fromYear": "從年份",
"genre": "$t(entity.genre, {\"count\": 1})", "genre": "$t(entity.genre, {\"count\": 1})",
"isCompilation": "為合輯", "isCompilation": "為合輯",
@@ -1003,7 +1027,7 @@
"input_name": "伺服器名稱", "input_name": "伺服器名稱",
"input_password": "密碼", "input_password": "密碼",
"input_savePassword": "儲存密碼", "input_savePassword": "儲存密碼",
"input_url": "url", "input_url": "URL",
"input_username": "使用者名稱", "input_username": "使用者名稱",
"success": "伺服器新增成功", "success": "伺服器新增成功",
"title": "新增伺服器", "title": "新增伺服器",
@@ -1011,7 +1035,7 @@
"ignoreCors": "忽略 cors $t(common.restartRequired)", "ignoreCors": "忽略 cors $t(common.restartRequired)",
"ignoreSsl": "忽略 ssl $t(common.restartRequired)", "ignoreSsl": "忽略 ssl $t(common.restartRequired)",
"input_preferInstantMix": "偏好即時混音", "input_preferInstantMix": "偏好即時混音",
"input_preferInstantMixDescription": "僅使用即時混音功能來取相似歌曲。若您擁有能修改此行為的外掛,此功能將相當實用", "input_preferInstantMixDescription": "僅使用即時混音功能來取相似歌曲。若您擁有能修改此行為的外掛,此功能將相當實用",
"input_preferRemoteUrl": "優先使用公開網址", "input_preferRemoteUrl": "優先使用公開網址",
"input_remoteUrl": "公開網址", "input_remoteUrl": "公開網址",
"input_remoteUrlPlaceholder": "選用:對外功能的公開網址" "input_remoteUrlPlaceholder": "選用:對外功能的公開網址"
@@ -1021,7 +1045,7 @@
"input_skipDuplicates": "跳過重複", "input_skipDuplicates": "跳過重複",
"success": "新增 $t(entity.trackWithCount, {\"count\": {{message}} }) 到 $t(entity.playlistWithCount, {\"count\": {{numOfPlaylists}} })", "success": "新增 $t(entity.trackWithCount, {\"count\": {{message}} }) 到 $t(entity.playlistWithCount, {\"count\": {{numOfPlaylists}} })",
"title": "新增到$t(entity.playlist, {\"count\": 1})", "title": "新增到$t(entity.playlist, {\"count\": 1})",
"create": "建 $t(entity.playlist, {\"count\": 1}) {{playlist}}", "create": "建 $t(entity.playlist, {\"count\": 1}) {{playlist}}",
"searchOrCreate": "搜尋$t(entity.playlist, {\"count\": 2}) 或輸入內容以建立新項目" "searchOrCreate": "搜尋$t(entity.playlist, {\"count\": 2}) 或輸入內容以建立新項目"
}, },
"createPlaylist": { "createPlaylist": {
@@ -1029,8 +1053,8 @@
"input_name": "$t(common.name)", "input_name": "$t(common.name)",
"input_owner": "$t(common.owner)", "input_owner": "$t(common.owner)",
"input_public": "公開", "input_public": "公開",
"success": "已成功建 $t(entity.playlist, {\"count\": 1})", "success": "已成功建 $t(entity.playlist, {\"count\": 1})",
"title": "建$t(entity.playlist, {\"count\": 1})" "title": "建$t(entity.playlist, {\"count\": 1})"
}, },
"lyricSearch": { "lyricSearch": {
"input_name": "$t(common.name)", "input_name": "$t(common.name)",
@@ -1058,8 +1082,7 @@
"editPlaylist": { "editPlaylist": {
"title": "編輯$t(entity.playlist, {\"count\": 1})", "title": "編輯$t(entity.playlist, {\"count\": 1})",
"publicJellyfinNote": "Jellyfin 出於某種原因,不會顯示播放清單是否公開。如果您希望保持公開狀態,請選擇以下輸入", "publicJellyfinNote": "Jellyfin 出於某種原因,不會顯示播放清單是否公開。如果您希望保持公開狀態,請選擇以下輸入",
"success": "$t(entity.playlist, {\"count\": 1}) 更新成功", "success": "$t(entity.playlist, {\"count\": 1}) 更新成功"
"editNote": "不建議手動編輯大型播放清單,你確定要承擔覆寫現有播放清單可能造成的資料遺失風險嗎?"
}, },
"shareItem": { "shareItem": {
"allowDownloading": "允許下載", "allowDownloading": "允許下載",
@@ -1092,8 +1115,8 @@
"input_played_optionPlayed": "僅播放過的曲目" "input_played_optionPlayed": "僅播放過的曲目"
}, },
"createRadioStation": { "createRadioStation": {
"success": "電台建成功", "success": "電台建成功",
"title": "建電台", "title": "建電台",
"input_homepageUrl": "首頁連結", "input_homepageUrl": "首頁連結",
"input_name": "名稱", "input_name": "名稱",
"input_streamUrl": "串流網址" "input_streamUrl": "串流網址"
@@ -1105,6 +1128,9 @@
"export": "匯出歌詞", "export": "匯出歌詞",
"input_synced": "匯出同步歌詞", "input_synced": "匯出同步歌詞",
"input_offset": "$t(setting.lyricOffset)" "input_offset": "$t(setting.lyricOffset)"
},
"editRadioStation": {
"success": "電臺更新成功"
} }
}, },
"releaseType": { "releaseType": {
@@ -1202,8 +1228,8 @@
"channelLayout": "聲道佈局", "channelLayout": "聲道佈局",
"maxFPS": "最大幀率", "maxFPS": "最大幀率",
"opacity": "不透明度", "opacity": "不透明度",
"customGradients": "自定義漸層", "customGradients": "自漸層",
"addCustomGradient": "新增自定義漸層", "addCustomGradient": "新增自漸層",
"gradientName": "漸層名稱", "gradientName": "漸層名稱",
"gradientNamePlaceholder": "漸層名稱", "gradientNamePlaceholder": "漸層名稱",
"vertical": "垂直", "vertical": "垂直",
@@ -1313,6 +1339,13 @@
"d": "D", "d": "D",
"z": "Z" "z": "Z"
} }
} },
"systemAudioCaptureFailed": "無法開始擷取:{{message}}",
"systemAudioNoAudioTrack": "沒有回傳任何音軌。確保在提示時啟用音訊擷取。",
"systemAudioConsentAllow": "允許",
"systemAudioConsentBody": "此視覺化器需要存取系統音訊才能運作",
"systemAudioConsentDecline": "拒絕",
"systemAudioConsentTitle": "允許存取系統音訊?",
"systemAudioExclusiveModeNotSupported": "啟用音訊獨佔模式時,視覺化不可用。 在MPV設定中停用音訊獨佔模式,然後再試一次。"
} }
} }
+8
View File
@@ -5,6 +5,10 @@ import { getLyricsBySongId as getGenius, getSearchResults as searchGenius } from
import { getLyricsBySongId as getLrcLib, getSearchResults as searchLrcLib } from './lrclib'; import { getLyricsBySongId as getLrcLib, getSearchResults as searchLrcLib } from './lrclib';
import { getLyricsBySongId as getNetease, getSearchResults as searchNetease } from './netease'; import { getLyricsBySongId as getNetease, getSearchResults as searchNetease } from './netease';
import { orderSearchResults } from './shared'; import { orderSearchResults } from './shared';
import {
getLyricsBySongId as getSimpMusic,
getSearchResults as searchSimpMusic,
} from './simpmusic';
import { Song } from '/@/shared/types/domain-types'; import { Song } from '/@/shared/types/domain-types';
@@ -12,6 +16,7 @@ export enum LyricSource {
GENIUS = 'Genius', GENIUS = 'Genius',
LRCLIB = 'lrclib.net', LRCLIB = 'lrclib.net',
NETEASE = 'NetEase', NETEASE = 'NetEase',
SIMPMUSIC = 'SimpMusic',
} }
export type FullLyricsMetadata = Omit<InternetProviderLyricResponse, 'id' | 'lyrics' | 'source'> & { export type FullLyricsMetadata = Omit<InternetProviderLyricResponse, 'id' | 'lyrics' | 'source'> & {
@@ -66,12 +71,14 @@ const SEARCH_FETCHERS: Record<LyricSource, SearchFetcher> = {
[LyricSource.GENIUS]: searchGenius, [LyricSource.GENIUS]: searchGenius,
[LyricSource.LRCLIB]: searchLrcLib, [LyricSource.LRCLIB]: searchLrcLib,
[LyricSource.NETEASE]: searchNetease, [LyricSource.NETEASE]: searchNetease,
[LyricSource.SIMPMUSIC]: searchSimpMusic,
}; };
const GET_FETCHERS: Record<LyricSource, GetFetcher> = { const GET_FETCHERS: Record<LyricSource, GetFetcher> = {
[LyricSource.GENIUS]: getGenius, [LyricSource.GENIUS]: getGenius,
[LyricSource.LRCLIB]: getLrcLib, [LyricSource.LRCLIB]: getLrcLib,
[LyricSource.NETEASE]: getNetease, [LyricSource.NETEASE]: getNetease,
[LyricSource.SIMPMUSIC]: getSimpMusic,
}; };
const MAX_CACHED_ITEMS = 10; const MAX_CACHED_ITEMS = 10;
@@ -191,6 +198,7 @@ const searchRemoteLyrics = async (params: LyricSearchQuery) => {
[LyricSource.GENIUS]: [], [LyricSource.GENIUS]: [],
[LyricSource.LRCLIB]: [], [LyricSource.LRCLIB]: [],
[LyricSource.NETEASE]: [], [LyricSource.NETEASE]: [],
[LyricSource.SIMPMUSIC]: [],
}; };
for (const item of allSearchResults) { for (const item of allSearchResults) {
results[item.source].push(item); results[item.source].push(item);
+4 -2
View File
@@ -58,14 +58,16 @@ export async function getSearchResults(
): Promise<InternetProviderLyricSearchResponse[] | null> { ): Promise<InternetProviderLyricSearchResponse[] | null> {
let result: AxiosResponse<LrcLibSearchResponse[]>; let result: AxiosResponse<LrcLibSearchResponse[]>;
if (!params.name) { if (!params.name && !params.artist) {
return null; return null;
} }
const searchQuery = [params.name, params.artist].join(' ');
try { try {
result = await axios.get<LrcLibSearchResponse[]>(SEEARCH_URL, { result = await axios.get<LrcLibSearchResponse[]>(SEEARCH_URL, {
params: { params: {
q: params.name, q: searchQuery,
}, },
}); });
} catch (e) { } catch (e) {
+126
View File
@@ -0,0 +1,126 @@
import axios, { AxiosResponse } from 'axios';
import {
InternetProviderLyricResponse,
InternetProviderLyricSearchResponse,
LyricSearchQuery,
LyricSource,
} from '.';
import { orderSearchResults } from './shared';
const API_URL = 'https://api-lyrics.simpmusic.org/v1';
const TIMEOUT_MS = 5000;
export interface SimpMusicLyric {
albumName?: string;
artistName: string;
durationSeconds?: number;
id: string;
plainLyric?: string;
richSyncLyrics?: string;
songTitle: string;
syncedLyrics?: string;
videoId: string;
vote?: number;
}
export interface SimpMusicSearchResponse {
data: SimpMusicLyric[];
success: boolean;
}
export async function getLyricsBySongId(songId: string): Promise<null | string> {
let result: AxiosResponse;
try {
result = await axios.get(`${API_URL}/${songId}`, {
timeout: TIMEOUT_MS,
});
} catch (e) {
console.error('SimpMusic lyrics request errored:', (e as Error)?.message);
return null;
}
const firstLyric = (result.data.data?.[0] ?? null) as null | SimpMusicLyric;
if (!firstLyric) return null;
return firstLyric.syncedLyrics || firstLyric.plainLyric || null;
}
export async function getSearchResults(
params: LyricSearchQuery,
): Promise<InternetProviderLyricSearchResponse[] | null> {
let result: AxiosResponse<SimpMusicSearchResponse>;
if (!params.name) return null;
try {
result = await axios.get<SimpMusicSearchResponse>(`${API_URL}/search`, {
params: {
q: params.name,
},
timeout: TIMEOUT_MS,
});
} catch (e) {
console.error('SimpMusic search errored:', (e as Error)?.message);
return null;
}
if (!result.data?.data) return null;
const songResults: InternetProviderLyricSearchResponse[] = result.data.data.map((song) => ({
artist: song.artistName,
id: song.videoId,
isSync: song.syncedLyrics ? true : false,
name: song.songTitle,
source: LyricSource.SIMPMUSIC,
}));
return orderSearchResults({ params, results: songResults });
}
export async function query(
params: LyricSearchQuery,
): Promise<InternetProviderLyricResponse | null> {
if (!params.name) return null;
let search: AxiosResponse<SimpMusicSearchResponse>;
try {
search = await axios.get<SimpMusicSearchResponse>(`${API_URL}/search`, {
params: {
q: params.name,
},
timeout: TIMEOUT_MS,
});
} catch (e) {
console.error('SimpMusic search errored:', (e as Error).message);
return null;
}
const first = search.data?.data?.[0];
if (!first) return null;
let lyric: AxiosResponse<SimpMusicLyric>;
try {
lyric = await axios.get<SimpMusicLyric>(`${API_URL}/${first.videoId}`, {
timeout: TIMEOUT_MS,
});
} catch (e) {
console.error('SimpMusic lyrics fetch errored:', (e as Error).message);
return null;
}
const lyrics = lyric.data.syncedLyrics || lyric.data.plainLyric || null;
if (!lyrics) return null;
return {
artist: lyric.data.artistName,
id: lyric.data.videoId,
lyrics,
name: lyric.data.songTitle,
source: LyricSource.SIMPMUSIC,
};
}
+40 -5
View File
@@ -1,13 +1,13 @@
import console from 'console'; import console from 'console';
import { app, ipcMain } from 'electron'; import { app, ipcMain } from 'electron';
import { rm } from 'fs/promises'; import { access, rm } from 'fs/promises';
import uniq from 'lodash/uniq'; import uniq from 'lodash/uniq';
import MpvAPI from 'node-mpv'; import MpvAPI from 'node-mpv';
import { pid } from 'node:process'; import { pid } from 'node:process';
import process from 'process'; import process from 'process';
import { getMainWindow, sendToastToRenderer } from '../../../index'; import { getMainWindow, sendToastToRenderer } from '../../../index';
import { createLog, isWindows } from '../../../utils'; import { createLog, isMacOS, isWindows } from '../../../utils';
import { store } from '../settings'; import { store } from '../settings';
import { PlayerData } from '/@/shared/types/domain-types'; import { PlayerData } from '/@/shared/types/domain-types';
@@ -69,6 +69,7 @@ const mpvLog = (
}; };
const MPV_BINARY_PATH = store.get('mpv_path') as string | undefined; const MPV_BINARY_PATH = store.get('mpv_path') as string | undefined;
const MACOS_MPV_BINARY_PATHS = ['/opt/homebrew/bin/mpv', '/usr/local/bin/mpv'];
const prefetchPlaylistParams = [ const prefetchPlaylistParams = [
'--prefetch-playlist=no', '--prefetch-playlist=no',
@@ -86,12 +87,38 @@ const DEFAULT_MPV_PARAMETERS = (extraParameters?: string[]) => {
return parameters; return parameters;
}; };
const resolveMpvBinaryPath = async (binaryPath?: string) => {
if (binaryPath) {
return binaryPath;
}
if (MPV_BINARY_PATH) {
return MPV_BINARY_PATH;
}
if (!isMacOS()) {
return undefined;
}
for (const candidate of MACOS_MPV_BINARY_PATHS) {
try {
await access(candidate);
return candidate;
} catch {
// Try the next common Homebrew location.
}
}
return undefined;
};
const createMpv = async (data: { const createMpv = async (data: {
binaryPath?: string; binaryPath?: string;
extraParameters?: string[]; extraParameters?: string[];
properties?: Record<string, any>; properties?: Record<string, any>;
}): Promise<MpvAPI> => { }): Promise<MpvAPI> => {
const { binaryPath, extraParameters, properties } = data; const { binaryPath, extraParameters, properties } = data;
const resolvedBinaryPath = await resolveMpvBinaryPath(binaryPath);
const params = uniq([...DEFAULT_MPV_PARAMETERS(extraParameters), ...(extraParameters || [])]); const params = uniq([...DEFAULT_MPV_PARAMETERS(extraParameters), ...(extraParameters || [])]);
@@ -99,7 +126,7 @@ const createMpv = async (data: {
{ {
audio_only: true, audio_only: true,
auto_restart: false, auto_restart: false,
binary: binaryPath || MPV_BINARY_PATH || undefined, binary: resolvedBinaryPath,
socket: socketPath, socket: socketPath,
time_update: 1, time_update: 1,
}, },
@@ -437,10 +464,18 @@ ipcMain.on('player-mute', async (_event, mute: boolean) => {
ipcMain.handle('player-get-time', async (): Promise<number | undefined> => { ipcMain.handle('player-get-time', async (): Promise<number | undefined> => {
try { try {
return getMpvInstance()?.getTimePosition(); const mpv = getMpvInstance();
if (!mpv) {
return undefined;
}
return await mpv.getTimePosition();
} catch (err: any | NodeMpvError) { } catch (err: any | NodeMpvError) {
// Err 3: IPC command invalid — e.g. time-pos unavailable when idle / between tracks
if (err?.errcode === 3) {
return undefined;
}
mpvLog({ action: `Failed to get current time` }, err); mpvLog({ action: `Failed to get current time` }, err);
return 0; return undefined;
} }
}); });
+1
View File
@@ -40,6 +40,7 @@ export const store = new Store<any>({
playbackType: 'web', playbackType: 'web',
should_prompt_accessibility: true, should_prompt_accessibility: true,
shown_accessibility_warning: false, shown_accessibility_warning: false,
visualizer_system_audio_consent_granted: false,
window_enable_tray: true, window_enable_tray: true,
window_exit_to_tray: false, window_exit_to_tray: false,
window_minimize_to_tray: false, window_minimize_to_tray: false,
+8 -1
View File
@@ -1,2 +1,9 @@
import './core'; import './core';
import(`./${process.platform}`);
if (process.platform === 'linux') {
import('./linux');
} else if (process.platform === 'darwin') {
import('./darwin');
} else if (process.platform === 'win32') {
import('./win32');
}
+17
View File
@@ -150,6 +150,23 @@ ipcMain.on(
return; return;
} }
// If the served id is an empty string, this is a radio
// Use a limited subset of the fields
if (song._serverId === '') {
// The id as passed in from use-mpris is radio- plus the radio ID
// If there are spaces or some other characters, this causes MPRIS to error and
// disconnect the bus. To prevent this, just use a fake track/radio
mprisPlayer.metadata = {
'mpris:trackid': mprisPlayer.objectPath(`track/radio`),
'xesam:album': song.album || null,
'xesam:artist': song.artists?.length
? song.artists.map((artist) => artist.name)
: null,
'xesam:title': song.name || null,
};
return;
}
mprisPlayer.metadata = { mprisPlayer.metadata = {
'mpris:artUrl': imageUrl || null, 'mpris:artUrl': imageUrl || null,
'mpris:length': song.duration ? Math.round((song.duration || 0) * 1e3) : null, 'mpris:length': song.duration ? Math.round((song.duration || 0) * 1e3) : null,
+1
View File
@@ -0,0 +1 @@
export {};
+144 -21
View File
@@ -5,6 +5,7 @@ import {
app, app,
BrowserWindow, BrowserWindow,
BrowserWindowConstructorOptions, BrowserWindowConstructorOptions,
desktopCapturer,
globalShortcut, globalShortcut,
ipcMain, ipcMain,
Menu, Menu,
@@ -29,7 +30,7 @@ import packageJson from '../../package.json';
import { disableMediaKeys, enableMediaKeys } from './features/core/player/media-keys'; import { disableMediaKeys, enableMediaKeys } from './features/core/player/media-keys';
import { shutdownServer } from './features/core/remote'; import { shutdownServer } from './features/core/remote';
import { store } from './features/core/settings'; import { store } from './features/core/settings';
import MenuBuilder from './menu'; import MenuBuilder, { MenuPlaybackState } from './menu';
import { import {
autoUpdaterLogInterface, autoUpdaterLogInterface,
createLog, createLog,
@@ -41,7 +42,7 @@ import {
} from './utils'; } from './utils';
import './features'; import './features';
import { PlayerType, TitleTheme } from '/@/shared/types/types'; import { PlayerRepeat, PlayerStatus, PlayerType, TitleTheme } from '/@/shared/types/types';
const ALPHA_UPDATER_CONFIG: { const ALPHA_UPDATER_CONFIG: {
bucket: string; bucket: string;
@@ -277,6 +278,13 @@ let tray: null | Tray = null;
let exitFromTray = false; let exitFromTray = false;
let forceQuit = false; let forceQuit = false;
let powerSaveBlockerId: null | number = null; let powerSaveBlockerId: null | number = null;
let menuBuilder: MenuBuilder | null = null;
let currentPlaybackStatus: PlayerStatus = PlayerStatus.PAUSED;
let currentPrivateMode = false;
let currentRepeatMode: PlayerRepeat = PlayerRepeat.NONE;
let currentSidebarCollapsed = false;
let currentShuffleEnabled = false;
let playbackMenuAccelerators: MenuPlaybackState['accelerators'] = {};
if (process.env.NODE_ENV === 'production') { if (process.env.NODE_ENV === 'production') {
import('source-map-support').then((sourceMapSupport) => { import('source-map-support').then((sourceMapSupport) => {
@@ -333,6 +341,23 @@ export const getMainWindow = () => {
return mainWindow; return mainWindow;
}; };
const rebuildMainMenu = () => {
if (!menuBuilder || !mainWindow) return;
menuBuilder.buildMenu({
accelerators: playbackMenuAccelerators,
playbackStatus: currentPlaybackStatus,
privateMode: currentPrivateMode,
repeatMode: currentRepeatMode,
shuffleEnabled: currentShuffleEnabled,
sidebarCollapsed: currentSidebarCollapsed,
});
if (process.platform !== 'darwin') {
Menu.setApplicationMenu(null);
}
};
export const sendToastToRenderer = ({ export const sendToastToRenderer = ({
message, message,
type, type,
@@ -431,19 +456,21 @@ const createTray = () => {
}, },
]); ]);
tray.on('click', () => { if (!isMacOS()) {
if (store.get('window_minimize_to_tray')) { tray.on('click', () => {
if (mainWindow?.isVisible()) { if (store.get('window_minimize_to_tray')) {
mainWindow?.hide(); if (mainWindow?.isVisible()) {
mainWindow?.hide();
} else {
mainWindow?.show();
createWinThumbarButtons();
}
} else { } else {
mainWindow?.show(); mainWindow?.show();
createWinThumbarButtons(); createWinThumbarButtons();
} }
} else { });
mainWindow?.show(); }
createWinThumbarButtons();
}
});
tray.setToolTip('Feishin'); tray.setToolTip('Feishin');
tray.setContextMenu(contextMenu); tray.setContextMenu(contextMenu);
@@ -697,12 +724,8 @@ async function createWindow(first = true): Promise<void> {
}); });
} }
const menuBuilder = new MenuBuilder(mainWindow); menuBuilder = new MenuBuilder(mainWindow);
menuBuilder.buildMenu(); rebuildMainMenu();
if (process.platform !== 'darwin') {
Menu.setApplicationMenu(null);
}
// Open URLs in the user's browser // Open URLs in the user's browser
mainWindow.webContents.setWindowOpenHandler((edata) => { mainWindow.webContents.setWindowOpenHandler((edata) => {
@@ -710,6 +733,29 @@ async function createWindow(first = true): Promise<void> {
return { action: 'deny' }; return { action: 'deny' };
}); });
mainWindow.webContents.session.setDisplayMediaRequestHandler((_request, callback) => {
if (!isMacOS()) {
callback({ audio: 'loopback' });
return;
}
desktopCapturer
.getSources({ thumbnailSize: { height: 0, width: 0 }, types: ['screen'] })
.then((sources) => {
const source = sources[0];
if (!source) {
callback({});
return;
}
callback({ audio: 'loopback', video: source });
})
.catch((err) => {
log.warn('desktopCapturer.getSources failed', err);
callback({});
});
});
if (!disableAutoUpdates() && store.get('disable_auto_updates') !== true) { if (!disableAutoUpdates() && store.get('disable_auto_updates') !== true) {
new AppUpdater(); new AppUpdater();
} }
@@ -740,11 +786,17 @@ const playbackType = store.get('playbackType', PlayerType.WEB) as PlayerType;
const shouldDisableMediaFeatures = const shouldDisableMediaFeatures =
isLinux() || !enableMediaSession || playbackType !== PlayerType.WEB; isLinux() || !enableMediaSession || playbackType !== PlayerType.WEB;
const chromiumDisabledFeatures: string[] = [];
// Fractional scaling on Wayland: https://github.com/jeffvli/feishin/issues/1271#issuecomment-4063326712
if (isLinux()) {
chromiumDisabledFeatures.push('WaylandFractionalScaleV1');
}
if (shouldDisableMediaFeatures) { if (shouldDisableMediaFeatures) {
app.commandLine.appendSwitch( chromiumDisabledFeatures.push('HardwareMediaKeyHandling', 'MediaSessionService');
'disable-features', }
'HardwareMediaKeyHandling,MediaSessionService',
); if (chromiumDisabledFeatures.length > 0) {
app.commandLine.appendSwitch('disable-features', chromiumDisabledFeatures.join(','));
} }
// https://github.com/electron/electron/issues/46538#issuecomment-2808806722 // https://github.com/electron/electron/issues/46538#issuecomment-2808806722
@@ -774,6 +826,17 @@ enum BindingActions {
VOLUME_UP = 'volumeUp', VOLUME_UP = 'volumeUp',
} }
const getMenuAccelerator = (
data: Record<BindingActions, { allowGlobal: boolean; hotkey: string; isGlobal: boolean }>,
action: BindingActions,
) => {
const hotkey = data[action]?.hotkey;
if (!hotkey) return undefined;
return hotkeyToElectronAccelerator(hotkey);
};
const HOTKEY_ACTIONS: Record<BindingActions, () => void> = { const HOTKEY_ACTIONS: Record<BindingActions, () => void> = {
[BindingActions.GLOBAL_SEARCH]: () => {}, [BindingActions.GLOBAL_SEARCH]: () => {},
[BindingActions.LOCAL_SEARCH]: () => {}, [BindingActions.LOCAL_SEARCH]: () => {},
@@ -827,6 +890,26 @@ ipcMain.on(
} }
} }
playbackMenuAccelerators = {
next: getMenuAccelerator(data, BindingActions.NEXT),
playPause:
getMenuAccelerator(data, BindingActions.PLAY_PAUSE) ||
getMenuAccelerator(data, BindingActions.PLAY) ||
getMenuAccelerator(data, BindingActions.PAUSE),
previous: getMenuAccelerator(data, BindingActions.PREVIOUS),
repeat: getMenuAccelerator(data, BindingActions.TOGGLE_REPEAT),
seekBackward: getMenuAccelerator(data, BindingActions.SKIP_BACKWARD),
seekForward: getMenuAccelerator(data, BindingActions.SKIP_FORWARD),
shuffle: getMenuAccelerator(data, BindingActions.SHUFFLE),
stop: getMenuAccelerator(data, BindingActions.STOP),
volumeDown: getMenuAccelerator(data, BindingActions.VOLUME_DOWN),
volumeUp: getMenuAccelerator(data, BindingActions.VOLUME_UP),
};
if (isMacOS()) {
rebuildMainMenu();
}
const globalMediaKeysEnabled = store.get('global_media_hotkeys', true) as boolean; const globalMediaKeysEnabled = store.get('global_media_hotkeys', true) as boolean;
if (globalMediaKeysEnabled) { if (globalMediaKeysEnabled) {
@@ -967,3 +1050,43 @@ if (!ipcMain.eventNames().includes('open-application-directory')) {
shell.openPath(userDataPath); shell.openPath(userDataPath);
}); });
} }
ipcMain.on('update-playback', (_event, status: PlayerStatus) => {
currentPlaybackStatus = status;
if (!isMacOS()) return;
rebuildMainMenu();
});
ipcMain.on('update-repeat', (_event, repeat: PlayerRepeat) => {
currentRepeatMode = repeat;
if (!isMacOS()) return;
rebuildMainMenu();
});
ipcMain.on('update-shuffle', (_event, shuffle: boolean) => {
currentShuffleEnabled = shuffle;
if (!isMacOS()) return;
rebuildMainMenu();
});
ipcMain.on('update-private-mode', (_event, privateMode: boolean) => {
currentPrivateMode = privateMode;
if (!isMacOS()) return;
rebuildMainMenu();
});
ipcMain.on('update-sidebar-collapsed', (_event, collapsedSidebar: boolean) => {
currentSidebarCollapsed = collapsedSidebar;
if (!isMacOS()) return;
rebuildMainMenu();
});
+190 -4
View File
@@ -1,18 +1,53 @@
import { app, BrowserWindow, Menu, MenuItemConstructorOptions, shell } from 'electron'; import { app, BrowserWindow, Menu, MenuItemConstructorOptions, shell } from 'electron';
import packageJson from '../../package.json';
import { PlayerRepeat, PlayerStatus } from '/@/shared/types/types';
export type MenuPlaybackState = {
accelerators?: {
next?: string;
playPause?: string;
previous?: string;
repeat?: string;
seekBackward?: string;
seekForward?: string;
shuffle?: string;
stop?: string;
volumeDown?: string;
volumeUp?: string;
};
playbackStatus?: PlayerStatus;
privateMode?: boolean;
repeatMode?: PlayerRepeat;
shuffleEnabled?: boolean;
sidebarCollapsed?: boolean;
};
interface DarwinMenuItemConstructorOptions extends MenuItemConstructorOptions { interface DarwinMenuItemConstructorOptions extends MenuItemConstructorOptions {
selector?: string; selector?: string;
submenu?: DarwinMenuItemConstructorOptions[] | Menu; submenu?: DarwinMenuItemConstructorOptions[] | Menu;
} }
export default class MenuBuilder { export default class MenuBuilder {
developmentEnvironmentSetup = false;
mainWindow: BrowserWindow; mainWindow: BrowserWindow;
constructor(mainWindow: BrowserWindow) { constructor(mainWindow: BrowserWindow) {
this.mainWindow = mainWindow; this.mainWindow = mainWindow;
} }
buildDarwinTemplate(): MenuItemConstructorOptions[] { buildDarwinTemplate({
accelerators,
playbackStatus = PlayerStatus.PAUSED,
privateMode = false,
repeatMode = PlayerRepeat.NONE,
shuffleEnabled = false,
sidebarCollapsed = false,
}: MenuPlaybackState = {}): MenuItemConstructorOptions[] {
const isPlaying = playbackStatus === PlayerStatus.PLAYING;
const isRepeatEnabled = repeatMode !== PlayerRepeat.NONE;
const subMenuAbout: DarwinMenuItemConstructorOptions = { const subMenuAbout: DarwinMenuItemConstructorOptions = {
label: 'Electron', label: 'Electron',
submenu: [ submenu: [
@@ -29,6 +64,21 @@ export default class MenuBuilder {
label: 'Settings', label: 'Settings',
}, },
{ type: 'separator' }, { type: 'separator' },
{
click: () => {
this.mainWindow.webContents.send('renderer-open-manage-servers');
},
label: 'Manage servers',
},
{
checked: privateMode,
click: () => {
this.mainWindow.webContents.send('renderer-toggle-private-mode');
},
label: 'Private session',
type: 'checkbox',
},
{ type: 'separator' },
{ label: 'Services', submenu: [] }, { label: 'Services', submenu: [] },
{ type: 'separator' }, { type: 'separator' },
{ {
@@ -71,6 +121,22 @@ export default class MenuBuilder {
const subMenuViewDev: MenuItemConstructorOptions = { const subMenuViewDev: MenuItemConstructorOptions = {
label: 'View', label: 'View',
submenu: [ submenu: [
{
accelerator: 'Command+K',
click: () => {
this.mainWindow.webContents.send('renderer-open-command-palette');
},
label: 'Command Palette...',
},
{
checked: sidebarCollapsed,
click: () => {
this.mainWindow.webContents.send('renderer-toggle-sidebar');
},
label: 'Collapse sidebar',
type: 'checkbox',
},
{ type: 'separator' },
{ {
accelerator: 'Command+R', accelerator: 'Command+R',
click: () => { click: () => {
@@ -97,6 +163,22 @@ export default class MenuBuilder {
const subMenuViewProd: MenuItemConstructorOptions = { const subMenuViewProd: MenuItemConstructorOptions = {
label: 'View', label: 'View',
submenu: [ submenu: [
{
accelerator: 'Command+K',
click: () => {
this.mainWindow.webContents.send('renderer-open-command-palette');
},
label: 'Command Palette...',
},
{
checked: sidebarCollapsed,
click: () => {
this.mainWindow.webContents.send('renderer-toggle-sidebar');
},
label: 'Collapse sidebar',
type: 'checkbox',
},
{ type: 'separator' },
{ {
accelerator: 'Ctrl+Command+F', accelerator: 'Ctrl+Command+F',
click: () => { click: () => {
@@ -119,6 +201,89 @@ export default class MenuBuilder {
{ label: 'Bring All to Front', selector: 'arrangeInFront:' }, { label: 'Bring All to Front', selector: 'arrangeInFront:' },
], ],
}; };
const subMenuPlayback: MenuItemConstructorOptions = {
label: 'Playback',
submenu: [
{
accelerator: accelerators?.playPause,
click: () => {
this.mainWindow.webContents.send('renderer-player-play-pause');
},
label: isPlaying ? 'Pause' : 'Play',
},
{ type: 'separator' },
{
accelerator: accelerators?.next,
click: () => {
this.mainWindow.webContents.send('renderer-player-next');
},
label: 'Next',
},
{
accelerator: accelerators?.previous,
click: () => {
this.mainWindow.webContents.send('renderer-player-previous');
},
label: 'Previous',
},
{
accelerator: accelerators?.seekForward,
click: () => {
this.mainWindow.webContents.send('renderer-player-skip-forward');
},
label: 'Seek Forward',
},
{
accelerator: accelerators?.seekBackward,
click: () => {
this.mainWindow.webContents.send('renderer-player-skip-backward');
},
label: 'Seek Backforward',
},
{ type: 'separator' },
{
accelerator: accelerators?.shuffle,
checked: shuffleEnabled,
click: () => {
this.mainWindow.webContents.send('renderer-player-toggle-shuffle');
},
label: 'Shuffle',
type: 'checkbox',
},
{
accelerator: accelerators?.repeat,
checked: isRepeatEnabled,
click: () => {
this.mainWindow.webContents.send('renderer-player-toggle-repeat');
},
label: 'Repeat',
type: 'checkbox',
},
{ type: 'separator' },
{
accelerator: accelerators?.stop,
click: () => {
this.mainWindow.webContents.send('renderer-player-stop');
},
label: 'Stop',
},
{ type: 'separator' },
{
accelerator: accelerators?.volumeUp,
click: () => {
this.mainWindow.webContents.send('renderer-player-volume-up');
},
label: 'Volume Up',
},
{
accelerator: accelerators?.volumeDown,
click: () => {
this.mainWindow.webContents.send('renderer-player-volume-down');
},
label: 'Volume Down',
},
],
};
const subMenuHelp: MenuItemConstructorOptions = { const subMenuHelp: MenuItemConstructorOptions = {
label: 'Help', label: 'Help',
submenu: [ submenu: [
@@ -148,6 +313,13 @@ export default class MenuBuilder {
}, },
label: 'Search Issues', label: 'Search Issues',
}, },
{ type: 'separator' },
{
click: () => {
this.mainWindow.webContents.send('renderer-open-release-notes');
},
label: 'Version ' + packageJson.version,
},
], ],
}; };
@@ -156,7 +328,14 @@ export default class MenuBuilder {
? subMenuViewDev ? subMenuViewDev
: subMenuViewProd; : subMenuViewProd;
return [subMenuAbout, subMenuEdit, subMenuView, subMenuWindow, subMenuHelp]; return [
subMenuAbout,
subMenuEdit,
subMenuView,
subMenuPlayback,
subMenuWindow,
subMenuHelp,
];
} }
buildDefaultTemplate(): MenuItemConstructorOptions[] { buildDefaultTemplate(): MenuItemConstructorOptions[] {
@@ -262,14 +441,14 @@ export default class MenuBuilder {
return templateDefault; return templateDefault;
} }
buildMenu(): Menu { buildMenu(playbackState: MenuPlaybackState = {}): Menu {
if (process.env.NODE_ENV === 'development' || process.env.DEBUG_PROD === 'true') { if (process.env.NODE_ENV === 'development' || process.env.DEBUG_PROD === 'true') {
this.setupDevelopmentEnvironment(); this.setupDevelopmentEnvironment();
} }
const template = const template =
process.platform === 'darwin' process.platform === 'darwin'
? this.buildDarwinTemplate() ? this.buildDarwinTemplate(playbackState)
: this.buildDefaultTemplate(); : this.buildDefaultTemplate();
const menu = Menu.buildFromTemplate(template); const menu = Menu.buildFromTemplate(template);
@@ -279,6 +458,13 @@ export default class MenuBuilder {
} }
setupDevelopmentEnvironment(): void { setupDevelopmentEnvironment(): void {
// buildMenu can run multiple times as menu state updates; attach this once.
if (this.developmentEnvironmentSetup) {
return;
}
this.developmentEnvironmentSetup = true;
this.mainWindow.webContents.on('context-menu', (_, props) => { this.mainWindow.webContents.on('context-menu', (_, props) => {
const { x, y } = props; const { x, y } = props;
+2 -1
View File
@@ -1,4 +1,5 @@
import { SetActivity } from '@xhayper/discord-rpc'; import type { SetActivity } from '@xhayper/discord-rpc';
import { ipcRenderer } from 'electron'; import { ipcRenderer } from 'electron';
const initialize = (clientId: string) => { const initialize = (clientId: string) => {
+1
View File
@@ -8,6 +8,7 @@ declare global {
electron: ElectronAPI; electron: ElectronAPI;
LEGACY_AUTHENTICATION?: boolean; LEGACY_AUTHENTICATION?: boolean;
queryLocalFonts?: () => Promise<Font[]>; queryLocalFonts?: () => Promise<Font[]>;
REMOTE_URL?: string;
SERVER_LOCK?: boolean; SERVER_LOCK?: boolean;
SERVER_NAME?: string; SERVER_NAME?: string;
SERVER_TYPE?: ServerType; SERVER_TYPE?: ServerType;
+1
View File
@@ -74,6 +74,7 @@ const env = {
SERVER_TYPE !== null SERVER_TYPE !== null
? process.env.LEGACY_AUTHENTICATION?.toLocaleLowerCase() === 'true' ? process.env.LEGACY_AUTHENTICATION?.toLocaleLowerCase() === 'true'
: false, : false,
REMOTE_URL: process.env.REMOTE_URL ?? '',
SERVER_LOCK: SERVER_LOCK:
SERVER_TYPE !== null ? process.env.SERVER_LOCK?.toLocaleLowerCase() === 'true' : false, SERVER_TYPE !== null ? process.env.SERVER_LOCK?.toLocaleLowerCase() === 'true' : false,
SERVER_NAME: process.env.SERVER_NAME ?? '', SERVER_NAME: process.env.SERVER_NAME ?? '',
+25
View File
@@ -65,6 +65,26 @@ const rendererOpenSettings = (cb: (event: IpcRendererEvent) => void) => {
ipcRenderer.on('renderer-open-settings', cb); ipcRenderer.on('renderer-open-settings', cb);
}; };
const rendererOpenCommandPalette = (cb: (event: IpcRendererEvent) => void) => {
ipcRenderer.on('renderer-open-command-palette', cb);
};
const rendererOpenManageServers = (cb: (event: IpcRendererEvent) => void) => {
ipcRenderer.on('renderer-open-manage-servers', cb);
};
const rendererTogglePrivateMode = (cb: (event: IpcRendererEvent) => void) => {
ipcRenderer.on('renderer-toggle-private-mode', cb);
};
const rendererToggleSidebar = (cb: (event: IpcRendererEvent) => void) => {
ipcRenderer.on('renderer-toggle-sidebar', cb);
};
const rendererOpenReleaseNotes = (cb: (event: IpcRendererEvent) => void) => {
ipcRenderer.on('renderer-open-release-notes', cb);
};
export const utils = { export const utils = {
checkForUpdates, checkForUpdates,
disableAutoUpdates, disableAutoUpdates,
@@ -78,7 +98,12 @@ export const utils = {
openApplicationDirectory, openApplicationDirectory,
openItem, openItem,
playerErrorListener, playerErrorListener,
rendererOpenCommandPalette,
rendererOpenManageServers,
rendererOpenReleaseNotes,
rendererOpenSettings, rendererOpenSettings,
rendererTogglePrivateMode,
rendererToggleSidebar,
}; };
export type Utils = typeof utils; export type Utils = typeof utils;
+162 -160
View File
@@ -10,6 +10,8 @@ import {
ControllerEndpoint, ControllerEndpoint,
InternalControllerEndpoint, InternalControllerEndpoint,
ServerType, ServerType,
SetPlaylistSongsArgs,
SetPlaylistSongsResponse,
} from '/@/shared/types/domain-types'; } from '/@/shared/types/domain-types';
type ApiController = { type ApiController = {
@@ -32,10 +34,8 @@ const apiController = <K extends keyof ControllerEndpoint>(
if (!serverType) { if (!serverType) {
toast.error({ toast.error({
message: i18n.t('error.serverNotSelectedError', { message: i18n.t('error.serverNotSelectedError') as string,
postProcess: 'sentenceCase', title: i18n.t('error.apiRouteError') as string,
}) as string,
title: i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' }) as string,
}); });
throw new Error(`No server selected`); throw new Error(`No server selected`);
} }
@@ -45,13 +45,13 @@ const apiController = <K extends keyof ControllerEndpoint>(
if (typeof controllerFn !== 'function') { if (typeof controllerFn !== 'function') {
toast.error({ toast.error({
message: `Endpoint ${endpoint} is not implemented for ${serverType}`, message: `Endpoint ${endpoint} is not implemented for ${serverType}`,
title: i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' }) as string, title: i18n.t('error.apiRouteError') as string,
}); });
throw new Error( throw new Error(
i18n.t('error.endpointNotImplementedError', { i18n.t('error.endpointNotImplementedError', {
endpoint, endpoint,
postProcess: 'sentenceCase',
serverType, serverType,
}) as string, }) as string,
); );
@@ -67,6 +67,7 @@ const getPathReplaceSettings = () => {
const addContext = <T extends { apiClientProps: any; context?: any }>(args: T): T => { const addContext = <T extends { apiClientProps: any; context?: any }>(args: T): T => {
const pathSettings = getPathReplaceSettings(); const pathSettings = getPathReplaceSettings();
return { return {
...args, ...args,
context: { context: {
@@ -89,9 +90,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: addToPlaylist`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: addToPlaylist`,
);
} }
return apiController( return apiController(
@@ -106,9 +105,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: createFavorite`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: createFavorite`,
);
} }
return apiController( return apiController(
@@ -120,9 +117,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: createInternetRadioStation`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: createInternetRadioStation`,
);
} }
return apiController( return apiController(
@@ -134,9 +129,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: createPlaylist`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: createPlaylist`,
);
} }
return apiController( return apiController(
@@ -144,13 +137,23 @@ export const controller: GeneralController = {
server.type, server.type,
)?.(addContext({ ...args, apiClientProps: { ...args.apiClientProps, server } })); )?.(addContext({ ...args, apiClientProps: { ...args.apiClientProps, server } }));
}, },
deleteArtistImage(args) {
const server = getServerById(args.apiClientProps.serverId);
if (!server) {
throw new Error(`${i18n.t('error.apiRouteError')}: deleteArtistImage`);
}
return apiController(
'deleteArtistImage',
server.type,
)?.(addContext({ ...args, apiClientProps: { ...args.apiClientProps, server } }));
},
deleteFavorite(args) { deleteFavorite(args) {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: deleteFavorite`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: deleteFavorite`,
);
} }
return apiController( return apiController(
@@ -162,9 +165,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: deleteInternetRadioStation`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: deleteInternetRadioStation`,
);
} }
return apiController( return apiController(
@@ -172,13 +173,23 @@ export const controller: GeneralController = {
server.type, server.type,
)?.(addContext({ ...args, apiClientProps: { ...args.apiClientProps, server } })); )?.(addContext({ ...args, apiClientProps: { ...args.apiClientProps, server } }));
}, },
deleteInternetRadioStationImage(args) {
const server = getServerById(args.apiClientProps.serverId);
if (!server) {
throw new Error(`${i18n.t('error.apiRouteError')}: deleteInternetRadioStationImage`);
}
return apiController(
'deleteInternetRadioStationImage',
server.type,
)?.(addContext({ ...args, apiClientProps: { ...args.apiClientProps, server } }));
},
deletePlaylist(args) { deletePlaylist(args) {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: deletePlaylist`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: deletePlaylist`,
);
} }
return apiController( return apiController(
@@ -186,13 +197,23 @@ export const controller: GeneralController = {
server.type, server.type,
)?.(addContext({ ...args, apiClientProps: { ...args.apiClientProps, server } })); )?.(addContext({ ...args, apiClientProps: { ...args.apiClientProps, server } }));
}, },
deletePlaylistImage(args) {
const server = getServerById(args.apiClientProps.serverId);
if (!server) {
throw new Error(`${i18n.t('error.apiRouteError')}: deletePlaylistImage`);
}
return apiController(
'deletePlaylistImage',
server.type,
)?.(addContext({ ...args, apiClientProps: { ...args.apiClientProps, server } }));
},
getAlbumArtistDetail(args) { getAlbumArtistDetail(args) {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: getAlbumArtistDetail`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: getAlbumArtistDetail`,
);
} }
return apiController( return apiController(
@@ -216,9 +237,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: getAlbumArtistList`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: getAlbumArtistList`,
);
} }
return apiController( return apiController(
@@ -236,9 +255,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: getAlbumArtistListCount`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: getAlbumArtistListCount`,
);
} }
return apiController( return apiController(
@@ -256,9 +273,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: getAlbumDetail`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: getAlbumDetail`,
);
} }
return apiController( return apiController(
@@ -270,9 +285,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: getAlbumInfo`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: getAlbumInfo`,
);
} }
return apiController( return apiController(
@@ -284,9 +297,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: getAlbumList`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: getAlbumList`,
);
} }
return apiController( return apiController(
@@ -304,9 +315,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: getAlbumListCount`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: getAlbumListCount`,
);
} }
return apiController( return apiController(
@@ -324,9 +333,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: getAlbumRadio`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: getAlbumRadio`,
);
} }
return apiController( return apiController(
@@ -338,9 +345,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: getArtistList`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: getArtistList`,
);
} }
return apiController( return apiController(
@@ -358,9 +363,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: getArtistListCount`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: getArtistListCount`,
);
} }
return apiController( return apiController(
@@ -378,9 +381,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: getArtistRadio`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: getArtistRadio`,
);
} }
return apiController( return apiController(
@@ -392,9 +393,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: getDownloadUrl`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: getDownloadUrl`,
);
} }
return apiController( return apiController(
@@ -406,9 +405,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: getFolder`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: getFolder`,
);
} }
return apiController( return apiController(
@@ -426,9 +423,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: getGenreList`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: getGenreList`,
);
} }
return apiController( return apiController(
@@ -442,6 +437,25 @@ export const controller: GeneralController = {
}), }),
); );
}, },
getImageRequest(args) {
const server = getServerById(args.apiClientProps.serverId);
if (!server) {
return null;
}
return (
apiController(
'getImageRequest',
server.type,
)?.(
addContext({
...args,
apiClientProps: { ...args.apiClientProps, server },
}),
) || null
);
},
getImageUrl(args) { getImageUrl(args) {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
@@ -465,9 +479,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: getInternetRadioStations`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: getInternetRadioStations`,
);
} }
return apiController( return apiController(
'getInternetRadioStations', 'getInternetRadioStations',
@@ -478,9 +490,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: getLyrics`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: getLyrics`,
);
} }
return apiController( return apiController(
@@ -492,9 +502,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: getMusicFolderList`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: getMusicFolderList`,
);
} }
return apiController( return apiController(
@@ -506,9 +514,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: getPlaylistDetail`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: getPlaylistDetail`,
);
} }
return apiController( return apiController(
@@ -520,9 +526,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: getPlaylistList`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: getPlaylistList`,
);
} }
return apiController( return apiController(
@@ -534,9 +538,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: getPlaylistListCount`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: getPlaylistListCount`,
);
} }
return apiController( return apiController(
@@ -548,9 +550,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: getPlaylistSongList`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: getPlaylistSongList`,
);
} }
return apiController( return apiController(
@@ -562,9 +562,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: getPlayQueue`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: getPlayQueue`,
);
} }
return apiController( return apiController(
@@ -576,9 +574,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: getRandomSongList`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: getRandomSongList`,
);
} }
return apiController( return apiController(
@@ -596,9 +592,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: getRoles`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: getRoles`,
);
} }
return apiController( return apiController(
@@ -610,9 +604,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: getServerInfo`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: getServerInfo`,
);
} }
return apiController( return apiController(
@@ -624,9 +616,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: getSimilarSongs`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: getSimilarSongs`,
);
} }
return apiController( return apiController(
@@ -644,9 +634,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: getSongDetail`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: getSongDetail`,
);
} }
return apiController( return apiController(
@@ -658,9 +646,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: getSongList`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: getSongList`,
);
} }
return apiController( return apiController(
@@ -678,9 +664,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: getSongListCount`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: getSongListCount`,
);
} }
return apiController( return apiController(
@@ -698,7 +682,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
return ''; throw new Error(`${i18n.t('error.apiRouteError')}: getStreamUrl`);
} }
return apiController( return apiController(
@@ -710,9 +694,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: getStructuredLyrics`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: getStructuredLyrics`,
);
} }
return apiController( return apiController(
@@ -724,9 +706,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: getTags`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: getTags`,
);
} }
return apiController( return apiController(
@@ -738,9 +718,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: getTopSongs`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: getTopSongs`,
);
} }
return apiController( return apiController(
@@ -752,9 +730,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: getUserInfo`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: getUserInfo`,
);
} }
return apiController( return apiController(
@@ -766,9 +742,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: getUserList`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: getUserList`,
);
} }
return apiController( return apiController(
@@ -780,9 +754,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: movePlaylistItem`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: movePlaylistItem`,
);
} }
return apiController( return apiController(
@@ -794,9 +766,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: removeFromPlaylist`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: removeFromPlaylist`,
);
} }
return apiController( return apiController(
@@ -808,9 +778,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: replacePlaylist`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: replacePlaylist`,
);
} }
return apiController( return apiController(
@@ -822,9 +790,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: savePlayQueue`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: savePlayQueue`,
);
} }
return apiController( return apiController(
@@ -836,9 +802,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: scrobble`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: scrobble`,
);
} }
return apiController( return apiController(
@@ -850,9 +814,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: search`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: search`,
);
} }
return apiController( return apiController(
@@ -866,13 +828,23 @@ export const controller: GeneralController = {
}), }),
); );
}, },
setPlaylistSongs: function (args: SetPlaylistSongsArgs): Promise<SetPlaylistSongsResponse> {
const server = getServerById(args.apiClientProps.serverId);
if (!server) {
throw new Error(`${i18n.t('error.apiRouteError')}: setPlaylistSongs`);
}
return apiController(
'setPlaylistSongs',
server.type,
)?.(addContext({ ...args, apiClientProps: { ...args.apiClientProps, server } }));
},
setRating(args) { setRating(args) {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: setRating`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: setRating`,
);
} }
return apiController( return apiController(
@@ -884,9 +856,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: shareItem`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: shareItem`,
);
} }
return apiController( return apiController(
@@ -898,9 +868,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: updateInternetRadioStation`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: updateInternetRadioStation`,
);
} }
return apiController( return apiController(
@@ -912,9 +880,7 @@ export const controller: GeneralController = {
const server = getServerById(args.apiClientProps.serverId); const server = getServerById(args.apiClientProps.serverId);
if (!server) { if (!server) {
throw new Error( throw new Error(`${i18n.t('error.apiRouteError')}: updatePlaylist`);
`${i18n.t('error.apiRouteError', { postProcess: 'sentenceCase' })}: updatePlaylist`,
);
} }
return apiController( return apiController(
@@ -922,4 +888,40 @@ export const controller: GeneralController = {
server.type, server.type,
)?.(addContext({ ...args, apiClientProps: { ...args.apiClientProps, server } })); )?.(addContext({ ...args, apiClientProps: { ...args.apiClientProps, server } }));
}, },
uploadArtistImage(args) {
const server = getServerById(args.apiClientProps.serverId);
if (!server) {
throw new Error(`${i18n.t('error.apiRouteError')}: uploadArtistImage`);
}
return apiController(
'uploadArtistImage',
server.type,
)?.(addContext({ ...args, apiClientProps: { ...args.apiClientProps, server } }));
},
uploadInternetRadioStationImage(args) {
const server = getServerById(args.apiClientProps.serverId);
if (!server) {
throw new Error(`${i18n.t('error.apiRouteError')}: uploadInternetRadioStationImage`);
}
return apiController(
'uploadInternetRadioStationImage',
server.type,
)?.(addContext({ ...args, apiClientProps: { ...args.apiClientProps, server } }));
},
uploadPlaylistImage(args) {
const server = getServerById(args.apiClientProps.serverId);
if (!server) {
throw new Error(`${i18n.t('error.apiRouteError')}: uploadPlaylistImage`);
}
return apiController(
'uploadPlaylistImage',
server.type,
)?.(addContext({ ...args, apiClientProps: { ...args.apiClientProps, server } }));
},
}; };
+1 -5
View File
@@ -447,11 +447,7 @@ export const jfApiClient = (args: {
} catch (e: any | AxiosError | Error) { } catch (e: any | AxiosError | Error) {
if (isAxiosError(e)) { if (isAxiosError(e)) {
if (e.code === 'ERR_NETWORK') { if (e.code === 'ERR_NETWORK') {
throw new Error( throw new Error(i18n.t('error.networkError') as string);
i18n.t('error.networkError', {
postProcess: 'sentenceCase',
}) as string,
);
} }
const error = e as AxiosError; const error = e as AxiosError;
@@ -4,7 +4,7 @@ import filter from 'lodash/filter';
import orderBy from 'lodash/orderBy'; import orderBy from 'lodash/orderBy';
import { z } from 'zod'; import { z } from 'zod';
import { jfApiClient } from '/@/renderer/api/jellyfin/jellyfin-api'; import { createAuthHeader, jfApiClient } from '/@/renderer/api/jellyfin/jellyfin-api';
import { useRadioStore } from '/@/renderer/features/radio/store/radio-store'; import { useRadioStore } from '/@/renderer/features/radio/store/radio-store';
import { getServerUrl } from '/@/renderer/utils/normalize-server-url'; import { getServerUrl } from '/@/renderer/utils/normalize-server-url';
import { jfNormalize } from '/@/shared/api/jellyfin/jellyfin-normalize'; import { jfNormalize } from '/@/shared/api/jellyfin/jellyfin-normalize';
@@ -15,10 +15,13 @@ import {
albumListSortMap, albumListSortMap,
Folder, Folder,
genreListSortMap, genreListSortMap,
ImageArgs,
ImageRequest,
InternalControllerEndpoint, InternalControllerEndpoint,
LibraryItem, LibraryItem,
Played, Played,
playlistListSortMap, playlistListSortMap,
ReplaceApiClientProps,
ServerType, ServerType,
Song, Song,
SongListSort, SongListSort,
@@ -29,6 +32,33 @@ import {
} from '/@/shared/types/domain-types'; } from '/@/shared/types/domain-types';
import { ServerFeature } from '/@/shared/types/features-types'; import { ServerFeature } from '/@/shared/types/features-types';
const getJellyfinImageRequest = ({
apiClientProps: { server },
baseUrl,
query,
}: ReplaceApiClientProps<ImageArgs>): ImageRequest | null => {
const { id, size } = query;
const imageSize = size;
if (!server) {
return null;
}
const url = baseUrl || getServerUrl(server);
if (!url) {
return null;
}
return {
cacheKey: ['jellyfin', server.id, baseUrl || '', id, imageSize || ''].join(':'),
headers: server.credential
? { Authorization: createAuthHeader().concat(`, Token="${server.credential}"`) }
: { Authorization: createAuthHeader() },
url: `${url}/Items/${id}/Images/Primary?quality=96${imageSize ? `&width=${imageSize}` : ''}`,
};
};
const formatCommaDelimitedString = (value: string[]) => { const formatCommaDelimitedString = (value: string[]) => {
return value.join(','); return value.join(',');
}; };
@@ -379,6 +409,8 @@ export const JellyfinController: InternalControllerEndpoint = {
return jfNormalize.album( return jfNormalize.album(
{ ...res.body, Songs: songsRes.body.Items }, { ...res.body, Songs: songsRes.body.Items },
apiClientProps.server, apiClientProps.server,
args.context?.pathReplace,
args.context?.pathReplaceWith,
); );
}, },
getAlbumList: async (args) => { getAlbumList: async (args) => {
@@ -550,7 +582,8 @@ export const JellyfinController: InternalControllerEndpoint = {
return `${apiClientProps.server?.url}/items/${query.id}/download?apiKey=${apiClientProps.server?.credential}`; return `${apiClientProps.server?.url}/items/${query.id}/download?apiKey=${apiClientProps.server?.credential}`;
}, },
getFolder: async ({ apiClientProps, query }) => { getFolder: async (args) => {
const { apiClientProps, query } = args;
const userId = apiClientProps.server?.userId; const userId = apiClientProps.server?.userId;
if (!userId) throw new Error('No userId found'); if (!userId) throw new Error('No userId found');
@@ -712,6 +745,8 @@ export const JellyfinController: InternalControllerEndpoint = {
jfNormalize.song( jfNormalize.song(
item as unknown as z.infer<typeof jfType._response.song>, item as unknown as z.infer<typeof jfType._response.song>,
apiClientProps.server, apiClientProps.server,
args.context?.pathReplace,
args.context?.pathReplaceWith,
), ),
); );
@@ -789,23 +824,8 @@ export const JellyfinController: InternalControllerEndpoint = {
totalRecordCount: res.body?.TotalRecordCount || 0, totalRecordCount: res.body?.TotalRecordCount || 0,
}; };
}, },
getImageUrl: ({ apiClientProps: { server }, baseUrl, query }) => { getImageRequest: getJellyfinImageRequest,
const { id, size } = query; getImageUrl: (args) => getJellyfinImageRequest(args)?.url || null,
const imageSize = size;
const url = baseUrl || getServerUrl(server);
if (!url) {
return null;
}
// For Jellyfin, we construct the URL pattern
// The server will return a 404 or placeholder if no image exists
const imageUrl = `${url}/Items/${id}/Images/Primary?quality=96${imageSize ? `&width=${imageSize}` : ''}`;
// For songs, we might want to fall back to album art, but we don't have albumId here
// The caller can handle this if needed
return imageUrl;
},
getInternetRadioStations: async (args) => { getInternetRadioStations: async (args) => {
const { apiClientProps } = args; const { apiClientProps } = args;
@@ -1268,7 +1288,7 @@ export const JellyfinController: InternalControllerEndpoint = {
apiClientProps, apiClientProps,
query: { ...query, limit: 1, startIndex: 0 }, query: { ...query, limit: 1, startIndex: 0 },
}).then((result) => result!.totalRecordCount!), }).then((result) => result!.totalRecordCount!),
getStreamUrl: ({ apiClientProps: { server }, query }) => { getStreamUrl: async ({ apiClientProps: { server }, query }) => {
const { bitrate, format, id, transcode } = query; const { bitrate, format, id, transcode } = query;
const deviceId = ''; const deviceId = '';
@@ -1754,6 +1774,24 @@ export const JellyfinController: InternalControllerEndpoint = {
), ),
}; };
}, },
setPlaylistSongs: async (args) => {
const { apiClientProps, body } = args;
const res = await jfApiClient(apiClientProps).updatePlaylist({
body: {
Ids: body.songIds,
},
params: {
id: body.id,
},
});
if (res.status !== 204) {
throw new Error('Failed to update playlist songs');
}
return null;
},
updateInternetRadioStation: async (args) => { updateInternetRadioStation: async (args) => {
const { apiClientProps, body, query } = args; const { apiClientProps, body, query } = args;
@@ -1783,14 +1821,8 @@ export const JellyfinController: InternalControllerEndpoint = {
const res = await jfApiClient(apiClientProps).updatePlaylist({ const res = await jfApiClient(apiClientProps).updatePlaylist({
body: { body: {
Genres: body.genres?.map((item) => ({ Id: item.id, Name: item.name })) || [],
IsPublic: body.public, IsPublic: body.public,
MediaType: 'Audio',
Name: body.name, Name: body.name,
PremiereDate: null,
ProviderIds: {},
Tags: [],
UserId: apiClientProps.server?.userId, // Required
}, },
params: { params: {
id: query.id, id: query.id,
@@ -1805,31 +1837,6 @@ export const JellyfinController: InternalControllerEndpoint = {
}, },
}; };
// const getArtistList = async (args: ArtistListArgs): Promise<AlbumArtistListResponse> => {
// const { query, apiClientProps } = args;
// const res = await jfApiClient(apiClientProps).getAlbumArtistList({
// query: {
// Limit: query.limit,
// ParentId: query.musicFolderId,
// Recursive: true,
// SortBy: artistListSortMap.jellyfin[query.sortBy] || 'SortName,Name',
// SortOrder: sortOrderMap.jellyfin[query.sortOrder],
// StartIndex: query.startIndex,
// },
// });
// if (res.status !== 200) {
// throw new Error('Failed to get artist list');
// }
// return {
// items: res.body.Items.map((item) => jfNormalize.albumArtist(item, apiClientProps.server)),
// startIndex: query.startIndex,
// totalRecordCount: res.body.TotalRecordCount,
// };
// };
function getLibraryId(musicFolderId?: string | string[]) { function getLibraryId(musicFolderId?: string | string[]) {
return Array.isArray(musicFolderId) ? musicFolderId[0] : musicFolderId; return Array.isArray(musicFolderId) ? musicFolderId[0] : musicFolderId;
} }
+85 -16
View File
@@ -46,6 +46,33 @@ export const contract = c.router({
500: resultWithHeaders(ndType._response.error), 500: resultWithHeaders(ndType._response.error),
}, },
}, },
deleteArtistImage: {
body: null,
method: 'DELETE',
path: 'artist/:id/image',
responses: {
200: resultWithHeaders(ndType._response.deleteArtistImage),
500: resultWithHeaders(ndType._response.error),
},
},
deleteInternetRadioStation: {
body: null,
method: 'DELETE',
path: 'radio/:id',
responses: {
200: resultWithHeaders(ndType._response.deleteInternetRadioStation),
500: resultWithHeaders(ndType._response.error),
},
},
deleteInternetRadioStationImage: {
body: null,
method: 'DELETE',
path: 'radio/:id/image',
responses: {
200: resultWithHeaders(ndType._response.deleteInternetRadioStationImage),
500: resultWithHeaders(ndType._response.error),
},
},
deletePlaylist: { deletePlaylist: {
body: null, body: null,
method: 'DELETE', method: 'DELETE',
@@ -55,6 +82,15 @@ export const contract = c.router({
500: resultWithHeaders(ndType._response.error), 500: resultWithHeaders(ndType._response.error),
}, },
}, },
deletePlaylistImage: {
body: null,
method: 'DELETE',
path: 'playlist/:id/image',
responses: {
200: resultWithHeaders(ndType._response.deletePlaylistImage),
500: resultWithHeaders(ndType._response.error),
},
},
getAlbumArtistDetail: { getAlbumArtistDetail: {
method: 'GET', method: 'GET',
path: 'artist/:id', path: 'artist/:id',
@@ -132,6 +168,15 @@ export const contract = c.router({
500: resultWithHeaders(ndType._response.error), 500: resultWithHeaders(ndType._response.error),
}, },
}, },
getRadioList: {
method: 'GET',
path: 'radio',
query: ndType._parameters.radioList,
responses: {
200: resultWithHeaders(ndType._response.radioList),
500: resultWithHeaders(ndType._response.error),
},
},
getSongDetail: { getSongDetail: {
method: 'GET', method: 'GET',
path: 'song/:id', path: 'song/:id',
@@ -205,6 +250,15 @@ export const contract = c.router({
500: resultWithHeaders(ndType._response.error), 500: resultWithHeaders(ndType._response.error),
}, },
}, },
updateInternetRadioStation: {
body: ndType._parameters.updateInternetRadioStation,
method: 'PUT',
path: 'radio/:id',
responses: {
200: resultWithHeaders(ndType._response.updateInternetRadioStation),
500: resultWithHeaders(ndType._response.error),
},
},
updatePlaylist: { updatePlaylist: {
body: ndType._parameters.updatePlaylist, body: ndType._parameters.updatePlaylist,
method: 'PUT', method: 'PUT',
@@ -214,6 +268,33 @@ export const contract = c.router({
500: resultWithHeaders(ndType._response.error), 500: resultWithHeaders(ndType._response.error),
}, },
}, },
uploadArtistImage: {
body: ndType._parameters.uploadArtistImage,
method: 'POST',
path: 'artist/:id/image',
responses: {
200: resultWithHeaders(ndType._response.uploadArtistImage),
500: resultWithHeaders(ndType._response.error),
},
},
uploadInternetRadioStationImage: {
body: ndType._parameters.uploadInternetRadioStationImage,
method: 'POST',
path: 'radio/:id/image',
responses: {
200: resultWithHeaders(ndType._response.uploadInternetRadioStationImage),
500: resultWithHeaders(ndType._response.error),
},
},
uploadPlaylistImage: {
body: ndType._parameters.uploadPlaylistImage,
method: 'POST',
path: 'playlist/:id/image',
responses: {
200: resultWithHeaders(ndType._response.uploadPlaylistImage),
500: resultWithHeaders(ndType._response.error),
},
},
}); });
const axiosClient = axios.create({}); const axiosClient = axios.create({});
@@ -324,12 +405,8 @@ axiosClient.interceptors.response.use(
if (res.status === 429) { if (res.status === 429) {
toast.error({ toast.error({
message: i18n.t('error.loginRateError', { message: i18n.t('error.loginRateError') as string,
postProcess: 'sentenceCase', title: i18n.t('error.sessionExpiredError') as string,
}) as string,
title: i18n.t('error.sessionExpiredError', {
postProcess: 'sentenceCase',
}) as string,
}); });
const serverId = currentServer.id; const serverId = currentServer.id;
@@ -344,11 +421,7 @@ axiosClient.interceptors.response.use(
throw TIMEOUT_ERROR; throw TIMEOUT_ERROR;
} }
if (res.status !== 200) { if (res.status !== 200) {
throw new Error( throw new Error(i18n.t('error.authenticatedFailed') as string);
i18n.t('error.authenticatedFailed', {
postProcess: 'sentenceCase',
}) as string,
);
} }
const newCredential = res.data.token; const newCredential = res.data.token;
@@ -441,11 +514,7 @@ export const ndApiClient = (args: {
} catch (e: any | AxiosError | Error) { } catch (e: any | AxiosError | Error) {
if (isAxiosError(e)) { if (isAxiosError(e)) {
if (e.code === 'ERR_NETWORK') { if (e.code === 'ERR_NETWORK') {
throw new Error( throw new Error(i18n.t('error.networkError') as string);
i18n.t('error.networkError', {
postProcess: 'sentenceCase',
}) as string,
);
} }
const error = e as AxiosError; const error = e as AxiosError;
@@ -1,3 +1,4 @@
import axios from 'axios';
import { set } from 'idb-keyval'; import { set } from 'idb-keyval';
import orderBy from 'lodash/orderBy'; import orderBy from 'lodash/orderBy';
@@ -5,13 +6,19 @@ import { ndApiClient } from '/@/renderer/api/navidrome/navidrome-api';
import { ssApiClient } from '/@/renderer/api/subsonic/subsonic-api'; import { ssApiClient } from '/@/renderer/api/subsonic/subsonic-api';
import { SubsonicController } from '/@/renderer/api/subsonic/subsonic-controller'; import { SubsonicController } from '/@/renderer/api/subsonic/subsonic-controller';
import { ndNormalize } from '/@/shared/api/navidrome/navidrome-normalize'; import { ndNormalize } from '/@/shared/api/navidrome/navidrome-normalize';
import { NDSongListSort } from '/@/shared/api/navidrome/navidrome-types'; import { NDRadioListSort, NDSongListSort } from '/@/shared/api/navidrome/navidrome-types';
import { ssNormalize } from '/@/shared/api/subsonic/subsonic-normalize'; import { ssNormalize } from '/@/shared/api/subsonic/subsonic-normalize';
import { getFeatures, hasFeature, hasFeatureWithVersion, VersionInfo } from '/@/shared/api/utils'; import { getFeatures, hasFeature, hasFeatureWithVersion, VersionInfo } from '/@/shared/api/utils';
import { import {
albumArtistListSortMap, albumArtistListSortMap,
albumListSortMap, albumListSortMap,
AuthenticationResponse, AuthenticationResponse,
DeleteArtistImageArgs,
DeleteArtistImageResponse,
DeleteInternetRadioStationImageArgs,
DeleteInternetRadioStationImageResponse,
DeletePlaylistImageArgs,
DeletePlaylistImageResponse,
genreListSortMap, genreListSortMap,
InternalControllerEndpoint, InternalControllerEndpoint,
playlistListSortMap, playlistListSortMap,
@@ -23,6 +30,12 @@ import {
SortOrder, SortOrder,
sortOrderMap, sortOrderMap,
tagListSortMap, tagListSortMap,
UploadArtistImageArgs,
UploadArtistImageResponse,
UploadInternetRadioStationImageArgs,
UploadInternetRadioStationImageResponse,
UploadPlaylistImageArgs,
UploadPlaylistImageResponse,
userListSortMap, userListSortMap,
} from '/@/shared/types/domain-types'; } from '/@/shared/types/domain-types';
import { ServerFeature } from '/@/shared/types/features-types'; import { ServerFeature } from '/@/shared/types/features-types';
@@ -30,6 +43,14 @@ import { ServerFeature } from '/@/shared/types/features-types';
const VERSION_INFO: VersionInfo = [ const VERSION_INFO: VersionInfo = [
// Why 2? Subsonic controller will return 1 for its own implementation // Why 2? Subsonic controller will return 1 for its own implementation
// Use 2 to denote that Navidrome's own API has a different endpoint // Use 2 to denote that Navidrome's own API has a different endpoint
[
'0.61.0',
{
[ServerFeature.ARTIST_IMAGE_UPLOAD]: [1],
[ServerFeature.INTERNET_RADIO_IMAGE_UPLOAD]: [1],
[ServerFeature.PLAYLIST_IMAGE_UPLOAD]: [1],
},
],
['0.60.4', { [ServerFeature.TRACK_YES_NO_RATING_FILTER]: [1] }], ['0.60.4', { [ServerFeature.TRACK_YES_NO_RATING_FILTER]: [1] }],
['0.57.0', { [ServerFeature.SERVER_PLAY_QUEUE]: [2] }], ['0.57.0', { [ServerFeature.SERVER_PLAY_QUEUE]: [2] }],
['0.56.0', { [ServerFeature.TRACK_ALBUM_ARTIST_SEARCH]: [1] }], ['0.56.0', { [ServerFeature.TRACK_ALBUM_ARTIST_SEARCH]: [1] }],
@@ -170,8 +191,54 @@ export const NavidromeController: InternalControllerEndpoint = {
id: res.body.data.id, id: res.body.data.id,
}; };
}, },
deleteArtistImage: async (args: DeleteArtistImageArgs): Promise<DeleteArtistImageResponse> => {
const { apiClientProps, query } = args;
const res = await ndApiClient(apiClientProps as any).deleteArtistImage({
params: {
id: query.id,
},
});
if (res.status !== 200) {
throw new Error('Failed to delete artist image');
}
return res.body.data.status === 'ok';
},
deleteFavorite: SubsonicController.deleteFavorite, deleteFavorite: SubsonicController.deleteFavorite,
deleteInternetRadioStation: SubsonicController.deleteInternetRadioStation, deleteInternetRadioStation: async (args) => {
const { apiClientProps, query } = args;
const res = await ndApiClient(apiClientProps).deleteInternetRadioStation({
params: {
id: query.id,
},
});
if (res.status !== 200) {
throw new Error('Failed to delete internet radio station');
}
return null;
},
deleteInternetRadioStationImage: async (
args: DeleteInternetRadioStationImageArgs,
): Promise<DeleteInternetRadioStationImageResponse> => {
const { apiClientProps, query } = args;
const res = await ndApiClient(apiClientProps as any).deleteInternetRadioStationImage({
params: {
id: query.id,
},
});
if (res.status !== 200) {
throw new Error('Failed to delete internet radio station image');
}
return res.body.data.status === 'ok';
},
deletePlaylist: async (args) => { deletePlaylist: async (args) => {
const { apiClientProps, query } = args; const { apiClientProps, query } = args;
@@ -187,6 +254,23 @@ export const NavidromeController: InternalControllerEndpoint = {
return null; return null;
}, },
deletePlaylistImage: async (
args: DeletePlaylistImageArgs,
): Promise<DeletePlaylistImageResponse> => {
const { apiClientProps, query } = args;
const res = await ndApiClient(apiClientProps as any).deletePlaylistImage({
params: {
id: query.id,
},
});
if (res.status !== 200) {
throw new Error('Failed to delete playlist image');
}
return res.body.data.status === 'ok';
},
getAlbumArtistDetail: async (args) => { getAlbumArtistDetail: async (args) => {
const { apiClientProps, query } = args; const { apiClientProps, query } = args;
@@ -233,8 +317,8 @@ export const NavidromeController: InternalControllerEndpoint = {
similarArtists: similarArtists:
artistInfo?.similarArtist?.map((artist) => ({ artistInfo?.similarArtist?.map((artist) => ({
id: artist.id, id: artist.id,
imageId: null, imageId: artist.id,
imageUrl: artist?.artistImageUrl?.replace(/\?size=\d+/, '') ?? null, imageUrl: null,
name: artist.name, name: artist.name,
userFavorite: Boolean(artist.starred) || false, userFavorite: Boolean(artist.starred) || false,
userRating: artist.userRating ?? null, userRating: artist.userRating ?? null,
@@ -412,7 +496,12 @@ export const NavidromeController: InternalControllerEndpoint = {
} }
return res.body.similarSongs.song.map((song) => return res.body.similarSongs.song.map((song) =>
ssNormalize.song(song, apiClientProps.server), ssNormalize.song(
song,
apiClientProps.server,
args.context?.pathReplace,
args.context?.pathReplaceWith,
),
); );
}, },
getArtistList: async (args) => { getArtistList: async (args) => {
@@ -482,7 +571,12 @@ export const NavidromeController: InternalControllerEndpoint = {
} }
return res.body.similarSongs2.song.map((song) => return res.body.similarSongs2.song.map((song) =>
ssNormalize.song(song, apiClientProps.server), ssNormalize.song(
song,
apiClientProps.server,
args.context?.pathReplace,
args.context?.pathReplaceWith,
),
); );
}, },
getDownloadUrl: SubsonicController.getDownloadUrl, getDownloadUrl: SubsonicController.getDownloadUrl,
@@ -545,8 +639,26 @@ export const NavidromeController: InternalControllerEndpoint = {
totalRecordCount: Number(res.body.headers.get('x-total-count') || 0), totalRecordCount: Number(res.body.headers.get('x-total-count') || 0),
}; };
}, },
getImageRequest: SubsonicController.getImageRequest,
getImageUrl: SubsonicController.getImageUrl, getImageUrl: SubsonicController.getImageUrl,
getInternetRadioStations: SubsonicController.getInternetRadioStations, getInternetRadioStations: async (args) => {
const { apiClientProps } = args;
const res = await ndApiClient(apiClientProps).getRadioList({
query: {
_end: -1,
_order: 'ASC',
_sort: NDRadioListSort.NAME,
_start: 0,
},
});
if (res.status !== 200) {
throw new Error('Failed to get internet radio stations');
}
return res.body.data.map((station) => ndNormalize.internetRadioStation(station));
},
getLyrics: SubsonicController.getLyrics, getLyrics: SubsonicController.getLyrics,
getMusicFolderList: SubsonicController.getMusicFolderList, getMusicFolderList: SubsonicController.getMusicFolderList,
getPlaylistDetail: async (args) => { getPlaylistDetail: async (args) => {
@@ -603,6 +715,7 @@ export const NavidromeController: InternalControllerEndpoint = {
query: { query: {
_end: -1, _end: -1,
_order: 'ASC', _order: 'ASC',
_sort: NDSongListSort.ID,
_start: 0, _start: 0,
...excludeMissing(apiClientProps.server), ...excludeMissing(apiClientProps.server),
}, },
@@ -635,7 +748,7 @@ export const NavidromeController: InternalControllerEndpoint = {
throw new Error('Failed to get play queue'); throw new Error('Failed to get play queue');
} }
const { changedBy, current, items, position, updatedAt } = res.body.data; const { changedBy, current, items = [], position, updatedAt } = res.body.data; // if there is no queue saved, items is undefined
const entries = items.map((song) => const entries = items.map((song) =>
ndNormalize.song( ndNormalize.song(
@@ -720,7 +833,14 @@ export const NavidromeController: InternalControllerEndpoint = {
return ( return (
(res.body.similarSongs?.song || []) (res.body.similarSongs?.song || [])
.filter((song) => song.id !== query.songId) .filter((song) => song.id !== query.songId)
.map((song) => ssNormalize.song(song, apiClientProps.server)) || [] .map((song) =>
ssNormalize.song(
song,
apiClientProps.server,
args.context?.pathReplace,
args.context?.pathReplaceWith,
),
) || []
); );
}, },
getSongDetail: async (args) => { getSongDetail: async (args) => {
@@ -746,45 +866,77 @@ export const NavidromeController: InternalControllerEndpoint = {
getSongList: async (args) => { getSongList: async (args) => {
const { apiClientProps, query } = args; const { apiClientProps, query } = args;
const res = await ndApiClient(apiClientProps).getSongList({ const ALBUM_IDS_BATCH_SIZE = 500;
query: { const albumIds = query.albumIds;
_end: query.startIndex + (query.limit || -1), const shouldBatch = albumIds && albumIds.length > ALBUM_IDS_BATCH_SIZE;
_order: sortOrderMap.navidrome[query.sortOrder],
_sort: songListSortMap.navidrome[query.sortBy],
_start: query.startIndex,
album_id: query.albumIds,
genre_id: query.genreIds,
[getArtistSongKey(apiClientProps.server)]: query.artistIds ?? query.albumArtistIds,
...(hasFeature(apiClientProps.server, ServerFeature.TRACK_YES_NO_RATING_FILTER) &&
query.hasRating !== undefined
? { has_rating: query.hasRating }
: {}),
library_id: getLibraryId(query.musicFolderId),
starred: query.favorite,
title: query.searchTerm,
year: query.maxYear || query.minYear,
...query._custom,
...excludeMissing(apiClientProps.server),
},
});
if (res.status !== 200) { const fetchAlbums = async (albumIdBatch: string[] | undefined) => {
throw new Error('Failed to get song list'); const res = await ndApiClient(apiClientProps).getSongList({
query: {
_end: query.startIndex + (query.limit || -1),
_order: sortOrderMap.navidrome[query.sortOrder],
_sort: songListSortMap.navidrome[query.sortBy],
_start: query.startIndex,
album_id: albumIdBatch ?? query.albumIds,
genre_id: query.genreIds,
[getArtistSongKey(apiClientProps.server)]:
query.artistIds ?? query.albumArtistIds,
...(hasFeature(
apiClientProps.server,
ServerFeature.TRACK_YES_NO_RATING_FILTER,
) && query.hasRating !== undefined
? { has_rating: query.hasRating }
: {}),
library_id: getLibraryId(query.musicFolderId),
starred: query.favorite,
title: query.searchTerm,
year: query.maxYear || query.minYear,
...query._custom,
...excludeMissing(apiClientProps.server),
},
});
if (res.status !== 200) {
throw new Error('Failed to get song list');
}
return {
items: res.body.data.map((song) =>
ndNormalize.song(
song,
apiClientProps.server,
args.context?.pathReplace,
args.context?.pathReplaceWith,
),
),
totalRecordCount: Number(res.body.headers.get('x-total-count') || 0),
};
};
if (shouldBatch && albumIds) {
const batches: string[][] = [];
for (let i = 0; i < albumIds.length; i += ALBUM_IDS_BATCH_SIZE) {
batches.push(albumIds.slice(i, i + ALBUM_IDS_BATCH_SIZE));
}
const results = await Promise.all(batches.map((batch) => fetchAlbums(batch)));
return {
items: results.flatMap((r) => r.items),
startIndex: query?.startIndex ?? 0,
totalRecordCount: results.reduce((sum, r) => sum + r.totalRecordCount, 0),
};
} }
const albums = await fetchAlbums(undefined);
return { return {
items: res.body.data.map((song) => items: albums.items,
ndNormalize.song( startIndex: query?.startIndex ?? 0,
song, totalRecordCount: albums.totalRecordCount,
apiClientProps.server,
args.context?.pathReplace,
args.context?.pathReplaceWith,
),
),
startIndex: query?.startIndex || 0,
totalRecordCount: Number(res.body.headers.get('x-total-count') || 0),
}; };
}, },
getSongListCount: async ({ apiClientProps, query }) => getSongListCount: async ({ apiClientProps, query }) =>
NavidromeController.getSongList({ NavidromeController.getSongList({
apiClientProps, apiClientProps,
@@ -887,6 +1039,7 @@ export const NavidromeController: InternalControllerEndpoint = {
const res = await NavidromeController.getSongList({ const res = await NavidromeController.getSongList({
apiClientProps, apiClientProps,
context: args.context,
query: { query: {
artistIds: [query.artistId], artistIds: [query.artistId],
sortBy: SongListSort.PLAY_COUNT, sortBy: SongListSort.PLAY_COUNT,
@@ -977,6 +1130,7 @@ export const NavidromeController: InternalControllerEndpoint = {
query: { query: {
_end: -1, _end: -1,
_order: 'ASC', _order: 'ASC',
_sort: NDSongListSort.ID,
_start: 0, _start: 0,
...excludeMissing(apiClientProps.server), ...excludeMissing(apiClientProps.server),
}, },
@@ -1087,6 +1241,7 @@ export const NavidromeController: InternalControllerEndpoint = {
}, },
scrobble: SubsonicController.scrobble, scrobble: SubsonicController.scrobble,
search: SubsonicController.search, search: SubsonicController.search,
setPlaylistSongs: SubsonicController.setPlaylistSongs,
setRating: SubsonicController.setRating, setRating: SubsonicController.setRating,
shareItem: async (args) => { shareItem: async (args) => {
const { apiClientProps, body } = args; const { apiClientProps, body } = args;
@@ -1109,7 +1264,26 @@ export const NavidromeController: InternalControllerEndpoint = {
id: res.body.data.id, id: res.body.data.id,
}; };
}, },
updateInternetRadioStation: SubsonicController.updateInternetRadioStation, updateInternetRadioStation: async (args) => {
const { apiClientProps, body, query } = args;
const res = await ndApiClient(apiClientProps).updateInternetRadioStation({
body: {
homePageUrl: body.homepageUrl ?? '',
name: body.name,
streamUrl: body.streamUrl,
},
params: {
id: query.id,
},
});
if (res.status !== 200) {
throw new Error('Failed to update internet radio station');
}
return null;
},
updatePlaylist: async (args) => { updatePlaylist: async (args) => {
const { apiClientProps, body, query } = args; const { apiClientProps, body, query } = args;
@@ -1134,4 +1308,110 @@ export const NavidromeController: InternalControllerEndpoint = {
return null; return null;
}, },
uploadArtistImage: async (args: UploadArtistImageArgs): Promise<UploadArtistImageResponse> => {
const { apiClientProps, body, query } = args;
const server = apiClientProps.server;
const serverUrl = server?.url?.replace(/\/$/, '');
if (!serverUrl) {
throw new Error('Server is required');
}
const form = new FormData();
const bytes = body.image as Uint8Array<ArrayBuffer>;
const fileLike =
typeof File !== 'undefined'
? new File([bytes], 'image', { type: 'application/octet-stream' })
: new Blob([bytes], { type: 'application/octet-stream' });
form.append('image', fileLike as any);
const res = await axios.post(`${serverUrl}/api/artist/${query.id}/image`, form, {
headers: {
'Content-Type': 'multipart/form-data',
...(server?.ndCredential && {
'x-nd-authorization': `Bearer ${server.ndCredential}`,
}),
},
signal: apiClientProps.signal,
});
if (res.status !== 200) {
throw new Error('Failed to upload artist image');
}
return res.data?.status === 'ok';
},
uploadInternetRadioStationImage: async (
args: UploadInternetRadioStationImageArgs,
): Promise<UploadInternetRadioStationImageResponse> => {
const { apiClientProps, body, query } = args;
const server = apiClientProps.server;
const serverUrl = server?.url?.replace(/\/$/, '');
if (!serverUrl) {
throw new Error('Server is required');
}
const form = new FormData();
const bytes = body.image as Uint8Array<ArrayBuffer>;
const fileLike =
typeof File !== 'undefined'
? new File([bytes], 'image', { type: 'application/octet-stream' })
: new Blob([bytes], { type: 'application/octet-stream' });
form.append('image', fileLike as any);
const res = await axios.post(`${serverUrl}/api/radio/${query.id}/image`, form, {
headers: {
'Content-Type': 'multipart/form-data',
...(server?.ndCredential && {
'x-nd-authorization': `Bearer ${server.ndCredential}`,
}),
},
signal: apiClientProps.signal,
});
if (res.status !== 200) {
throw new Error('Failed to upload internet radio station image');
}
return res.data?.status === 'ok';
},
uploadPlaylistImage: async (
args: UploadPlaylistImageArgs,
): Promise<UploadPlaylistImageResponse> => {
const { apiClientProps, body, query } = args;
const server = apiClientProps.server;
const serverUrl = server?.url?.replace(/\/$/, '');
if (!serverUrl) {
throw new Error('Server is required');
}
const form = new FormData();
const bytes = body.image as Uint8Array<ArrayBuffer>;
const fileLike =
typeof File !== 'undefined'
? new File([bytes], 'image', { type: 'application/octet-stream' })
: new Blob([bytes], { type: 'application/octet-stream' });
form.append('image', fileLike as any);
const res = await axios.post(`${serverUrl}/api/playlist/${query.id}/image`, form, {
headers: {
'Content-Type': 'multipart/form-data',
...(server?.ndCredential && {
'x-nd-authorization': `Bearer ${server.ndCredential}`,
}),
},
signal: apiClientProps.signal,
});
if (res.status !== 200) {
throw new Error('Failed to upload playlist image');
}
return res.data?.status === 'ok';
},
}; };
+5
View File
@@ -347,6 +347,11 @@ export const queryKeys: Record<
list: (serverId: string) => [serverId, 'roles'] as const, list: (serverId: string) => [serverId, 'roles'] as const,
}, },
search: { search: {
infiniteList: (
serverId: string,
type: 'albumArtists' | 'albums' | 'songs',
searchTerm: string,
) => [serverId, 'search', 'infiniteList', type, searchTerm] as const,
list: (serverId: string, query?: SearchQuery) => { list: (serverId: string, query?: SearchQuery) => {
if (query) return [serverId, 'search', 'list', query] as const; if (query) return [serverId, 'search', 'list', query] as const;
return [serverId, 'search', 'list'] as const; return [serverId, 'search', 'list'] as const;
+83 -18
View File
@@ -1,6 +1,5 @@
import { initClient, initContract } from '@ts-rest/core'; import { initClient, initContract } from '@ts-rest/core';
import axios, { AxiosError, AxiosRequestConfig, AxiosResponse, isAxiosError } from 'axios'; import axios, { AxiosError, AxiosRequestConfig, AxiosResponse, isAxiosError } from 'axios';
import omitBy from 'lodash/omitBy';
import qs from 'qs'; import qs from 'qs';
import { z } from 'zod'; import { z } from 'zod';
@@ -250,6 +249,23 @@ export const contract = c.router({
200: ssType._response.topSongsList, 200: ssType._response.topSongsList,
}, },
}, },
getTranscodeDecision: {
body: ssType._body.getTranscodeDecision,
method: 'POST',
path: 'getTranscodeDecision.view',
query: ssType._parameters.getTranscodeDecision,
responses: {
200: ssType._response.getTranscodeDecision,
},
},
getTranscodeStream: {
method: 'GET',
path: 'getTranscodeStream.view',
query: ssType._parameters.getTranscodeStream,
responses: {
200: z.string(),
},
},
getUser: { getUser: {
method: 'GET', method: 'GET',
path: 'getUser.view', path: 'getUser.view',
@@ -345,7 +361,7 @@ axiosClient.interceptors.response.use(
if (data['subsonic-response'].error.code !== 0) { if (data['subsonic-response'].error.code !== 0) {
toast.error({ toast.error({
message: data['subsonic-response'].error.message, message: data['subsonic-response'].error.message,
title: i18n.t('error.genericError', { postProcess: 'sentenceCase' }) as string, title: i18n.t('error.genericError') as string,
}); });
// Since we do status === 200, override this value with the error code // Since we do status === 200, override this value with the error code
@@ -360,11 +376,39 @@ axiosClient.interceptors.response.use(
}, },
); );
const keysToSkipEmptyCheck = new Set([
'artist',
'comment',
'genre',
'name',
'query',
'u',
'username',
]);
const parsePath = (fullPath: string) => { const parsePath = (fullPath: string) => {
const [path, params] = fullPath.split('?'); const [path, params] = fullPath.split('?');
const parsedParams = qs.parse(params, { arrayLimit: 99999, parameterLimit: 99999 }); const url = new URLSearchParams(params);
const notNilParams = omitBy(parsedParams, (value) => value === 'undefined' || value === 'null'); const notNilParams: Record<string, string[]> = {};
for (const [key, value] of url) {
if (!keysToSkipEmptyCheck.has(key) && (value === 'undefined' || value === 'null')) {
continue;
}
let realKey = key;
if (key.includes('[') && key.includes(']')) {
realKey = key.split('[')[0];
}
if (realKey in notNilParams) {
notNilParams[realKey].push(value);
} else {
notNilParams[realKey] = [value];
}
}
return { return {
params: notNilParams, params: notNilParams,
@@ -392,7 +436,7 @@ export const ssApiClient = (args: {
const { server, signal, silent, url } = args; const { server, signal, silent, url } = args;
return initClient(contract, { return initClient(contract, {
api: async ({ headers, method, path }) => { api: async ({ body, headers, method, path, rawQuery }) => {
let baseUrl: string | undefined; let baseUrl: string | undefined;
const authParams: Record<string, any> = {}; const authParams: Record<string, any> = {};
@@ -423,19 +467,44 @@ export const ssApiClient = (args: {
url: `${baseUrl}/${api}`, url: `${baseUrl}/${api}`,
}; };
const data = { const isGetTranscodeDecisionPost =
c: 'Feishin', method === 'POST' && api === 'getTranscodeDecision.view';
f: 'json',
v: '1.13.0',
...authParams,
...params,
};
if (hasFeature(server, ServerFeature.OS_FORM_POST)) { if (isGetTranscodeDecisionPost && body != null) {
request.method = 'POST';
request.headers = {
...headers,
'Content-Type': 'application/json',
};
request.data = body;
request.params = {
c: 'Feishin',
f: 'json',
v: '1.13.0',
...authParams,
...(typeof rawQuery === 'object' && rawQuery !== null
? (rawQuery as Record<string, unknown>)
: {}),
};
} else if (hasFeature(server, ServerFeature.OS_FORM_POST)) {
headers['Content-Type'] = 'application/x-www-form-urlencoded'; headers['Content-Type'] = 'application/x-www-form-urlencoded';
request.method = 'POST'; request.method = 'POST';
const data = {
c: 'Feishin',
f: 'json',
v: '1.13.0',
...authParams,
...params,
};
request.data = qs.stringify(data, { arrayFormat: 'repeat' }); request.data = qs.stringify(data, { arrayFormat: 'repeat' });
} else { } else {
const data = {
c: 'Feishin',
f: 'json',
v: '1.13.0',
...authParams,
...params,
};
request.method = method; request.method = method;
request.params = data; request.params = data;
} }
@@ -454,11 +523,7 @@ export const ssApiClient = (args: {
} catch (e: any | AxiosError | Error) { } catch (e: any | AxiosError | Error) {
if (isAxiosError(e)) { if (isAxiosError(e)) {
if (e.code === 'ERR_NETWORK') { if (e.code === 'ERR_NETWORK') {
throw new Error( throw new Error(i18n.t('error.networkError') as string);
i18n.t('error.networkError', {
postProcess: 'sentenceCase',
}) as string,
);
} }
const error = e as AxiosError; const error = e as AxiosError;
+304 -41
View File
@@ -8,7 +8,12 @@ import md5 from 'md5';
import { z } from 'zod'; import { z } from 'zod';
import { contract, ssApiClient } from '/@/renderer/api/subsonic/subsonic-api'; import { contract, ssApiClient } from '/@/renderer/api/subsonic/subsonic-api';
import {
getDefaultTranscodingProfiles,
getDirectPlayProfiles,
} from '/@/renderer/features/player/components/audio-players';
import { randomString } from '/@/renderer/utils'; import { randomString } from '/@/renderer/utils';
import { logFn } from '/@/renderer/utils/logger';
import { getServerUrl } from '/@/renderer/utils/normalize-server-url'; import { getServerUrl } from '/@/renderer/utils/normalize-server-url';
import { ssNormalize } from '/@/shared/api/subsonic/subsonic-normalize'; import { ssNormalize } from '/@/shared/api/subsonic/subsonic-normalize';
import { import {
@@ -20,9 +25,12 @@ import { hasFeature, sortAlbumArtistList, sortAlbumList, sortSongList } from '/@
import { import {
AlbumListSort, AlbumListSort,
GenreListSort, GenreListSort,
ImageArgs,
ImageRequest,
InternalControllerEndpoint, InternalControllerEndpoint,
LibraryItem, LibraryItem,
PlaylistListSort, PlaylistListSort,
ReplaceApiClientProps,
ServerType, ServerType,
Song, Song,
SongListSort, SongListSort,
@@ -30,6 +38,36 @@ import {
} from '/@/shared/types/domain-types'; } from '/@/shared/types/domain-types';
import { ServerFeature, ServerFeatures } from '/@/shared/types/features-types'; import { ServerFeature, ServerFeatures } from '/@/shared/types/features-types';
const getSubsonicImageRequest = ({
apiClientProps: { server },
baseUrl,
query,
}: ReplaceApiClientProps<ImageArgs>): ImageRequest | null => {
const { id, size } = query;
const imageSize = size;
const url = baseUrl || getServerUrl(server);
if (!url || !server?.credential) {
return null;
}
// Check for default placeholder image ID
if (id.match('2a96cbd8b46e442fc41c2b86b821562f')) {
return null;
}
return {
cacheKey: ['subsonic', server.id, baseUrl || '', id, imageSize || ''].join(':'),
url:
`${url}/rest/getCoverArt.view` +
`?id=${id}` +
`&${server.credential}` +
'&v=1.13.0' +
'&c=Feishin' +
(imageSize ? `&size=${imageSize}` : ''),
};
};
const ALBUM_LIST_SORT_MAPPING: Record<AlbumListSort, AlbumListSortType | undefined> = { const ALBUM_LIST_SORT_MAPPING: Record<AlbumListSort, AlbumListSortType | undefined> = {
[AlbumListSort.ALBUM_ARTIST]: AlbumListSortType.ALPHABETICAL_BY_ARTIST, [AlbumListSort.ALBUM_ARTIST]: AlbumListSortType.ALPHABETICAL_BY_ARTIST,
[AlbumListSort.ARTIST]: undefined, [AlbumListSort.ARTIST]: undefined,
@@ -54,6 +92,172 @@ const ALBUM_LIST_SORT_MAPPING: Record<AlbumListSort, AlbumListSortType | undefin
const MAX_SUBSONIC_ITEMS = 500; const MAX_SUBSONIC_ITEMS = 500;
const SUBSONIC_FAST_BATCH_SIZE = MAX_SUBSONIC_ITEMS * 10; const SUBSONIC_FAST_BATCH_SIZE = MAX_SUBSONIC_ITEMS * 10;
// const TRANSCODE_DIRECT_PLAY_PROFILES = [
// {
// audioCodecs: ['mp3'],
// containers: ['mp3'],
// maxAudioChannels: 2,
// protocols: ['http'],
// },
// {
// audioCodecs: ['aac'],
// containers: ['m4a', 'mp4'],
// maxAudioChannels: 2,
// protocols: ['http'],
// },
// {
// audioCodecs: ['vorbis'],
// containers: ['ogg'],
// maxAudioChannels: 2,
// protocols: ['http'],
// },
// {
// audioCodecs: ['opus'],
// containers: ['ogg', 'webm'],
// maxAudioChannels: 2,
// protocols: ['http'],
// },
// {
// audioCodecs: ['pcm'],
// containers: ['wav'],
// maxAudioChannels: 2,
// protocols: ['http'],
// },
// {
// audioCodecs: ['flac'],
// containers: ['flac'],
// maxAudioChannels: 2,
// protocols: ['http'],
// },
// ];
// const TRANSCODE_UNSUPPORTED_DIRECT_PLAY_PROFILES = [
// {
// containers: ["m4a", "mp4"],
// audioCodecs: ["alac"],
// protocols: ["http"],
// maxAudioChannels: 2
// },
// {
// containers: ["m4a", "mp4"],
// audioCodecs: ["ac3", "eac3"],
// protocols: ["http"],
// maxAudioChannels: 6
// },
// {
// containers: ["ogg"],
// audioCodecs: ["flac", "speex"],
// protocols: ["http"],
// maxAudioChannels: 2
// },
// {
// containers: ["wav"],
// audioCodecs: ["adpcm", "gsm", "aac", "mp3"],
// protocols: ["http"],
// maxAudioChannels: 2
// },
// {
// containers: ["mkv"],
// audioCodecs: ["aac", "mp3", "flac", "opus", "vorbis", "ac3", "eac3", "dts"],
// protocols: ["http"],
// maxAudioChannels: 8
// },
// {
// containers: ["avi"],
// audioCodecs: ["mp3", "ac3", "pcm", "aac"],
// protocols: ["http"],
// maxAudioChannels: 6
// },
// {
// containers: ["asf", "wma"],
// audioCodecs: ["wma", "pcm", "mp3"],
// protocols: ["http"],
// maxAudioChannels: 2
// },
// {
// containers: ["caf"],
// audioCodecs: ["pcm", "aac", "alac", "mp3"],
// protocols: ["http"],
// maxAudioChannels: 8
// },
// {
// containers: ["3gp"],
// audioCodecs: ["aac", "amr"],
// protocols: ["http"],
// maxAudioChannels: 2
// },
// {
// containers: ["amr"],
// audioCodecs: ["amr"],
// protocols: ["http"],
// maxAudioChannels: 1
// },
// {
// containers: ["ape"],
// audioCodecs: ["ape"],
// protocols: ["http"],
// maxAudioChannels: 2
// },
// {
// containers: ["wv"],
// audioCodecs: ["wavpack"],
// protocols: ["http"],
// maxAudioChannels: 2
// },
// {
// containers: ["ac3"],
// audioCodecs: ["ac3"],
// protocols: ["http"],
// maxAudioChannels: 6
// },
// {
// containers: ["eac3"],
// audioCodecs: ["eac3"],
// protocols: ["http"],
// maxAudioChannels: 8
// },
// {
// containers: ["dts"],
// audioCodecs: ["dts"],
// protocols: ["http"],
// maxAudioChannels: 8
// }
// ];
function appendTranscodeParams(url: string, format?: string, bitrate?: number) {
let streamUrl = url;
if (format) {
streamUrl += `&format=${format}`;
}
if (bitrate !== undefined) {
streamUrl += `&maxBitRate=${bitrate}`;
}
return streamUrl;
}
function buildGetTranscodeStreamUrl(
server: null | undefined | { credential?: string; url?: string },
args: {
mediaId: string;
mediaType: 'podcast' | 'song';
offset: number;
transcodeParams: string;
},
): string {
const params = new URLSearchParams({
c: 'Feishin',
mediaId: args.mediaId,
mediaType: args.mediaType,
offset: String(args.offset),
transcodeParams: args.transcodeParams,
v: '1.13.0',
});
return `${server?.url}/rest/getTranscodeStream.view?${params.toString()}&${server?.credential}`;
}
function sortAndPaginate<T>( function sortAndPaginate<T>(
items: T[], items: T[],
options: { options: {
@@ -304,7 +508,7 @@ export const SubsonicController: InternalControllerEndpoint = {
similarArtists: similarArtists:
artistInfo?.similarArtist?.map((artist) => ({ artistInfo?.similarArtist?.map((artist) => ({
id: artist.id, id: artist.id,
imageId: null, imageId: artist.coverArt ?? artist.id,
imageUrl: null, imageUrl: null,
name: artist.name, name: artist.name,
userFavorite: Boolean(artist.starred) || false, userFavorite: Boolean(artist.starred) || false,
@@ -952,29 +1156,8 @@ export const SubsonicController: InternalControllerEndpoint = {
startIndex: query.startIndex, startIndex: query.startIndex,
}); });
}, },
getImageUrl: ({ apiClientProps: { server }, baseUrl, query }) => { getImageRequest: getSubsonicImageRequest,
const { id, size } = query; getImageUrl: (args) => getSubsonicImageRequest(args)?.url || null,
const imageSize = size;
const url = baseUrl || getServerUrl(server);
if (!url || !server?.credential) {
return null;
}
// Check for default placeholder image ID
if (id.match('2a96cbd8b46e442fc41c2b86b821562f')) {
return null;
}
return (
`${url}/rest/getCoverArt.view` +
`?id=${id}` +
`&${server.credential}` +
'&v=1.13.0' +
'&c=Feishin' +
(imageSize ? `&size=${imageSize}` : '')
);
},
getInternetRadioStations: async (args) => { getInternetRadioStations: async (args) => {
const { apiClientProps } = args; const { apiClientProps } = args;
@@ -1023,7 +1206,7 @@ export const SubsonicController: InternalControllerEndpoint = {
return ssNormalize.playlist(res.body.playlist, apiClientProps.server); return ssNormalize.playlist(res.body.playlist, apiClientProps.server);
}, },
getPlaylistList: async ({ apiClientProps, query }) => { getPlaylistList: async ({ apiClientProps, query }) => {
const sortOrder = query.sortOrder.toLowerCase() as 'asc' | 'desc'; const sortOrder = (query.sortOrder || SortOrder.ASC).toLowerCase() as 'asc' | 'desc';
const res = await ssApiClient(apiClientProps).getPlaylists({}); const res = await ssApiClient(apiClientProps).getPlaylists({});
@@ -1125,15 +1308,15 @@ export const SubsonicController: InternalControllerEndpoint = {
const res = await ssApiClient(apiClientProps).getPlayQueueByIndex(); const res = await ssApiClient(apiClientProps).getPlayQueueByIndex();
if (res.status !== 200) { if (res.status !== 200) {
throw new Error('Failed to get random songs'); throw new Error('Failed to get play queue');
} }
const { changed, changedBy, currentIndex, entry, position, username } = const { changed, changedBy, currentIndex, entry, position, username } =
res.body.playQueueByIndex; res.body.playQueueByIndex || {}; // if there is no queue saved, playQueueByIndex may be undefined from a bug in Navidrome
return { return {
changed, changed: changed ?? '',
changedBy, changedBy: changedBy ?? '',
currentIndex: currentIndex ?? 0, currentIndex: currentIndex ?? 0,
entry: entry:
entry?.map((song) => entry?.map((song) =>
@@ -1145,13 +1328,13 @@ export const SubsonicController: InternalControllerEndpoint = {
), ),
) || [], ) || [],
positionMs: position ?? 0, positionMs: position ?? 0,
username, username: username ?? '',
}; };
} else { } else {
const res = await ssApiClient(apiClientProps).getPlayQueue(); const res = await ssApiClient(apiClientProps).getPlayQueue();
if (res.status !== 200) { if (res.status !== 200) {
throw new Error('Failed to get random songs'); throw new Error('Failed to get play queue');
} }
const { changed, changedBy, current, entry, position, username } = res.body.playQueue; const { changed, changedBy, current, entry, position, username } = res.body.playQueue;
@@ -1261,6 +1444,10 @@ export const SubsonicController: InternalControllerEndpoint = {
} }
} }
if (subsonicFeatures[SubsonicExtensions.TRANSCODING]) {
features.osTranscodeDecision = [1];
}
if (subsonicFeatures[SubsonicExtensions.SONG_LYRICS]) { if (subsonicFeatures[SubsonicExtensions.SONG_LYRICS]) {
features.lyricsMultipleStructured = [1]; features.lyricsMultipleStructured = [1];
} }
@@ -1789,20 +1976,79 @@ export const SubsonicController: InternalControllerEndpoint = {
return totalRecordCount; return totalRecordCount;
}, },
getStreamUrl: ({ apiClientProps: { server }, query }) => { getStreamUrl: async ({ apiClientProps, query }) => {
const { bitrate, format, id, transcode } = query; const { server } = apiClientProps;
let url = `${server?.url}/rest/stream.view?id=${id}&v=1.13.0&c=Feishin&${server?.credential}`; const { bitrate, format, id, mediaType = 'song', skipAutoTranscode, transcode } = query;
const streamUrl = `${server?.url}/rest/stream.view?id=${id}&v=1.13.0&c=Feishin&${server?.credential}`;
// If transcoding is explicitly enabled, just return the direct transcoded stream URL
if (transcode) { if (transcode) {
if (format) { return appendTranscodeParams(streamUrl, format, bitrate);
url += `&format=${format}`;
}
if (bitrate !== undefined) {
url += `&maxBitRate=${bitrate}`;
}
} }
return url; // Used in cases where MPV is the default player, since mpv handles basically every audio format
if (skipAutoTranscode) {
return streamUrl;
}
// If the server supports transcoding decision, always use it to determine if we need to transcode
if (hasFeature(server, ServerFeature.OS_TRANSCODE_DECISION)) {
const maxTranscodingAudioBitrate = 0;
const directPlayProfiles = getDirectPlayProfiles();
const transcodingProfiles = getDefaultTranscodingProfiles();
const transcodeDecision = await ssApiClient(apiClientProps).getTranscodeDecision({
body: {
codecProfiles: [],
directPlayProfiles,
maxAudioBitrate: 0,
maxTranscodingAudioBitrate,
name: 'Feishin',
platform: navigator.userAgent,
transcodingProfiles,
},
query: {
mediaId: id,
mediaType,
},
});
// If the server returns an error for transcodeDecision, fall back to direct stream so that we don't break the player
if (transcodeDecision.status !== 200) {
logFn.error(
`Failed to get transcode decision for song ${id}, falling back to direct stream`,
);
return streamUrl;
}
const td = transcodeDecision.body.transcodeDecision;
const requiresTranscoding = !td?.canDirectPlay;
// If the server does not require transcoding, just return the direct stream URL
if (!requiresTranscoding) {
return streamUrl;
}
logFn.info(`Song ${id} requires transcoding: ${[td.transcodeReason].join(', ')}`);
// If the server does not return transcode params, manually create the transcode params
if (!td.transcodeParams) {
return appendTranscodeParams(streamUrl, format, bitrate);
}
const transcodeStreamUrl = buildGetTranscodeStreamUrl(server, {
mediaId: String(id),
mediaType: (mediaType ?? 'song') as 'podcast' | 'song',
offset: 0,
transcodeParams: td.transcodeParams,
});
return transcodeStreamUrl;
}
return streamUrl;
}, },
getStructuredLyrics: async (args) => { getStructuredLyrics: async (args) => {
const { apiClientProps, query } = args; const { apiClientProps, query } = args;
@@ -1879,6 +2125,7 @@ export const SubsonicController: InternalControllerEndpoint = {
const res = await SubsonicController.getSongList({ const res = await SubsonicController.getSongList({
apiClientProps, apiClientProps,
context,
query: { query: {
artistIds: [query.artistId], artistIds: [query.artistId],
sortBy: SongListSort.PLAY_COUNT, sortBy: SongListSort.PLAY_COUNT,
@@ -2106,6 +2353,22 @@ export const SubsonicController: InternalControllerEndpoint = {
), ),
}; };
}, },
setPlaylistSongs: async (args) => {
const { apiClientProps, body } = args;
const res = await ssApiClient(apiClientProps).createPlaylist({
query: {
playlistId: body.id,
songId: body.songIds,
},
});
if (res.status !== 200) {
throw new Error('Failed to update playlist songs');
}
return null;
},
setRating: async (args) => { setRating: async (args) => {
const { apiClientProps, query } = args; const { apiClientProps, query } = args;
+104 -63
View File
@@ -7,12 +7,12 @@ import '@mantine/core/styles.css';
import '@mantine/dates/styles.css'; import '@mantine/dates/styles.css';
import '@mantine/notifications/styles.css'; import '@mantine/notifications/styles.css';
import isElectron from 'is-electron'; import isElectron from 'is-electron';
import { lazy, Suspense, useEffect, useMemo, useRef, useState } from 'react'; import { lazy, memo, Suspense, useEffect, useMemo, useRef, useState } from 'react';
import i18n from '/@/i18n/i18n'; import i18n from '/@/i18n/i18n';
import { openSettingsModal } from '/@/renderer/features/settings/utils/open-settings-modal';
import { WebAudioContext } from '/@/renderer/features/player/context/webaudio-context'; import { WebAudioContext } from '/@/renderer/features/player/context/webaudio-context';
import { useCheckForUpdates } from '/@/renderer/hooks/use-check-for-updates'; import { useCheckForUpdates } from '/@/renderer/hooks/use-check-for-updates';
import { useNativeMenuSync } from '/@/renderer/hooks/use-native-menu-sync';
import { useSyncSettingsToMain } from '/@/renderer/hooks/use-sync-settings-to-main'; import { useSyncSettingsToMain } from '/@/renderer/hooks/use-sync-settings-to-main';
import { AppRouter } from '/@/renderer/router/app-router'; import { AppRouter } from '/@/renderer/router/app-router';
import { useCssSettings, useHotkeySettings, useLanguage } from '/@/renderer/store'; import { useCssSettings, useHotkeySettings, useLanguage } from '/@/renderer/store';
@@ -22,12 +22,7 @@ import { WebAudio } from '/@/shared/types/types';
import '/@/shared/styles/global.css'; import '/@/shared/styles/global.css';
import { PlayerProvider } from '/@/renderer/features/player/context/player-context'; import { PlayerProvider } from '/@/renderer/features/player/context/player-context';
import { AudioPlayers } from '/@/renderer/features/player/components/audio-players'; import { AudioPlayers } from '/@/renderer/features/player/components/audio-players';
import { ReleaseNotesModal } from '/@/renderer/release-notes-modal';
const ReleaseNotesModal = lazy(() =>
import('./release-notes-modal').then((module) => ({
default: module.ReleaseNotesModal,
})),
);
const UpdateAvailableDialog = lazy(() => const UpdateAvailableDialog = lazy(() =>
import('./update-available-dialog').then((module) => ({ import('./update-available-dialog').then((module) => ({
@@ -38,67 +33,26 @@ const UpdateAvailableDialog = lazy(() =>
const ipc = isElectron() ? window.api.ipc : null; const ipc = isElectron() ? window.api.ipc : null;
export const App = () => { export const App = () => {
return <ThemedApp />;
};
const ThemedApp = () => {
const { mode, theme } = useAppTheme(); const { mode, theme } = useAppTheme();
const language = useLanguage();
const { content, enabled } = useCssSettings(); return (
const { bindings } = useHotkeySettings(); <MantineProvider forceColorScheme={mode} theme={theme}>
const cssRef = useRef<HTMLStyleElement | null>(null); <AppShell />
</MantineProvider>
useSyncSettingsToMain(); );
useCheckForUpdates(); };
const AppShell = memo(function AppShell() {
const [webAudio, setWebAudio] = useState<WebAudio>(); const [webAudio, setWebAudio] = useState<WebAudio>();
useEffect(() => {
if (enabled && content) {
// Yes, CSS is sanitized here as well. Prevent a suer from changing the
// localStorage to bypass sanitizing.
const sanitized = sanitizeCss(content);
if (!cssRef.current) {
cssRef.current = document.createElement('style');
document.body.appendChild(cssRef.current);
}
cssRef.current.textContent = sanitized;
return () => {
cssRef.current!.textContent = '';
};
}
return () => {};
}, [content, enabled]);
const webAudioProvider = useMemo(() => { const webAudioProvider = useMemo(() => {
return { setWebAudio, webAudio }; return { setWebAudio, webAudio };
}, [webAudio]); }, [webAudio]);
useEffect(() => {
if (isElectron()) {
ipc?.send('set-global-shortcuts', bindings);
}
}, [bindings]);
useEffect(() => {
if (language) {
i18n.changeLanguage(language);
}
}, [language]);
useEffect(() => {
if (isElectron()) {
window.api.utils.rendererOpenSettings(() => {
openSettingsModal();
});
return () => {
ipc?.removeAllListeners('renderer-open-settings');
};
}
return undefined;
}, []);
const notificationStyles = useMemo( const notificationStyles = useMemo(
() => ({ () => ({
root: { root: {
@@ -109,7 +63,8 @@ export const App = () => {
); );
return ( return (
<MantineProvider forceColorScheme={mode} theme={theme}> <>
<AppEffects />
<Notifications <Notifications
containerWidth="300px" containerWidth="300px"
position="bottom-center" position="bottom-center"
@@ -122,10 +77,96 @@ export const App = () => {
<AppRouter /> <AppRouter />
</PlayerProvider> </PlayerProvider>
</WebAudioContext.Provider> </WebAudioContext.Provider>
<ReleaseNotesModal />
<Suspense fallback={null}> <Suspense fallback={null}>
<ReleaseNotesModal />
<UpdateAvailableDialog /> <UpdateAvailableDialog />
</Suspense> </Suspense>
</MantineProvider> </>
); );
});
const AppEffects = () => (
<>
<SyncSettingsEffect />
<UpdateCheckEffect />
<CssSettingsEffect />
<GlobalShortcutsEffect />
<LanguageEffect />
<NativeMenuSyncEffect />
</>
);
const SyncSettingsEffect = () => {
useSyncSettingsToMain();
return null;
};
const UpdateCheckEffect = () => {
useCheckForUpdates();
return null;
};
const CssSettingsEffect = () => {
const { content, enabled } = useCssSettings();
const cssRef = useRef<HTMLStyleElement | null>(null);
useEffect(() => {
if (!enabled || !content) {
if (cssRef.current) {
cssRef.current.textContent = '';
}
return;
}
// Yes, CSS is sanitized here as well. Prevent a user from changing the
// localStorage to bypass sanitizing.
const sanitized = sanitizeCss(content);
if (!cssRef.current) {
cssRef.current = document.createElement('style');
document.body.appendChild(cssRef.current);
}
cssRef.current.textContent = sanitized;
return () => {
if (cssRef.current) {
cssRef.current.textContent = '';
}
};
}, [content, enabled]);
return null;
};
const GlobalShortcutsEffect = () => {
const { bindings } = useHotkeySettings();
useEffect(() => {
if (isElectron()) {
ipc?.send('set-global-shortcuts', bindings);
}
}, [bindings]);
return null;
};
const LanguageEffect = () => {
const language = useLanguage();
useEffect(() => {
if (language) {
i18n.changeLanguage(language);
}
}, [language]);
return null;
};
const NativeMenuSyncEffect = () => {
useNativeMenuSync();
return null;
}; };
@@ -67,10 +67,19 @@
padding: var(--theme-spacing-md); padding: var(--theme-spacing-md);
} }
.single-carousel-container .carousel {
min-height: 240px;
}
.single-carousel-container .carousel-item {
min-height: 240px;
}
.single-carousel-container .carousel-item .content { .single-carousel-container .carousel-item .content {
flex-direction: row; flex-direction: row;
gap: var(--theme-spacing-lg); gap: var(--theme-spacing-md);
align-items: flex-end; align-items: flex-end;
min-height: 240px;
padding: var(--theme-spacing-xl); padding: var(--theme-spacing-xl);
} }
@@ -36,11 +36,22 @@
min-width: 0; min-width: 0;
} }
.grid-carousel-viewport {
width: 100%;
min-height: 0;
}
.grid { .grid {
display: grid; display: grid;
grid-template-columns: repeat(var(--cards-to-show, 2), minmax(0, 1fr)); grid-template-columns: repeat(var(--cards-to-show, 2), minmax(0, 1fr));
gap: var(--theme-spacing-md); gap: var(--theme-spacing-md);
contain: layout paint;
overflow: hidden; overflow: hidden;
will-change: transform;
}
.card {
min-height: 0;
} }
.page-indicator { .page-indicator {
+354 -306
View File
@@ -22,9 +22,9 @@ import { AppRoute } from '/@/renderer/router/routes';
import { useShowRatings } from '/@/renderer/store'; import { useShowRatings } from '/@/renderer/store';
import { import {
formatDateAbsolute, formatDateAbsolute,
formatDateAbsoluteUTC,
formatDateRelative, formatDateRelative,
formatDurationString, formatDurationString,
formatPartialIsoDateUTC,
formatRating, formatRating,
} from '/@/renderer/utils/format'; } from '/@/renderer/utils/format';
import { SEPARATOR_STRING } from '/@/shared/api/utils'; import { SEPARATOR_STRING } from '/@/shared/api/utils';
@@ -64,6 +64,7 @@ export interface ItemCardProps {
enableMultiSelect?: boolean; enableMultiSelect?: boolean;
enableNavigation?: boolean; enableNavigation?: boolean;
imageAsLink?: boolean; imageAsLink?: boolean;
imageFetchPriority?: 'auto' | 'high' | 'low';
internalState?: ItemListStateActions; internalState?: ItemListStateActions;
isRound?: boolean; isRound?: boolean;
itemType: LibraryItem; itemType: LibraryItem;
@@ -80,6 +81,7 @@ export const ItemCard = ({
enableMultiSelect, enableMultiSelect,
enableNavigation = true, enableNavigation = true,
imageAsLink, imageAsLink,
imageFetchPriority,
internalState, internalState,
isRound, isRound,
itemType, itemType,
@@ -102,6 +104,7 @@ export const ItemCard = ({
enableMultiSelect={enableMultiSelect} enableMultiSelect={enableMultiSelect}
enableNavigation={enableNavigation} enableNavigation={enableNavigation}
imageAsLink={imageAsLink} imageAsLink={imageAsLink}
imageFetchPriority={imageFetchPriority}
imageUrl={imageUrl} imageUrl={imageUrl}
internalState={internalState} internalState={internalState}
isRound={isRound} isRound={isRound}
@@ -121,6 +124,7 @@ export const ItemCard = ({
enableMultiSelect={enableMultiSelect} enableMultiSelect={enableMultiSelect}
enableNavigation={enableNavigation} enableNavigation={enableNavigation}
imageAsLink={imageAsLink} imageAsLink={imageAsLink}
imageFetchPriority={imageFetchPriority}
imageUrl={imageUrl} imageUrl={imageUrl}
internalState={internalState} internalState={internalState}
isRound={isRound} isRound={isRound}
@@ -140,6 +144,7 @@ export const ItemCard = ({
enableExpansion={enableExpansion} enableExpansion={enableExpansion}
enableNavigation={enableNavigation} enableNavigation={enableNavigation}
imageAsLink={imageAsLink} imageAsLink={imageAsLink}
imageFetchPriority={imageFetchPriority}
imageUrl={imageUrl} imageUrl={imageUrl}
internalState={internalState} internalState={internalState}
isRound={isRound} isRound={isRound}
@@ -157,12 +162,299 @@ export interface ItemCardDerivativeProps extends Omit<ItemCardProps, 'type'> {
enableExpansion?: boolean; enableExpansion?: boolean;
enableNavigation?: boolean; enableNavigation?: boolean;
imageAsLink?: boolean; imageAsLink?: boolean;
imageFetchPriority?: 'auto' | 'high' | 'low';
imageUrl: string | undefined; imageUrl: string | undefined;
internalState?: ItemListStateActions; internalState?: ItemListStateActions;
rows: DataRow[]; rows: DataRow[];
showRating: boolean; showRating: boolean;
} }
type ItemCardData = NonNullable<ItemCardProps['data']>;
const ItemCardStandardImageArea = memo(function ItemCardStandardImageArea({
controls,
data,
enableExpansion,
enableImageViewport = true,
enableNavigation,
handleContextMenu,
handleImageClick,
handleLinkDragStart,
imageAsLink,
imageFetchPriority,
internalState,
isRound,
itemType,
navigationPath,
showRating,
variant,
withControls,
}: {
controls?: ItemControls;
data: ItemCardData;
enableExpansion?: boolean;
enableImageViewport?: boolean;
enableNavigation?: boolean;
handleContextMenu: (e: React.MouseEvent<HTMLElement>) => void;
handleImageClick: (e: React.MouseEvent<HTMLElement>) => void;
handleLinkDragStart: (e: React.DragEvent<HTMLAnchorElement>) => void;
imageAsLink?: boolean;
imageFetchPriority?: 'auto' | 'high' | 'low';
internalState?: ItemListStateActions;
isRound?: boolean;
itemType: LibraryItem;
navigationPath: null | string;
showRating: boolean;
variant: 'default' | 'poster';
withControls?: boolean;
}) {
const [showControls, setShowControls] = useState(false);
const handleMouseEnter = () => {
if (withControls) {
setShowControls(true);
}
};
const handleMouseLeave = () => {
if (withControls) {
setShowControls(false);
}
};
const imageContainerClassName = clsx(styles.imageContainer, {
[styles.isRound]: isRound,
});
const isFavorite = 'userFavorite' in data && (data as { userFavorite: boolean }).userFavorite;
const userRating =
'userRating' in data &&
typeof (data as { userRating: null | number }).userRating === 'number'
? (data as { userRating: null | number }).userRating
: null;
const hasRating = showRating && userRating !== null && userRating > 0;
const imageContainerContent = (
<>
{itemType === LibraryItem.GENRE &&
data &&
'name' in data &&
typeof (data as Genre).name === 'string' ? (
<GenreImagePlaceholder
className={clsx(styles.image, styles.genrePlaceholder, {
[styles.isRound]: isRound,
})}
name={(data as Genre).name}
/>
) : (
<ItemImage
className={clsx(styles.image, { [styles.isRound]: isRound })}
enableDebounce={false}
{...(variant === 'poster' ? { enableViewport: enableImageViewport } : {})}
explicitStatus={'explicitStatus' in data && data ? data.explicitStatus : null}
fetchPriority={imageFetchPriority}
id={(data as { imageId?: string })?.imageId}
itemType={itemType}
src={(data as { imageUrl?: string })?.imageUrl}
type="itemCard"
/>
)}
{isFavorite && <div className={styles.favoriteBadge} />}
{hasRating && <div className={styles.ratingBadge}>{userRating}</div>}
<AnimatePresence>
{withControls && showControls && (
<ItemCardControls
controls={controls}
enableExpansion={enableExpansion}
{...(variant === 'poster' ? { internalState } : {})}
item={data}
itemType={itemType}
showRating={showRating}
type={variant}
/>
)}
</AnimatePresence>
</>
);
return enableNavigation && navigationPath && (imageAsLink ?? !internalState) ? (
<Link
className={imageContainerClassName}
draggable={false}
onClick={handleImageClick}
onContextMenu={handleContextMenu}
onDragStart={handleLinkDragStart}
onMouseEnter={handleMouseEnter}
onMouseLeave={handleMouseLeave}
state={{ item: data }}
to={navigationPath}
>
{imageContainerContent}
</Link>
) : (
<div
className={imageContainerClassName}
onClick={handleImageClick}
onContextMenu={handleContextMenu}
onMouseEnter={handleMouseEnter}
onMouseLeave={handleMouseLeave}
>
{imageContainerContent}
</div>
);
});
ItemCardStandardImageArea.displayName = 'ItemCardStandardImageArea';
const CompactItemCardImageArea = memo(function CompactItemCardImageArea({
controls,
data,
enableExpansion,
enableNavigation,
handleContextMenu,
handleImageClick,
handleLinkDragStart,
imageAsLink,
imageFetchPriority,
internalState,
isRound,
itemType,
navigationPath,
rows,
showRating,
withControls,
}: {
controls?: ItemControls;
data: ItemCardData;
enableExpansion?: boolean;
enableNavigation?: boolean;
handleContextMenu: (e: React.MouseEvent<HTMLElement>) => void;
handleImageClick: (e: React.MouseEvent<HTMLElement>) => void;
handleLinkDragStart: (e: React.DragEvent<HTMLAnchorElement>) => void;
imageAsLink?: boolean;
imageFetchPriority?: 'auto' | 'high' | 'low';
internalState?: ItemListStateActions;
isRound?: boolean;
itemType: LibraryItem;
navigationPath: null | string;
rows: DataRow[];
showRating: boolean;
withControls?: boolean;
}) {
const [showControls, setShowControls] = useState(false);
const handleMouseEnter = () => {
if (withControls) {
setShowControls(true);
}
};
const handleMouseLeave = () => {
if (withControls) {
setShowControls(false);
}
};
const imageContainerClassName = clsx(styles.imageContainer, {
[styles.isRound]: isRound,
});
const isFavorite = 'userFavorite' in data && (data as { userFavorite: boolean }).userFavorite;
const userRating =
'userRating' in data &&
typeof (data as { userRating: null | number }).userRating === 'number'
? (data as { userRating: null | number }).userRating
: null;
const hasRating = showRating && userRating !== null && userRating > 0;
const imageContainerContent = (
<>
{itemType === LibraryItem.GENRE &&
data &&
'name' in data &&
typeof (data as Genre).name === 'string' ? (
<GenreImagePlaceholder
className={clsx(styles.image, styles.genrePlaceholder, {
[styles.isRound]: isRound,
})}
name={(data as Genre).name}
/>
) : (
<ItemImage
className={clsx(styles.image, {
[styles.isRound]: isRound,
})}
enableDebounce={false}
explicitStatus={'explicitStatus' in data && data ? data.explicitStatus : null}
fetchPriority={imageFetchPriority}
id={data?.imageId}
itemType={itemType}
src={(data as Album | AlbumArtist | Playlist | Song)?.imageUrl}
type="itemCard"
/>
)}
{isFavorite && <div className={styles.favoriteBadge} />}
{hasRating && <div className={styles.ratingBadge}>{userRating}</div>}
<AnimatePresence>
{withControls && showControls && data && (
<ItemCardControls
controls={controls}
enableExpansion={enableExpansion}
internalState={internalState}
item={data}
itemType={itemType}
showRating={showRating}
type="compact"
/>
)}
</AnimatePresence>
<div className={clsx(styles.detailContainer, styles.compact)}>
{rows
.filter(
(row): row is NonNullable<typeof row> => row !== null && row !== undefined,
)
.map((row, index) => (
<ItemCardRow
data={data!}
index={index}
key={row.id}
row={row}
type="compact"
/>
))}
</div>
</>
);
return enableNavigation && navigationPath && (imageAsLink ?? !internalState) ? (
<Link
className={imageContainerClassName}
draggable={false}
onClick={handleImageClick}
onContextMenu={handleContextMenu}
onDragStart={handleLinkDragStart}
onMouseEnter={handleMouseEnter}
onMouseLeave={handleMouseLeave}
state={{ item: data }}
to={navigationPath}
>
{imageContainerContent}
</Link>
) : (
<div
className={imageContainerClassName}
onClick={handleImageClick}
onContextMenu={handleContextMenu}
onMouseEnter={handleMouseEnter}
onMouseLeave={handleMouseLeave}
>
{imageContainerContent}
</div>
);
});
CompactItemCardImageArea.displayName = 'CompactItemCardImageArea';
const CompactItemCard = ({ const CompactItemCard = ({
controls, controls,
data, data,
@@ -171,6 +463,7 @@ const CompactItemCard = ({
enableMultiSelect, enableMultiSelect,
enableNavigation, enableNavigation,
imageAsLink, imageAsLink,
imageFetchPriority,
internalState, internalState,
isRound, isRound,
itemType, itemType,
@@ -178,7 +471,6 @@ const CompactItemCard = ({
showRating, showRating,
withControls, withControls,
}: ItemCardDerivativeProps) => { }: ItemCardDerivativeProps) => {
const [showControls, setShowControls] = useState(false);
const itemRowId = const itemRowId =
data && internalState && typeof data === 'object' && 'id' in data data && internalState && typeof data === 'object' && 'id' in data
? internalState.extractRowId(data) ? internalState.extractRowId(data)
@@ -290,18 +582,6 @@ const CompactItemCard = ({
if (data) { if (data) {
const navigationPath = getItemNavigationPath(data, itemType); const navigationPath = getItemNavigationPath(data, itemType);
const handleMouseEnter = () => {
if (withControls) {
setShowControls(true);
}
};
const handleMouseLeave = () => {
if (withControls) {
setShowControls(false);
}
};
const handleContextMenu = (e: React.MouseEvent<HTMLElement>) => { const handleContextMenu = (e: React.MouseEvent<HTMLElement>) => {
if (!data || !controls) { if (!data || !controls) {
return; return;
@@ -331,80 +611,6 @@ const CompactItemCard = ({
e.stopPropagation(); e.stopPropagation();
}; };
const isFavorite =
'userFavorite' in data && (data as { userFavorite: boolean }).userFavorite;
const userRating =
'userRating' in data &&
typeof (data as { userRating: null | number }).userRating === 'number'
? (data as { userRating: null | number }).userRating
: null;
const hasRating = showRating && userRating !== null && userRating > 0;
const imageContainerClassName = clsx(styles.imageContainer, {
[styles.isRound]: isRound,
});
const imageContainerContent = (
<>
{itemType === LibraryItem.GENRE &&
data &&
'name' in data &&
typeof (data as Genre).name === 'string' ? (
<GenreImagePlaceholder
className={clsx(styles.image, styles.genrePlaceholder, {
[styles.isRound]: isRound,
})}
name={(data as Genre).name}
/>
) : (
<ItemImage
className={clsx(styles.image, {
[styles.isRound]: isRound,
})}
enableDebounce={false}
explicitStatus={
'explicitStatus' in data && data ? data.explicitStatus : null
}
id={data?.imageId}
itemType={itemType}
src={(data as Album | AlbumArtist | Playlist | Song)?.imageUrl}
type="itemCard"
/>
)}
{isFavorite && <div className={styles.favoriteBadge} />}
{hasRating && <div className={styles.ratingBadge}>{userRating}</div>}
<AnimatePresence>
{withControls && showControls && data && (
<ItemCardControls
controls={controls}
enableExpansion={enableExpansion}
internalState={internalState}
item={data}
itemType={itemType}
showRating={showRating}
type="compact"
/>
)}
</AnimatePresence>
<div className={clsx(styles.detailContainer, styles.compact)}>
{rows
.filter(
(row): row is NonNullable<typeof row> =>
row !== null && row !== undefined,
)
.map((row, index) => (
<ItemCardRow
data={data!}
index={index}
key={row.id}
row={row}
type="compact"
/>
))}
</div>
</>
);
return ( return (
<div <div
className={clsx(styles.container, styles.compact, { className={clsx(styles.container, styles.compact, {
@@ -413,31 +619,24 @@ const CompactItemCard = ({
})} })}
ref={ref} ref={ref}
> >
{enableNavigation && navigationPath && (imageAsLink ?? !internalState) ? ( <CompactItemCardImageArea
<Link controls={controls}
className={imageContainerClassName} data={data}
draggable={false} enableExpansion={enableExpansion}
onClick={handleImageClick} enableNavigation={enableNavigation}
onContextMenu={handleContextMenu} handleContextMenu={handleContextMenu}
onDragStart={handleLinkDragStart} handleImageClick={handleImageClick}
onMouseEnter={handleMouseEnter} handleLinkDragStart={handleLinkDragStart}
onMouseLeave={handleMouseLeave} imageAsLink={imageAsLink}
state={{ item: data }} imageFetchPriority={imageFetchPriority}
to={navigationPath} internalState={internalState}
> isRound={isRound}
{imageContainerContent} itemType={itemType}
</Link> navigationPath={navigationPath}
) : ( rows={rows}
<div showRating={showRating}
className={imageContainerClassName} withControls={withControls}
onClick={handleImageClick} />
onContextMenu={handleContextMenu}
onMouseEnter={handleMouseEnter}
onMouseLeave={handleMouseLeave}
>
{imageContainerContent}
</div>
)}
</div> </div>
); );
} }
@@ -475,6 +674,7 @@ const DefaultItemCard = ({
enableExpansion, enableExpansion,
enableNavigation, enableNavigation,
imageAsLink, imageAsLink,
imageFetchPriority,
internalState, internalState,
isRound, isRound,
itemType, itemType,
@@ -482,7 +682,6 @@ const DefaultItemCard = ({
showRating, showRating,
withControls, withControls,
}: ItemCardDerivativeProps) => { }: ItemCardDerivativeProps) => {
const [showControls, setShowControls] = useState(false);
const itemRowId = const itemRowId =
data && internalState && typeof data === 'object' && 'id' in data data && internalState && typeof data === 'object' && 'id' in data
? internalState.extractRowId(data) ? internalState.extractRowId(data)
@@ -529,18 +728,6 @@ const DefaultItemCard = ({
if (data) { if (data) {
const navigationPath = getItemNavigationPath(data, itemType); const navigationPath = getItemNavigationPath(data, itemType);
const handleMouseEnter = () => {
if (withControls) {
setShowControls(true);
}
};
const handleMouseLeave = () => {
if (withControls) {
setShowControls(false);
}
};
const handleContextMenu = (e: React.MouseEvent<HTMLElement>) => { const handleContextMenu = (e: React.MouseEvent<HTMLElement>) => {
if (!data || !controls) { if (!data || !controls) {
return; return;
@@ -570,92 +757,30 @@ const DefaultItemCard = ({
e.stopPropagation(); e.stopPropagation();
}; };
const imageContainerClassName = clsx(styles.imageContainer, {
[styles.isRound]: isRound,
});
const isFavorite =
'userFavorite' in data && (data as { userFavorite: boolean }).userFavorite;
const userRating =
'userRating' in data &&
typeof (data as { userRating: null | number }).userRating === 'number'
? (data as { userRating: null | number }).userRating
: null;
const hasRating = showRating && userRating !== null && userRating > 0;
const imageContainerContent = (
<>
{itemType === LibraryItem.GENRE &&
data &&
'name' in data &&
typeof (data as Genre).name === 'string' ? (
<GenreImagePlaceholder
className={clsx(styles.image, styles.genrePlaceholder, {
[styles.isRound]: isRound,
})}
name={(data as Genre).name}
/>
) : (
<ItemImage
className={clsx(styles.image, { [styles.isRound]: isRound })}
enableDebounce={false}
explicitStatus={
'explicitStatus' in data && data ? data.explicitStatus : null
}
id={data?.imageId}
itemType={itemType}
src={(data as Album | AlbumArtist | Playlist | Song)?.imageUrl}
type="itemCard"
/>
)}
{isFavorite && <div className={styles.favoriteBadge} />}
{hasRating && <div className={styles.ratingBadge}>{userRating}</div>}
<AnimatePresence>
{withControls && showControls && (
<ItemCardControls
controls={controls}
enableExpansion={enableExpansion}
item={data}
itemType={itemType}
showRating={showRating}
type="default"
/>
)}
</AnimatePresence>
</>
);
return ( return (
<div <div
className={clsx(styles.container, { className={clsx(styles.container, {
[styles.selected]: isSelected, [styles.selected]: isSelected,
})} })}
> >
{enableNavigation && navigationPath && (imageAsLink ?? !internalState) ? ( <ItemCardStandardImageArea
<Link controls={controls}
className={imageContainerClassName} data={data}
draggable={false} enableExpansion={enableExpansion}
onClick={handleImageClick} enableNavigation={enableNavigation}
onContextMenu={handleContextMenu} handleContextMenu={handleContextMenu}
onDragStart={handleLinkDragStart} handleImageClick={handleImageClick}
onMouseEnter={handleMouseEnter} handleLinkDragStart={handleLinkDragStart}
onMouseLeave={handleMouseLeave} imageAsLink={imageAsLink}
state={{ item: data }} imageFetchPriority={imageFetchPriority}
to={navigationPath} internalState={internalState}
> isRound={isRound}
{imageContainerContent} itemType={itemType}
</Link> navigationPath={navigationPath}
) : ( showRating={showRating}
<div variant="default"
className={imageContainerClassName} withControls={withControls}
onClick={handleImageClick} />
onContextMenu={handleContextMenu}
onMouseEnter={handleMouseEnter}
onMouseLeave={handleMouseLeave}
>
{imageContainerContent}
</div>
)}
<div className={styles.detailContainer}> <div className={styles.detailContainer}>
{rows {rows
.filter( .filter(
@@ -710,6 +835,7 @@ const PosterItemCard = ({
enableMultiSelect, enableMultiSelect,
enableNavigation, enableNavigation,
imageAsLink, imageAsLink,
imageFetchPriority,
internalState, internalState,
isRound, isRound,
itemType, itemType,
@@ -717,7 +843,6 @@ const PosterItemCard = ({
showRating, showRating,
withControls, withControls,
}: ItemCardDerivativeProps) => { }: ItemCardDerivativeProps) => {
const [showControls, setShowControls] = useState(false);
const itemRowId = const itemRowId =
data && internalState && typeof data === 'object' && 'id' in data data && internalState && typeof data === 'object' && 'id' in data
? internalState.extractRowId(data) ? internalState.extractRowId(data)
@@ -829,18 +954,6 @@ const PosterItemCard = ({
if (data) { if (data) {
const navigationPath = getItemNavigationPath(data, itemType); const navigationPath = getItemNavigationPath(data, itemType);
const handleMouseEnter = () => {
if (withControls) {
setShowControls(true);
}
};
const handleMouseLeave = () => {
if (withControls) {
setShowControls(false);
}
};
const handleContextMenu = (e: React.MouseEvent<HTMLElement>) => { const handleContextMenu = (e: React.MouseEvent<HTMLElement>) => {
if (!data || !controls) { if (!data || !controls) {
return; return;
@@ -870,62 +983,6 @@ const PosterItemCard = ({
e.stopPropagation(); e.stopPropagation();
}; };
const imageContainerClassName = clsx(styles.imageContainer, {
[styles.isRound]: isRound,
});
const isFavorite =
'userFavorite' in data && (data as { userFavorite: boolean }).userFavorite;
const userRating =
'userRating' in data &&
typeof (data as { userRating: null | number }).userRating === 'number'
? (data as { userRating: null | number }).userRating
: null;
const hasRating = showRating && userRating !== null && userRating > 0;
const imageContainerContent = (
<>
{itemType === LibraryItem.GENRE &&
data &&
'name' in data &&
typeof (data as Genre).name === 'string' ? (
<GenreImagePlaceholder
className={clsx(styles.image, styles.genrePlaceholder, {
[styles.isRound]: isRound,
})}
name={(data as Genre).name}
/>
) : (
<ItemImage
className={clsx(styles.image, { [styles.isRound]: isRound })}
enableDebounce={false}
explicitStatus={
'explicitStatus' in data && data ? data.explicitStatus : null
}
id={(data as { imageId: string })?.imageId}
itemType={itemType}
src={(data as { imageUrl: string })?.imageUrl}
type="itemCard"
/>
)}
{isFavorite && <div className={styles.favoriteBadge} />}
{hasRating && <div className={styles.ratingBadge}>{userRating}</div>}
<AnimatePresence>
{withControls && showControls && data && (
<ItemCardControls
controls={controls}
enableExpansion={enableExpansion}
internalState={internalState}
item={data}
itemType={itemType}
showRating={showRating}
type="poster"
/>
)}
</AnimatePresence>
</>
);
return ( return (
<div <div
className={clsx(styles.container, styles.poster, { className={clsx(styles.container, styles.poster, {
@@ -934,31 +991,24 @@ const PosterItemCard = ({
})} })}
ref={ref} ref={ref}
> >
{enableNavigation && navigationPath && (imageAsLink ?? !internalState) ? ( <ItemCardStandardImageArea
<Link controls={controls}
className={imageContainerClassName} data={data}
draggable={false} enableExpansion={enableExpansion}
onClick={handleImageClick} enableNavigation={enableNavigation}
onContextMenu={handleContextMenu} handleContextMenu={handleContextMenu}
onDragStart={handleLinkDragStart} handleImageClick={handleImageClick}
onMouseEnter={handleMouseEnter} handleLinkDragStart={handleLinkDragStart}
onMouseLeave={handleMouseLeave} imageAsLink={imageAsLink}
state={{ item: data }} imageFetchPriority={imageFetchPriority}
to={navigationPath} internalState={internalState}
> isRound={isRound}
{imageContainerContent} itemType={itemType}
</Link> navigationPath={navigationPath}
) : ( showRating={showRating}
<div variant="poster"
className={imageContainerClassName} withControls={withControls}
onClick={handleImageClick} />
onContextMenu={handleContextMenu}
onMouseEnter={handleMouseEnter}
onMouseLeave={handleMouseLeave}
>
{imageContainerContent}
</div>
)}
{data && ( {data && (
<div className={styles.detailContainer}> <div className={styles.detailContainer}>
{rows {rows
@@ -1149,12 +1199,10 @@ export const getDataRows = (type?: 'compact' | 'default' | 'poster'): DataRow[]
}, },
{ {
format: (data) => { format: (data) => {
if ('releaseYear' in data && data.releaseYear !== null) { if ('releaseYear' in data && data.releaseYear != null) {
const releaseYear = data.releaseYear; const releaseYear = data.releaseYear;
const originalYear = const originalYear =
'originalYear' in data && data.originalYear !== null 'originalYear' in data && data.originalYear > 0 ? data.originalYear : null;
? data.originalYear
: null;
if (originalYear !== null && originalYear !== releaseYear) { if (originalYear !== null && originalYear !== releaseYear) {
return `${originalYear}${SEPARATOR_STRING}${releaseYear}`; return `${originalYear}${SEPARATOR_STRING}${releaseYear}`;
@@ -1174,10 +1222,10 @@ export const getDataRows = (type?: 'compact' | 'default' | 'poster'): DataRow[]
data.originalDate && data.originalDate &&
data.originalDate !== data.releaseDate data.originalDate !== data.releaseDate
) { ) {
return `${formatDateAbsoluteUTC(data.originalDate)}${SEPARATOR_STRING}${formatDateAbsoluteUTC(data.releaseDate)}`; return `${formatPartialIsoDateUTC(data.originalDate)}${SEPARATOR_STRING}${formatPartialIsoDateUTC(data.releaseDate)}`;
} }
return `${formatDateAbsoluteUTC(data.releaseDate)}`; return `${formatPartialIsoDateUTC(data.releaseDate)}`;
} }
return ''; return '';
}, },
@@ -12,7 +12,7 @@ import {
useSettingsStore, useSettingsStore,
} from '/@/renderer/store'; } from '/@/renderer/store';
import { BaseImage, ImageProps } from '/@/shared/components/image/image'; import { BaseImage, ImageProps } from '/@/shared/components/image/image';
import { ExplicitStatus, LibraryItem } from '/@/shared/types/domain-types'; import { ExplicitStatus, ImageRequest, LibraryItem } from '/@/shared/types/domain-types';
const getUnloaderIcon = (itemType: LibraryItem) => { const getUnloaderIcon = (itemType: LibraryItem) => {
switch (itemType) { switch (itemType) {
@@ -54,10 +54,19 @@ const BaseItemImage = (
type: props.type, type: props.type,
}); });
const imageRequest = useItemImageRequest({
id: props.id,
imageUrl: src,
itemType: props.itemType,
serverId: serverId || undefined,
type: props.type,
});
const isExplicit = blurExplicitImages && explicitStatus === ExplicitStatus.EXPLICIT; const isExplicit = blurExplicitImages && explicitStatus === ExplicitStatus.EXPLICIT;
return ( return (
<BaseImage <BaseImage
imageRequest={imageRequest}
isExplicit={isExplicit} isExplicit={isExplicit}
src={imageUrl} src={imageUrl}
unloaderIcon={getUnloaderIcon(props.itemType)} unloaderIcon={getUnloaderIcon(props.itemType)}
@@ -113,6 +122,79 @@ export const useItemImageUrl = (args: UseItemImageUrlProps) => {
}, [args.serverId, id, imageUrl, itemType, serverId, size, sizeByType, useRemoteUrl]); }, [args.serverId, id, imageUrl, itemType, serverId, size, sizeByType, useRemoteUrl]);
}; };
export const useItemImageRequest = (args: UseItemImageUrlProps) => {
const { id, imageUrl, itemType, size, type, useRemoteUrl } = args;
const serverId = useCurrentServerId();
const imageRes = useImageRes();
const sizeByType: number | undefined = type ? imageRes[type] : undefined;
return useMemo(() => {
if (imageUrl) {
return {
cacheKey: imageUrl,
url: imageUrl,
} satisfies ImageRequest;
}
if (!id) {
return undefined;
}
const targetServerId = args.serverId || serverId;
let baseUrl: string | undefined;
if (useRemoteUrl) {
const server = getServerById(targetServerId);
baseUrl = server?.remoteUrl || server?.url;
}
return (
api.controller.getImageRequest({
apiClientProps: { serverId: targetServerId },
baseUrl,
query: { id, itemType, size: size ?? sizeByType },
}) || undefined
);
}, [args.serverId, id, imageUrl, itemType, serverId, size, sizeByType, useRemoteUrl]);
};
export function getItemImageRequest(args: UseItemImageUrlProps) {
const { id, imageUrl, itemType, size, type, useRemoteUrl } = args;
const authStore = useAuthStore.getState();
const currentServerId = authStore.currentServer?.id;
const serverId = (args.serverId || currentServerId) as string;
const imageRes = useSettingsStore.getState().general.imageRes;
const sizeByType: number | undefined = type ? imageRes[type] : undefined;
if (imageUrl) {
return {
cacheKey: imageUrl,
url: imageUrl,
} satisfies ImageRequest;
}
if (!id) {
return undefined;
}
let baseUrl: string | undefined;
if (useRemoteUrl) {
const server = getServerById(serverId);
baseUrl = server?.remoteUrl || server?.url;
}
return (
api.controller.getImageRequest({
apiClientProps: { serverId },
baseUrl,
query: { id, itemType, size: size ?? sizeByType },
}) || undefined
);
}
export function getItemImageUrl(args: UseItemImageUrlProps) { export function getItemImageUrl(args: UseItemImageUrlProps) {
const { id, imageUrl, itemType, size, type, useRemoteUrl } = args; const { id, imageUrl, itemType, size, type, useRemoteUrl } = args;
const authStore = useAuthStore.getState(); const authStore = useAuthStore.getState();
@@ -0,0 +1,30 @@
import { ItemTableListColumnConfig } from '/@/renderer/components/item-list/types';
import { TableColumn } from '/@/shared/types/types';
const LAYOUT_FILL_COLUMN: ItemTableListColumnConfig = {
align: 'start',
autoSize: true,
id: TableColumn.LAYOUT_FILL,
isEnabled: true,
pinned: null,
width: 0,
};
export const appendLayoutFillColumn = (
columns: ItemTableListColumnConfig[],
autoFitColumns: boolean,
): ItemTableListColumnConfig[] => {
if (autoFitColumns || columns.length === 0) {
return columns;
}
const unpinnedEnabled = columns.filter((c) => c.pinned === null && c.isEnabled !== false);
if (unpinnedEnabled.length === 0) {
return columns;
}
if (unpinnedEnabled.some((c) => c.autoSize === true)) {
return columns;
}
return [...columns, LAYOUT_FILL_COLUMN];
};
@@ -40,6 +40,13 @@ export const useDefaultItemListControls = (args?: UseDefaultItemListControlsArgs
const setFavorite = useSetFavorite(); const setFavorite = useSetFavorite();
const setRating = useSetRating(); const setRating = useSetRating();
const playerRef = useRef(player);
const setFavoriteRef = useRef(setFavorite);
const setRatingRef = useRef(setRating);
playerRef.current = player;
setFavoriteRef.current = setFavorite;
setRatingRef.current = setRating;
useEffect(() => { useEffect(() => {
navigateRef.current = navigate; navigateRef.current = navigate;
}, [navigate]); }, [navigate]);
@@ -266,14 +273,14 @@ export const useDefaultItemListControls = (args?: UseDefaultItemListControlsArgs
return; return;
} }
player.addToQueueByData(songsToAdd, playType, item.id); playerRef.current.addToQueueByData(songsToAdd, playType, item.id);
return; return;
} }
if (itemType === LibraryItem.QUEUE_SONG) { if (itemType === LibraryItem.QUEUE_SONG) {
const queueSong = item as QueueSong; const queueSong = item as QueueSong;
if (queueSong._uniqueId) { if (queueSong._uniqueId) {
player.mediaPlay(queueSong._uniqueId); playerRef.current.mediaPlay(queueSong._uniqueId);
} }
} }
}, },
@@ -316,7 +323,7 @@ export const useDefaultItemListControls = (args?: UseDefaultItemListControlsArgs
return; return;
} }
setFavorite(item._serverId, [item.id], apiItemType, favorite); setFavoriteRef.current(item._serverId, [item.id], apiItemType, favorite);
}, },
onMore: ({ event, internalState, item, itemType }: DefaultItemControlProps) => { onMore: ({ event, internalState, item, itemType }: DefaultItemControlProps) => {
@@ -394,7 +401,7 @@ export const useDefaultItemListControls = (args?: UseDefaultItemListControlsArgs
return; return;
} }
player.addToQueueByFetch(item._serverId, [item.id], itemType, playType); playerRef.current.addToQueueByFetch(item._serverId, [item.id], itemType, playType);
}, },
onRating: ({ onRating: ({
@@ -420,20 +427,12 @@ export const useDefaultItemListControls = (args?: UseDefaultItemListControlsArgs
newRating = 0; newRating = 0;
} }
setRating(item._serverId, [item.id], apiItemType, newRating); setRatingRef.current(item._serverId, [item.id], apiItemType, newRating);
}, },
...overrides, ...overrides,
}; };
}, [ }, [enableMultiSelect, overrides, onColumnReordered, onColumnResized]);
enableMultiSelect,
overrides,
onColumnReordered,
onColumnResized,
player,
setFavorite,
setRating,
]);
return controls; return controls;
}; };
@@ -349,9 +349,12 @@ export const useItemListInfiniteLoader = ({
mutationKey: getListRefreshMutationKey(eventKey), mutationKey: getListRefreshMutationKey(eventKey),
}); });
const refreshMutationRef = useRef(refreshMutation);
refreshMutationRef.current = refreshMutation;
const refresh = useCallback( const refresh = useCallback(
async (force?: boolean) => refreshMutation.mutateAsync(force), async (force?: boolean) => refreshMutationRef.current.mutateAsync(force),
[refreshMutation], [],
); );
const updateItems = useCallback( const updateItems = useCallback(
@@ -383,7 +386,7 @@ export const useItemListInfiniteLoader = ({
return; return;
} }
refreshMutation.mutate(true); refreshMutationRef.current.mutate(true);
}; };
eventEmitter.on('ITEM_LIST_REFRESH', handleRefresh); eventEmitter.on('ITEM_LIST_REFRESH', handleRefresh);
@@ -391,7 +394,7 @@ export const useItemListInfiniteLoader = ({
return () => { return () => {
eventEmitter.off('ITEM_LIST_REFRESH', handleRefresh); eventEmitter.off('ITEM_LIST_REFRESH', handleRefresh);
}; };
}, [eventKey, refreshMutation]); }, [eventKey]);
useEffect(() => { useEffect(() => {
const handleFavorite = (payload: UserFavoriteEventPayload) => { const handleFavorite = (payload: UserFavoriteEventPayload) => {
@@ -5,7 +5,7 @@ import {
useSuspenseQuery, useSuspenseQuery,
UseSuspenseQueryOptions, UseSuspenseQueryOptions,
} from '@tanstack/react-query'; } from '@tanstack/react-query';
import { useCallback, useEffect, useMemo } from 'react'; import { useCallback, useEffect, useMemo, useRef } from 'react';
import { queryKeys } from '/@/renderer/api/query-keys'; import { queryKeys } from '/@/renderer/api/query-keys';
import { useListContext } from '/@/renderer/context/list-context'; import { useListContext } from '/@/renderer/context/list-context';
@@ -115,6 +115,9 @@ export const useItemListPaginatedLoader = ({
mutationKey: getListRefreshMutationKey(eventKey ?? 'paginated'), mutationKey: getListRefreshMutationKey(eventKey ?? 'paginated'),
}); });
const refreshMutationRef = useRef(refreshMutation);
refreshMutationRef.current = refreshMutation;
const updateItems = useCallback( const updateItems = useCallback(
(indexes: number[], value: object) => { (indexes: number[], value: object) => {
return queryClient.setQueryData( return queryClient.setQueryData(
@@ -153,7 +156,7 @@ export const useItemListPaginatedLoader = ({
return; return;
} }
refreshMutation.mutate(true); refreshMutationRef.current.mutate(true);
}; };
const handleFavorite = (payload: UserFavoriteEventPayload) => { const handleFavorite = (payload: UserFavoriteEventPayload) => {
@@ -220,7 +223,7 @@ export const useItemListPaginatedLoader = ({
eventEmitter.off('USER_FAVORITE', handleFavorite); eventEmitter.off('USER_FAVORITE', handleFavorite);
eventEmitter.off('USER_RATING', handleRating); eventEmitter.off('USER_RATING', handleRating);
}; };
}, [data, eventKey, itemType, refreshMutation, serverId, updateItems]); }, [data, eventKey, itemType, serverId, updateItems]);
return { data: data?.items || [], pageCount, totalItemCount }; return { data: data?.items || [], pageCount, totalItemCount };
}; };
@@ -67,6 +67,7 @@ const getRowIdFromTableColumn = (tableColumn: TableColumn): null | string => {
[TableColumn.ID]: null, [TableColumn.ID]: null,
[TableColumn.IMAGE]: null, [TableColumn.IMAGE]: null,
[TableColumn.LAST_PLAYED]: 'lastPlayedAt', [TableColumn.LAST_PLAYED]: 'lastPlayedAt',
[TableColumn.LAYOUT_FILL]: null,
[TableColumn.OWNER]: null, [TableColumn.OWNER]: null,
[TableColumn.PATH]: null, [TableColumn.PATH]: null,
[TableColumn.PLAY_COUNT]: 'playCount', [TableColumn.PLAY_COUNT]: 'playCount',
@@ -6,8 +6,8 @@ import {
ItemListStateItemWithRequiredProperties, ItemListStateItemWithRequiredProperties,
} from '/@/renderer/components/item-list/helpers/item-list-state'; } from '/@/renderer/components/item-list/helpers/item-list-state';
import { ItemControls } from '/@/renderer/components/item-list/types'; import { ItemControls } from '/@/renderer/components/item-list/types';
import { useHotkeys } from '/@/renderer/hooks/use-hotkeys';
import { useHotkeySettings, usePlayButtonBehavior } from '/@/renderer/store'; import { useHotkeySettings, usePlayButtonBehavior } from '/@/renderer/store';
import { useHotkeys } from '/@/shared/hooks/use-hotkeys';
import { LibraryItem } from '/@/shared/types/domain-types'; import { LibraryItem } from '/@/shared/types/domain-types';
import { Play } from '/@/shared/types/types'; import { Play } from '/@/shared/types/types';
@@ -1,6 +1,21 @@
import { ItemDetailListCellProps } from './types'; import { ItemDetailListCellProps } from './types';
import { formatDateAbsoluteUTC } from '/@/renderer/utils/format'; import { formatPartialIsoDateUTC } from '/@/renderer/utils/format';
import { SEPARATOR_STRING } from '/@/shared/api/utils';
export const ReleaseDateColumn = ({ song }: ItemDetailListCellProps) => export const ReleaseDateColumn = ({ song }: ItemDetailListCellProps) => {
song.releaseDate ? formatDateAbsoluteUTC(song.releaseDate) : <>&nbsp;</>; const row = song as typeof song & { originalDate?: null | string };
const releaseDate = row.releaseDate;
if (!releaseDate) {
return <>&nbsp;</>;
}
const originalDate =
row.originalDate && row.originalDate !== releaseDate ? row.originalDate : null;
if (originalDate) {
return `${formatPartialIsoDateUTC(originalDate)}${SEPARATOR_STRING}${formatPartialIsoDateUTC(releaseDate)}`;
}
return formatPartialIsoDateUTC(releaseDate);
};
@@ -179,6 +179,14 @@
opacity: 1; opacity: 1;
} }
.resize-handle.resize-handle-disabled {
cursor: not-allowed;
}
.track-header-cell:hover .resize-handle.resize-handle-disabled {
cursor: not-allowed;
}
.resize-handle:hover { .resize-handle:hover {
opacity: 1; opacity: 1;
} }
@@ -67,7 +67,7 @@ import { songsQueries } from '/@/renderer/features/songs/api/songs-api';
import { useDragDrop } from '/@/renderer/hooks/use-drag-drop'; import { useDragDrop } from '/@/renderer/hooks/use-drag-drop';
import { AppRoute } from '/@/renderer/router/routes'; import { AppRoute } from '/@/renderer/router/routes';
import { useSettingsStore, useShowRatings } from '/@/renderer/store'; import { useSettingsStore, useShowRatings } from '/@/renderer/store';
import { formatDateAbsoluteUTC, formatDurationString } from '/@/renderer/utils'; import { formatDurationString, formatPartialIsoDateUTC } from '/@/renderer/utils';
import { SEPARATOR_STRING } from '/@/shared/api/utils'; import { SEPARATOR_STRING } from '/@/shared/api/utils';
import { ExplicitIndicator } from '/@/shared/components/explicit-indicator/explicit-indicator'; import { ExplicitIndicator } from '/@/shared/components/explicit-indicator/explicit-indicator';
import { Skeleton } from '/@/shared/components/skeleton/skeleton'; import { Skeleton } from '/@/shared/components/skeleton/skeleton';
@@ -489,9 +489,9 @@ const MetadataSection = memo(
let releaseStr = ''; let releaseStr = '';
if (item.releaseDate) { if (item.releaseDate) {
if (item.originalDate && item.originalDate !== item.releaseDate) { if (item.originalDate && item.originalDate !== item.releaseDate) {
releaseStr = `${formatDateAbsoluteUTC(item.originalDate)}${SEPARATOR_STRING}${formatDateAbsoluteUTC(item.releaseDate)}`; releaseStr = `${formatPartialIsoDateUTC(item.originalDate)}${SEPARATOR_STRING}${formatPartialIsoDateUTC(item.releaseDate)}`;
} else { } else {
releaseStr = formatDateAbsoluteUTC(item.releaseDate); releaseStr = formatPartialIsoDateUTC(item.releaseDate);
} }
} else if (item.releaseYear != null) { } else if (item.releaseYear != null) {
releaseStr = String(item.releaseYear); releaseStr = String(item.releaseYear);
@@ -911,8 +911,7 @@ const DetailListHeaderCell = memo(
const percent = col ? (columnWidthPercents[colIndex] ?? 0) : 0; const percent = col ? (columnWidthPercents[colIndex] ?? 0) : 0;
const { fixedWidth, isFixedColumn } = getTrackColumnFixed(columnId); const { fixedWidth, isFixedColumn } = getTrackColumnFixed(columnId);
const currentWidth = col?.width ?? (fixedWidth || 100); const currentWidth = col?.width ?? (fixedWidth || 100);
const showResizeHandle = const showResizeHandle = enableColumnResize && !isFixedColumn;
enableColumnResize && !isFixedColumn && !col?.autoSize && onColumnResized;
useEffect(() => { useEffect(() => {
if (!containerRef.current || !onColumnReordered) { if (!containerRef.current || !onColumnReordered) {
@@ -1026,6 +1025,7 @@ const DetailListHeaderCell = memo(
{showResizeHandle && ( {showResizeHandle && (
<DetailListColumnResizeHandle <DetailListColumnResizeHandle
columnId={columnId} columnId={columnId}
disabled={!!col?.autoSize}
initialWidth={currentWidth} initialWidth={currentWidth}
onResize={handleResize} onResize={handleResize}
side="right" side="right"
@@ -1040,6 +1040,7 @@ DetailListHeaderCell.displayName = 'DetailListHeaderCell';
interface DetailListColumnResizeHandleProps { interface DetailListColumnResizeHandleProps {
columnId: TableColumn; columnId: TableColumn;
disabled?: boolean;
initialWidth: number; initialWidth: number;
onResize: (columnId: TableColumn, width: number) => void; onResize: (columnId: TableColumn, width: number) => void;
side: 'left' | 'right'; side: 'left' | 'right';
@@ -1047,6 +1048,7 @@ interface DetailListColumnResizeHandleProps {
const DetailListColumnResizeHandle = ({ const DetailListColumnResizeHandle = ({
columnId, columnId,
disabled = false,
initialWidth, initialWidth,
onResize, onResize,
side, side,
@@ -1091,6 +1093,11 @@ const DetailListColumnResizeHandle = ({
}, [isDragging, columnId, onResize]); }, [isDragging, columnId, onResize]);
const handleMouseDown = (event: React.MouseEvent<HTMLDivElement>) => { const handleMouseDown = (event: React.MouseEvent<HTMLDivElement>) => {
if (disabled) {
event.preventDefault();
event.stopPropagation();
return;
}
event.preventDefault(); event.preventDefault();
event.stopPropagation(); event.stopPropagation();
setIsDragging(true); setIsDragging(true);
@@ -1103,6 +1110,7 @@ const DetailListColumnResizeHandle = ({
return ( return (
<div <div
className={clsx(styles.resizeHandle, { className={clsx(styles.resizeHandle, {
[styles.resizeHandleDisabled]: disabled,
[styles.resizeHandleDragging]: isDragging, [styles.resizeHandleDragging]: isDragging,
[styles.resizeHandleLeft]: side === 'left', [styles.resizeHandleLeft]: side === 'left',
[styles.resizeHandleRight]: side === 'right', [styles.resizeHandleRight]: side === 'right',
@@ -4,6 +4,7 @@
flex-direction: column !important; flex-direction: column !important;
width: 100%; width: 100%;
height: 100%; height: 100%;
padding-block: var(--theme-spacing-xs);
padding-right: var(--theme-spacing-md); padding-right: var(--theme-spacing-md);
outline: none; outline: none;
border: none; border: none;
@@ -385,8 +385,8 @@ const BaseItemGridList = ({
rows, rows,
size = 'default', size = 'default',
}: ItemGridListProps) => { }: ItemGridListProps) => {
const rootRef = useRef(null); const rootRef = useRef<HTMLDivElement | null>(null);
const outerRef = useRef(null); const outerRef = useRef<HTMLDivElement | null>(null);
const listRef = useRef<FixedSizeList<GridItemProps>>(null); const listRef = useRef<FixedSizeList<GridItemProps>>(null);
const { ref: containerRef, width: containerWidth } = useElementSize(); const { ref: containerRef, width: containerWidth } = useElementSize();
const { focused, ref: containerFocusRef } = useFocusWithin(); const { focused, ref: containerFocusRef } = useFocusWithin();
@@ -486,7 +486,7 @@ const BaseItemGridList = ({
}, [itemsPerRow, rows?.length, size]); }, [itemsPerRow, rows?.length, size]);
useLayoutEffect(() => { useLayoutEffect(() => {
const { current: container } = containerRef; const container = rootRef.current;
if (!container) return; if (!container) return;
throttledSetTableMeta(containerWidth, resolvedItemCount, (meta) => { throttledSetTableMeta(containerWidth, resolvedItemCount, (meta) => {
@@ -500,13 +500,15 @@ const BaseItemGridList = ({
current.rowCount !== meta.rowCount current.rowCount !== meta.rowCount
) { ) {
tableMetaRef.current = meta; tableMetaRef.current = meta;
container.style.setProperty('--grid-column-count', String(meta.columnCount)); const el = rootRef.current;
container.style.setProperty('--grid-item-height', `${meta.itemHeight}px`); if (!el) return;
container.style.setProperty('--grid-row-count', String(meta.rowCount)); el.style.setProperty('--grid-column-count', String(meta.columnCount));
el.style.setProperty('--grid-item-height', `${meta.itemHeight}px`);
el.style.setProperty('--grid-row-count', String(meta.rowCount));
setTableMetaVersion((v) => v + 1); setTableMetaVersion((v) => v + 1);
} }
}); });
}, [containerWidth, resolvedItemCount, throttledSetTableMeta, containerRef]); }, [containerWidth, resolvedItemCount, throttledSetTableMeta]);
const controls = useDefaultItemListControls({ const controls = useDefaultItemListControls({
enableMultiSelect, enableMultiSelect,
@@ -20,7 +20,8 @@ export const createColumnCellComponent = (
prevProps.columnIndex === nextProps.columnIndex && prevProps.columnIndex === nextProps.columnIndex &&
prevProps.data === nextProps.data && prevProps.data === nextProps.data &&
prevProps.style === nextProps.style && prevProps.style === nextProps.style &&
prevProps.columns === nextProps.columns prevProps.columns === nextProps.columns &&
prevProps.playlistId === nextProps.playlistId
); );
}, },
); );
@@ -8,49 +8,25 @@ import {
} from '/@/renderer/components/item-list/item-table-list/item-table-list-column'; } from '/@/renderer/components/item-list/item-table-list/item-table-list-column';
import { import {
formatDateAbsolute, formatDateAbsolute,
formatDateAbsoluteUTC,
formatDateRelative, formatDateRelative,
formatHrDateTime, formatPartialIsoDateUTC,
} from '/@/renderer/utils/format'; } from '/@/renderer/utils/format';
import { SEPARATOR_STRING } from '/@/shared/api/utils'; import { SEPARATOR_STRING } from '/@/shared/api/utils';
import { Stack } from '/@/shared/components/stack/stack';
import { Text } from '/@/shared/components/text/text';
import { Tooltip } from '/@/shared/components/tooltip/tooltip';
import { TableColumn } from '/@/shared/types/types'; import { TableColumn } from '/@/shared/types/types';
const getDateTooltipLabel = (utcString: string) => {
return (
<Stack gap="xs" justify="center">
<Text size="md" ta="center">
{formatHrDateTime(utcString)}
</Text>
<Text isMuted size="sm" ta="center">
{utcString}
</Text>
</Stack>
);
};
const DateColumnBase = (props: ItemTableListInnerColumn) => { const DateColumnBase = (props: ItemTableListInnerColumn) => {
const rowItem = props.getRowItem?.(props.rowIndex) ?? (props.data as any[])[props.rowIndex]; const rowItem = props.getRowItem?.(props.rowIndex) ?? (props.data as any[])[props.rowIndex];
const row: string | undefined = (rowItem as any)?.[props.columns[props.columnIndex].id]; const row: string | undefined = (rowItem as any)?.[props.columns[props.columnIndex].id];
const { formattedDate, tooltipLabel } = useMemo(() => { const formattedAbsolute = useMemo(
if (typeof row === 'string' && row) { () => (typeof row === 'string' && row ? formatDateAbsolute(row) : null),
return { [row],
formattedDate: formatDateAbsolute(row), );
tooltipLabel: getDateTooltipLabel(row),
};
}
return { formattedDate: null, tooltipLabel: null };
}, [row]);
if (typeof row === 'string' && row) { if (formattedAbsolute) {
return ( return (
<TableColumnTextContainer {...props}> <TableColumnTextContainer {...props}>
<Tooltip label={tooltipLabel} multiline={false}> <span>{formattedAbsolute}</span>
<span>{formattedDate}</span>
</Tooltip>
</TableColumnTextContainer> </TableColumnTextContainer>
); );
} }
@@ -79,44 +55,37 @@ const AbsoluteDateColumnBase = (props: ItemTableListInnerColumn) => {
: null; : null;
if (originalDate) { if (originalDate) {
const formattedOriginalDate = formatDateAbsoluteUTC(originalDate); const formattedOriginalDate = formatPartialIsoDateUTC(originalDate);
const formattedReleaseDate = formatDateAbsoluteUTC(releaseDate); const formattedReleaseDate = formatPartialIsoDateUTC(releaseDate);
const displayText = `${formattedOriginalDate}${SEPARATOR_STRING}${formattedReleaseDate}`; return `${formattedOriginalDate}${SEPARATOR_STRING}${formattedReleaseDate}`;
return {
displayText,
tooltipLabel: getDateTooltipLabel(releaseDate),
};
} }
if (typeof releaseDate === 'string' && releaseDate) { if (typeof releaseDate === 'string' && releaseDate) {
return { return formatPartialIsoDateUTC(releaseDate);
displayText: formatDateAbsoluteUTC(releaseDate),
tooltipLabel: getDateTooltipLabel(releaseDate),
};
} }
} }
} }
return null; return null;
}, [props.type, rowItem]); }, [props.type, rowItem]);
const { formattedDate, tooltipLabel } = useMemo(() => { const formattedIsoFallback = useMemo(
if (typeof row === 'string' && row) { () => (typeof row === 'string' && row ? formatPartialIsoDateUTC(row) : null),
return { [row],
formattedDate: formatDateAbsoluteUTC(row), );
tooltipLabel: getDateTooltipLabel(row),
};
}
return { formattedDate: null, tooltipLabel: null };
}, [row]);
if (props.type === TableColumn.RELEASE_DATE) { if (props.type === TableColumn.RELEASE_DATE) {
if (releaseDateContent) { if (releaseDateContent) {
return ( return (
<TableColumnTextContainer {...props}> <TableColumnTextContainer {...props}>
<Tooltip label={releaseDateContent.tooltipLabel} multiline={false}> <span>{releaseDateContent}</span>
<span>{releaseDateContent.displayText}</span> </TableColumnTextContainer>
</Tooltip> );
}
if (formattedIsoFallback) {
return (
<TableColumnTextContainer {...props}>
<span>{formattedIsoFallback}</span>
</TableColumnTextContainer> </TableColumnTextContainer>
); );
} }
@@ -128,20 +97,6 @@ const AbsoluteDateColumnBase = (props: ItemTableListInnerColumn) => {
return <ColumnSkeletonFixed {...props} />; return <ColumnSkeletonFixed {...props} />;
} }
if (typeof row === 'string' && row) {
return (
<TableColumnTextContainer {...props}>
<Tooltip label={tooltipLabel} multiline={false}>
<span>{formattedDate}</span>
</Tooltip>
</TableColumnTextContainer>
);
}
if (row === null) {
return <ColumnNullFallback {...props} />;
}
return <ColumnSkeletonFixed {...props} />; return <ColumnSkeletonFixed {...props} />;
}; };
@@ -151,22 +106,15 @@ const RelativeDateColumnBase = (props: ItemTableListInnerColumn) => {
const rowItem = props.getRowItem?.(props.rowIndex) ?? (props.data as any[])[props.rowIndex]; const rowItem = props.getRowItem?.(props.rowIndex) ?? (props.data as any[])[props.rowIndex];
const row: string | undefined = (rowItem as any)?.[props.columns[props.columnIndex].id]; const row: string | undefined = (rowItem as any)?.[props.columns[props.columnIndex].id];
const { formattedDate, tooltipLabel } = useMemo(() => { const formattedRelative = useMemo(() => {
if (typeof row === 'string') { if (typeof row !== 'string') return null;
return { return formatDateRelative(row);
formattedDate: formatDateRelative(row),
tooltipLabel: getDateTooltipLabel(row),
};
}
return { formattedDate: null, tooltipLabel: null };
}, [row]); }, [row]);
if (typeof row === 'string') { if (formattedRelative !== null) {
return ( return (
<TableColumnTextContainer {...props}> <TableColumnTextContainer {...props}>
<Tooltip label={tooltipLabel} multiline={false}> <span>{formattedRelative}</span>
<span>{formattedDate}</span>
</Tooltip>
</TableColumnTextContainer> </TableColumnTextContainer>
); );
} }

Some files were not shown because too many files have changed in this diff Show More