FAQ  •  Register  •  Login

Symlink support

<<

cappie

Serviio newbie

Posts: 2

Joined: Mon Oct 11, 2010 7:15 pm

Post Mon Oct 11, 2010 7:24 pm

Symlink support

First, thanks for a great piece of software. I run serviio on a linux box serving Mythtv recorded video to a Sony Bravia. Generally it works great but I have one nagging problem. It is very difficult to get the myth recordings organized in a usable way thru the serviio service.

Mythtv records the videos into a directory with unhelpful names with a flat structure. I can run a program to create symlinks to these files with better names and organization, but this has two problems.

1) Serviio seems to require that the linked to file be in the search path for the library files.
So if the mythtv recorded data is here: /data/tv I have to put my symlink data here: /data/tv/mythlinks. For the most part this is okay as serviio seems to think the linked to files are already added so doesn't add the unhelpful names, just the more nicely named symlinks. However there is no directory structure. All the files get added in a great jumble in one directory.

2) When the meta data is refreshed Serviio seems to get confused about that it has already added unchanged files and adds them again. Eventually you end up with hundreds of duplicate which makes it difficult to find anything. I refresh infrequently and then periodically delete the directory and add it again to clean it out.

It seems like Serviio gets confused by the links, sometimes treating them as links and other times treating them as the linked-to file.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Oct 24, 2010 11:21 am

Re: Symlink support

Can you provide a detailed log of when the library update runs? Laso some real world file path examples and what you can see for those on the TV.
<<

cappie

Serviio newbie

Posts: 2

Joined: Mon Oct 11, 2010 7:15 pm

Post Sat Oct 30, 2010 3:18 am

Re: Symlink support

This is the setup I have currently that at least works.
All the video files are in on directory (which is what I've added as a "Library" folder)
/storage/tv
This is an example file from that directory:
/storage/tv/1091_20101009093000.mpg

I create a subdirectory:
/storage/tv/mythlinks

which contains directory and symlinks to files in /storage/tv
this is an example subdirectory:
/storage/tv/mythlinks/Thomas_&_Friends
And this is the actual symlink:
/storage/tv/mythlinks/Thomas_&_Friends/Thomas_&_Friends_2010-10-09.mpg -> /storage/tv/1091_20101009093000.mpg

This is what shows up in the logs in this arrangement:
2010-10-28 13:59:28,394 INFO [LibraryAdditionsCheckerThread] Added file '1091_20101025190000.mpg' to Library
2010-10-28 13:59:28,728 INFO [LibraryAdditionsCheckerThread] Added file '1091_20101027110000.mpg' to Library
2010-10-28 13:59:29,054 INFO [LibraryAdditionsCheckerThread] Added file 'Sid_the_Science_Kid_2010-10-26.mpg' to Library
2010-10-28 13:59:29,486 INFO [LibraryAdditionsCheckerThread] Added file 'Sid_the_Science_Kid_2010-10-27.mpg' to Library
2010-10-28 13:59:29,659 INFO [LibraryAdditionsCheckerThread] Added file 'Sid_the_Science_Kid_2010-10-28.mpg' to Library
...
2010-10-28 14:01:22,340 INFO [LibraryUpdatesCheckerThread] Removing 'Sid_the_Science_Kid_2010-10-16' from Library
2010-10-28 14:01:22,888 INFO [LibraryUpdatesCheckerThread] Removing 'Sid_the_Science_Kid_2010-10-18' from Library
2010-10-28 14:01:23,371 INFO [LibraryUpdatesCheckerThread] Removing 'Sid_the_Science_Kid_2010-10-17' from Library
2010-10-28 14:01:24,035 INFO [LibraryUpdatesCheckerThread] Removing 'The_Office_2010-09-30' from Library
2010-10-28 14:01:24,797 INFO [LibraryUpdatesCheckerThread] Removing 'CBS_News_Sunday_Morning_2010-10-03' from Library

What shows up in on the TV when browsing the "Folders" container is just a "tv" entry that contains a flat listing of all the files. It doesn't preserve the directory structure at all (in my example there is no "Thomas_&_Friends" sub folder in the "tv" folder. And then every time I "Force refresh" it will add another entry for every symlink in /storage/tv/mythlinks so that if I refresh the content a few times I'll have 100's of duplicate entries.

What doesn't work is if I just add a library folder like this:
/storage/tv/mythlinks

If I do that this is what shows up in the logs:
2010-10-29 20:18:19,458 WARN [LibraryAdditionsCheckerThread] Cannot read metadata for file Glee_2010-09-28.mpg. Message: The provided file path /storage/tv/1222_20100928200000.mpg doesn't belong to root /storage/tv/mythlinks
java.lang.RuntimeException: The provided file path /storage/tv/1222_20100928200000.mpg doesn't belong to root /storage/tv/mythlinks
at org.serviio.util.FileUtils.getRelativeDirectory(FileUtils.java:177)
at org.serviio.library.service.FolderService.createOrReadFolder(FolderService.java:53)
at org.serviio.library.service.VideoService.addVideoToLibrary(VideoService.java:62)
at org.serviio.library.metadata.LibraryAdditionsCheckerThread.searchForNewFiles(LibraryAdditionsCheckerThread.java:160)
at org.serviio.library.metadata.LibraryAdditionsCheckerThread.searchForNewFiles(LibraryAdditionsCheckerThread.java:130)
at org.serviio.library.metadata.LibraryAdditionsCheckerThread.run(LibraryAdditionsCheckerThread.java:76)
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Oct 31, 2010 11:29 am

Re: Symlink support

<<

jtl

Serviio newbie

Posts: 11

Joined: Tue Dec 21, 2010 6:01 pm

Post Tue Dec 21, 2010 6:09 pm

Re: Symlink support

I pretty much need this to use Serviio (my media is in several directories which are different volumes and symlinked from the master volume due to space constraints). The top level directory contains a bunch of other stuff I don't want Serviio to index.

Any ETA on version 0.5 or maybe a beta version I could try?

Thanks for the great software!
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Dec 21, 2010 8:17 pm

Re: Symlink support

apply for the beta
<<

jtl

Serviio newbie

Posts: 11

Joined: Tue Dec 21, 2010 6:01 pm

Post Sun Dec 26, 2010 10:24 pm

Re: Symlink support

FYI the symlink support in the current beta (0.5-beta4) worked flawlessly for me.

Return to Feature requests

Who is online

Users browsing this forum: No registered users and 5 guests

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