Tauon Test Connection to Jellyfin Successful, but Fails to Import Music
Closed this issue · 3 comments
Hello, I've had this issue for some time and I'm not actually sure when it started anymore. If I go to "Accounts" and enter my JF server details the "Test Connectivity" comes out successful, but when I click to import Tauon sticks at "Accessing Jellyfin Library" indefinitely and never adds the music.
Tauon 7.8.3 (installed through AUR on Arch, but same behavior via Flatpak)
Jellyfin Music seems to work without issue for other apps and interfaces.
AUR Logs:
Tauon v7.8.3
Copyright 2015-2023 Taiko2k captain.gxj@gmail.com
2021
Window size: [1472, 742]
Running from installed location
User files location: /home/viejo/.local/share/TauonMusicBox
Found XDG-Downloads: /home/viejo/Downloads
Found XDG-Music: /home/viejo/Music
Install directory: /opt/tauon-music-box
Database loaded in 0.08 seconds.
Pychromecast not found
Error loading xcursor
Start controller server
Start PHAzOR backend...
Using SDL version: 2.30.10
Grrr why this happen, stupid bug
Applying theme: Turbo
Auto save playtime
Grrr why this happen, stupid bug
Grrr why this happen, stupid bug
Exit Phazor
Message: Connection and authorisation successful
Prepare for Jellyfin library import...
Get items...
Connection successful, storing items...
Exception in thread Thread-10 (ingest_library):
Traceback (most recent call last):
File "/usr/lib/python3.13/threading.py", line 1041, in _bootstrap_inner
self.run()
~~~~~~~~^^
File "/usr/lib/python3.13/threading.py", line 992, in run
self._target(*self._args, **self._kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/tauon-music-box/t_modules/t_jellyfin.py", line 439, in ingest_library
nt.size = track.get("MediaSources")[0]["Size"]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
KeyError: 'Size'
Shutting down. Reason: User clicked X button
Writing database to disk... done
Clear tmp cache
bye
Flatpak Logs:
Tauon v7.8.3
Copyright 2015-2023 Taiko2k captain.gxj@gmail.com
xkbcommon: ERROR: /usr/share/X11/locale/en_US.UTF-8/Compose:1661:1: unrecognized keysym "dead_hamza" on left-hand side
xkbcommon: ERROR: /usr/share/X11/locale/en_US.UTF-8/Compose:1662:1: unrecognized keysym "dead_hamza" on left-hand side
xkbcommon: ERROR: /usr/share/X11/locale/en_US.UTF-8/Compose:1663:1: unrecognized keysym "dead_hamza" on left-hand side
xkbcommon: ERROR: /usr/share/X11/locale/en_US.UTF-8/Compose:1664:1: unrecognized keysym "dead_hamza" on left-hand side
xkbcommon: ERROR: /usr/share/X11/locale/en_US.UTF-8/Compose:1665:1: unrecognized keysym "dead_hamza" on left-hand side
2021
Window size: [1318, 772]
Detected running as Flatpak
Installed as Flatpak
User files location: /home/viejo/.var/app/com.github.taiko2k.tauonmb/data/TauonMusicBox
Found XDG-Downloads: /home/viejo/Downloads
Found XDG-Music: /home/viejo/Music
Install directory: /app/bin
Database loaded in 0.087 seconds.
Error loading xcursor
Scanning for chromecasts...
Start controller server
Start PHAzOR backend...
Using SDL version: 2.28.5
Grrr why this happen, stupid bug
Applying theme: Turbo
Auto save playtime
Grrr why this happen, stupid bug
Grrr why this happen, stupid bug
Exit Phazor
Message: Connection and authorisation successful
Prepare for Jellyfin library import...
Get items...
Connection successful, storing items...
Exception in thread Thread-13 (ingest_library):
Traceback (most recent call last):
File "/usr/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
self.run()
File "/usr/lib/python3.11/threading.py", line 982, in run
self._target(*self._args, **self._kwargs)
File "/app/bin/t_modules/t_jellyfin.py", line 439, in ingest_library
nt.size = track.get("MediaSources")[0]["Size"]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
KeyError: 'Size'
Both seem to be Python "Size" errors. It would not be the first time Python libraries have caused issues with packages on my PC, but curious it's affecting Flatpak as well.
Any ideas very much appreciated.
Edit: Apologies for the formatting on this post, not sure why code blocks aren't working - Been awhile since I've been here.
First off, try using AUR/tauon-music-box-git
instead. Backup data first if you care about it, as the databases will be incompatible with 7.8.3 afterwards.
Assuming it still happens…
Second, what exactly are you filling into the account forms? Could be related to #1076, I suppose that is unlikely in this case.
Third - which Jellyfin version? JF hosted on Arch works here for me.
Fourth - put print(track.get("MediaSources")[0])
above the problematic like (keep the same level of tab indents) and post the output here.
Markdown uses triple backticks with a linebreak for multiline, I fixed your post.
Thank you C0rn3j for fixing my formatting and for the suggestion on installing the git version of Tauon - The git version works perfectly. I'm guessing the issue is/was somewhere with Python on my system. It is very odd to me though that Flatpak in that case had the same issue.
Jellyfin is version 10.10.3.0, but I'm fine with leaving things here as fixed unless there were some curiosities.
I'm guessing the issue is/was somewhere with Python on my system.
It's a Tauon issue, either transient so it just happened not to trigger on the unreleased 7.9.0, or it was actually fixed since, as Tauon had rather large changes.