Skip to content

Commit 24a9ca6

Browse files
authored
Merge pull request #1837 from C0rn3j/jelly_rg
Use Jellyfin's NormalizationGain as replaygain_track_gain
2 parents 5997a9a + 746148c commit 24a9ca6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Changelog
88
- **Added** Option to upload lyrics to LRCLIB (inside the lyrics editor)
99
- **Added** All lyrics changes will now write back to their original files
1010
- **Added** Spring-loaded clicking behavior to all context menus
11+
- **Added** Track ReplayGain support for Jellyfin
1112
- **Fixed** Setting "Background artist info download" not being respected
1213
- **Fixed** Chart generation on macOS and Windows (regression)
1314
- **Fixed** Loading queue on app restart (regression)

src/tauon/t_modules/t_jellyfin.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,9 @@ def ingest_library(self, return_list: bool = False) -> list[int] | None:
491491
if len(artists) > 1:
492492
nt.misc["artists"] = artists
493493
nt.album_artist = track.get("AlbumArtist", "")
494+
replay_gain = track.get("NormalizationGain", "")
495+
if replay_gain:
496+
nt.misc["replaygain_track_gain"] = float(replay_gain)
494497
nt.title = track.get("Name", "")
495498
nt.composer = "; ".join(d["Name"] for d in track.get("People", []) if d["Type"] == "Composer")
496499
nt.length = track.get("RunTimeTicks", 0) / 10000000 # needs to be in seconds

0 commit comments

Comments
 (0)