FAQ  •  Register  •  Login

Serviio symlink behaviour and DB update issue

<<

Alien8

Serviio newbie

Posts: 2

Joined: Mon Apr 15, 2013 9:02 am

Post Mon Apr 15, 2013 9:24 am

Serviio symlink behaviour and DB update issue

Hi

I'm relatively new to Serviio

I've switched over from TM because I needed the transcoding abilities and because I need to use playlists for my audio files.
My Serviio (1.1_b10) is running on a TS-210 QNAP NAS, with java 7.

I've modified the profiles to suit my DLNA players to audio only, since transcoding a movie file on an ARM CPU won't work in this life or the next.

I've been updating my audio file collection, adding EAC flac ripped CD's from my collection. As it so happens there are quite some double files in my audio library (compilations, original albums...)
So I got the idea to remove the double files (if identical) and replace them with a symlink, so I could play an album entirely without having the same song all over the place in my library.
I'll probably need a script or so to get all this done reliably, however that is not the issue.
My problem is that the symlink is found correctly, but the DB entry is added using the metadata of the pointed to file. So in the end my symlink never shows up in the album where I want it to be in, but in the album of the linked to file.

as an example I've deleted and recreated a symlink for Guns N' Roses Welcome to the Jungle and forced a library refresh
- here is the grepped logentry :
  Code:
[/share/MD0_DATA/.qpkg/Serviio/config] # cat ../log/serviio.log | grep 'Jungle'
2013-04-15 10:28:35,404 INFO  [LibraryAdditionsCheckerThread] Added file 'Guns N' Roses - Welcome To The Jungle.flac' (title: Welcome To The Jungle) to Library
2013-04-15 10:33:51,399 DEBUG [AudioDeliveryEngine] Found Format profile for transcoded file Guns N' Roses - Welcome To The Jungle.flac: LPCM16_44_STEREO
2013-04-15 10:33:51,416 DEBUG [AudioDeliveryEngine] Found Format profile for transcoded file Guns N' Roses - Welcome To The Jungle.flac: LPCM16_44_STEREO
2013-04-15 10:46:54,595 DEBUG [LibraryAdditionsCheckerThread] Found file 'Down (Praga Kahn Jungle Remix).mp3', checking if it's already in the Library

2013-04-15 10:47:47,518 DEBUG [LibraryAdditionsCheckerThread] Found file 'Guns N' Roses - Welcome To The Jungle.flac', checking if it's already in the Library
2013-04-15 10:47:47,518 DEBUG [MediaItemDAOImpl] Checking if DB already contains media item Guns N' Roses - Welcome To The Jungle.flac
2013-04-15 10:47:47,518 DEBUG [MediaItemDAOImpl] Looking up a media item for file path: /share/MD0_DATA/Backup_Diego/Music/Guns N' Roses - Greatest Hits/Guns N' Roses - Welcome To The Jungle.flac, ignore case: false
2013-04-15 10:47:47,520 DEBUG [MediaItemDAOImpl] Media item Guns N' Roses - Welcome To The Jungle.flac already exists in DB
2013-04-15 10:48:08,920 INFO  [LibraryUpdatesCheckerThread] Removing 'Welcome To The Jungle' (/share/MD0_DATA/Backup_Diego/Music/Guns N' Roses - Appetite for Destruction/Guns N' Roses - Welcome To The Jungle.flac) from Library
2013-04-15 10:48:09,372 DEBUG [AudioService] Removing music track from database: Welcome To The Jungle
2013-04-15 10:51:21,919 DEBUG [LibraryAdditionsCheckerThread] Found file 'Guns N' Roses - Welcome To The Jungle.flac', checking if it's already in the Library
2013-04-15 10:51:21,919 DEBUG [MediaItemDAOImpl] Checking if DB already contains media item Guns N' Roses - Welcome To The Jungle.flac
2013-04-15 10:51:21,919 DEBUG [MediaItemDAOImpl] Looking up a media item for file path: /share/MD0_DATA/Backup_Diego/Music/Guns N' Roses - Appetite for Destruction/Guns N' Roses - Welcome To The Jungle.flac, ignore case: false
2013-04-15 10:51:21,943 DEBUG [MediaItemDAOImpl] Media item Guns N' Roses - Welcome To The Jungle.flac doesn't exist in DB yet
2013-04-15 10:51:23,025 DEBUG [AudioExtractionStrategy] Extracting metadata of audio file: /share/MD0_DATA/Backup_Diego/Music/Guns N' Roses - Appetite for Destruction/Guns N' Roses - Welcome To The Jungle.flac
2013-04-15 10:51:23,429 DEBUG [LibraryManager] Metadata found via extractor EMBEDDED: AudioMetadata [album=Greatest Hits, title=Welcome To The Jungle, albumArtist=null, artist=Guns N' Roses, genre=Hard Rock, releaseYear=2004, trackNumber=1, container=FLAC, duration=271, bitrate=1006, channels=2, sampleFrequency=44100]
2013-04-15 10:51:23,464 DEBUG [AudioService] Adding music track into database: Welcome To The Jungle
2013-04-15 10:51:29,367 DEBUG [MusicTrackDAOImpl] Creating a new MusicTrack (title = Welcome To The Jungle)
2013-04-15 10:51:31,594 INFO  [LibraryAdditionsCheckerThread] Added file 'Guns N' Roses - Welcome To The Jungle.flac' (title: Welcome To The Jungle) to Library

2013-04-15 10:52:46,846 DEBUG [LibraryAdditionsCheckerThread] Found file 'Guns N' Roses - Welcome To The Jungle.flac', checking if it's already in the Library
2013-04-15 10:52:46,846 DEBUG [MediaItemDAOImpl] Checking if DB already contains media item Guns N' Roses - Welcome To The Jungle.flac
2013-04-15 10:52:46,846 DEBUG [MediaItemDAOImpl] Looking up a media item for file path: /share/MD0_DATA/Backup_Diego/Music/Guns N' Roses - Greatest Hits/Guns N' Roses - Welcome To The Jungle.flac, ignore case: false
2013-04-15 10:52:46,848 DEBUG [MediaItemDAOImpl] Media item Guns N' Roses - Welcome To The Jungle.flac already exists in DB
[/share/MD0_DATA/.qpkg/Serviio/config] #


In this example I get two entries of welcome to the jungle in the greatest hits album, and none in the appetite for destruction album
Is there any way to force it to show up in the correct dir ?


My second problem is that the DLNA server is stopped each time a library refresh is performed, which is kind of a nuisance since the 'streaming' aspect of Serviio seems the most important function IIRC.
It automatically comes up after a while, but if there was a stream being delivered, my renderers choke on it evidently.
Is this 'normal' behaviour ?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Apr 15, 2013 11:47 am

Re: Serviio symlink behaviour and DB update issue

Yes, it uses the absolute path to detect whether file is already in the DB. TBH, I'm reluctant to change this because it might break other things that users now use.

There is not much options to give higher priority to tasks in Java, but you could increase the auto scan wait period in the console.
<<

Alien8

Serviio newbie

Posts: 2

Joined: Mon Apr 15, 2013 9:02 am

Post Tue Apr 16, 2013 6:33 am

Re: Serviio symlink behaviour and DB update issue

thanks for the reply

So there seems no other way to get the links to appear in the right dir... bummer. I don't know if there is a way to 'add metadata' to a symlink.
Maybe provide the either the dir in which the link is found or the absolute path as an option to choose from in config ?

About the update issue, I've already resorted to an external script which monitors the directory and directs a DB refresh action to serviio. Normally once the library is made, not many changes are being done afterwards.

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 42 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.