Skip to content

Commit

Permalink
Fix Jellyfin import container field
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiko2k committed Jul 9, 2024
1 parent ef90372 commit cd88eba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ v7.8.1
- Added Pipewire native output option (Linux only)
- Added setting in UI to disable gamepad
- Added support for importing files with .AIFF extension
- Fixed IME candidate list position when using UI scaling (testme)
- Fixed IME candidate list position when using UI scaling
- Improved Jellyfin import speed
- Improved Discord RPC update speed

v7.8.0

Expand Down
8 changes: 5 additions & 3 deletions t_modules/t_jellyfin.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,9 +471,11 @@ def ingest_library(self, return_list=False):
["MediaStreams"][0].get("Comment", ""))
nt.disc_number = str(track.get("ParentIndexNumber", ""))

nt.misc["container"] = track.get("Container").upper()
nt.misc["codec"] = (track.get("MediaSources")[0]
["MediaStreams"][0]["Codec"])
try:
nt.misc["container"] = track.get("MediaSources")[0]["Container"].upper()
nt.misc["codec"] = track.get("MediaSources")[0]["MediaStreams"][0]["Codec"]
except:
print("Jelly error get container")

self.pctl.master_library[id] = nt
if not replace_existing:
Expand Down

0 comments on commit cd88eba

Please sign in to comment.