Subsonic international character (UTF-8) support

The discussion lounge for third-party packages.
Forum rules
Please note the Disclaimer before modifying your Synology Product.
2mny
Trainee
Trainee
Posts: 11
Joined: Wed Nov 21, 2012 3:47 am

Subsonic international character (UTF-8) support

Postby 2mny » Wed Nov 21, 2012 4:45 am

So at some point I noticed that all my international music wasn't showing up in Subsonic. Don't know if this was always the case or if a recent update broke something. If you have the same issue, here's how to get it working.

My package versions are as follows but this guide should work for other versions as well.
DS411
DSM 4.1-2647
Subsonic 4.7-028 w/ MashupMod from eg-blog.de
Java 1.7.0_06-1 from MissileHugger

steps to get things working:

-install UTF-8 locale http://www.chainsawonatireswing.com/201 ... ort-utf-8/
To get /opt you will need to bootstrap your DiskStation

-add locale settings to subsonic.sh

Code: Select all

SUBSONIC_DEFAULT_PLAYLIST_FOLDER=/volume1/music/playlists

### UTF-8 Support
export LANG="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"

quiet=0

Code: Select all

${JAVA} -Xmx${SUBSONIC_MAX_MEMORY}m \
  -Dsubsonic.home=${SUBSONIC_HOME} \
  -Dsubsonic.host=${SUBSONIC_HOST} \
  -Dsubsonic.port=${SUBSONIC_PORT} \
  -Dsubsonic.httpsPort=${SUBSONIC_HTTPS_PORT} \
  -Dsubsonic.contextPath=${SUBSONIC_CONTEXT_PATH} \
  -Dsubsonic.defaultMusicFolder=${SUBSONIC_DEFAULT_MUSIC_FOLDER} \
  -Dsubsonic.defaultPodcastFolder=${SUBSONIC_DEFAULT_PODCAST_FOLDER} \
  -Dsubsonic.defaultPlaylistFolder=${SUBSONIC_DEFAULT_PLAYLIST_FOLDER} \
  -Djava.awt.headless=true \
  -Dfile.encoding=UTF8 \
  -verbose:gc \
  -jar subsonic-booter-jar-with-dependencies.jar > ${LOG} 2>&1 &


-Refresh your subsonic database: Backup subsonic. Remove your media folders from Subsonic. Scan folders and clean database. Re-add media folders. If your artist list on the left repopulates instantly after selecting "Scan media folders now" then your database was not completely cleaned and you will need to try again.
2mny
Trainee
Trainee
Posts: 11
Joined: Wed Nov 21, 2012 3:47 am

Re: Subsonic international character (UTF-8) support

Postby 2mny » Fri Dec 21, 2012 4:30 am

Updated DiskStation and Subsonic would not start. I re-did the locale settings and got it running again.

I think letting locale binaries live in /usr/local/bin instead of /opt/bin might be a bit more update-proof and could eliminate the need for bootstrap.

Return to “Third-party Packages”

Who is online

Users browsing this forum: No registered users and 5 guests