FAQ  •  Register  •  Login

Auto Library update request

<<

smidgey

Serviio newbie

Posts: 8

Joined: Sat Feb 26, 2011 1:38 am

Post Sat Mar 10, 2012 10:59 am

Auto Library update request

G'day,

I'm not sure if Serviio already does this or not, but I've been noticing that if I am playing a video on my WDTV and Serviio starts looking for new files it churns the drive and causes stuttering in my playback. What I am requesting is the ability to either limit the rate at which Serviio hunts for updates, or to update only when not streaming media. In the interim I've disabled automatic updating, but I typically rely on the feature as I have programmes appearing on my drive 'automagically'.

Regards,

Smidge.
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Sat Mar 10, 2012 11:25 am

Re: Auto Library update request

You could turn off the check for updates to files so that serviio only looks for new files (Library and untick seach for updates to currently shared files). In the future once Java 7 is used, the OS will notify serviio when files have been added so the process should be much less intensive.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

smidgey

Serviio newbie

Posts: 8

Joined: Sat Feb 26, 2011 1:38 am

Post Sat Mar 17, 2012 9:16 am

Re: Auto Library update request

Cheers for the response,

I've been running with all library updating turned off for a week now and it was definitely the culprit causing my video streams to stutter. Do you know if the Java 7 API will notify about all file system changes (i.e. creation, deletion, rename etc)?

For now I'll just remember to press the force refresh button every so often, and Serviio continues to be absolutely rock solid. Cheers for the advice.
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Sat Mar 17, 2012 10:31 am

Re: Auto Library update request

Yes, but it doesn't work for network drives so zip is writing a custom implementation somewhere between what we have now and what java 7 supports so that it will be the same accross all types of folders.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

NotAgain

Serviio newbie

Posts: 3

Joined: Sun Mar 18, 2012 10:25 am

Post Sun Mar 18, 2012 10:29 am

Re: Auto Library update request

Will simply using Java7 enable this, or is there still server side work to be done?

(If it makes any difference, I'm using the OpenJDK version of Java7 on Ubuntu 11.10 and Serviio 0.6.2)
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Sun Mar 18, 2012 10:45 am

Re: Auto Library update request

Using java 7 wouldn't automatically enable it, but as I said, because it only works for local drives, and not network drives, it won't be used and something in between what we have now and what java 7 supports for local drives will be used. This is so that is is consistant accross local and network folders. At least, that is the current plan as far as I know.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

NotAgain

Serviio newbie

Posts: 3

Joined: Sun Mar 18, 2012 10:25 am

Post Sun Mar 18, 2012 11:12 am

Re: Auto Library update request

Any idea in timescales? I'm trying to work out if it's worth sticking with my current solution until serviio supports file monitoring, or if I need to look elsewhere (I have about 40K files across nearly 1K directories so timed scans put too much of a load on the server and it's disks).
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Sun Mar 18, 2012 11:19 am

Re: Auto Library update request

Its planned for Serviio 1.0, zip will comment on the exact timeframe, but something like a month for the first beta+/-a week or two, and then a few months of testing before the final release. Once the beta is out, you would be more than welcome to join the beta testers group and test out the performance improvements made.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

NotAgain

Serviio newbie

Posts: 3

Joined: Sun Mar 18, 2012 10:25 am

Post Sun Mar 18, 2012 4:35 pm

Re: Auto Library update request

Thanks. I'll keep an eye on the RSS feed for the arrival of 1.0 and go play with some other options in the meantime.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Mar 18, 2012 6:30 pm

Re: Auto Library update request

The new file monitoring is not planned for 1.0 at this time.
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Sun Mar 18, 2012 7:10 pm

Re: Auto Library update request

Ok sorry, my mistake.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

smidgey

Serviio newbie

Posts: 8

Joined: Sat Feb 26, 2011 1:38 am

Post Sun Apr 29, 2012 7:03 am

Re: Auto Library update request

zip wrote:The new file monitoring is not planned for 1.0 at this time.



In that case a hack to limit the rate at which Serviio scans would be greatly appreciated. If I had access to the source I'd have patched it myself as I use Serviio daily.

Regards,

Smidge.
<<

smidgey

Serviio newbie

Posts: 8

Joined: Sat Feb 26, 2011 1:38 am

Post Sun Apr 29, 2012 7:50 am

Re: Auto Library update request

smidgey wrote:
zip wrote:The new file monitoring is not planned for 1.0 at this time.



In that case a hack to limit the rate at which Serviio scans would be greatly appreciated. If I had access to the source I'd have patched it myself as I use Serviio daily.

Regards,

Smidge.


Never mind, I decompiled LibraryAdditionsCheckerThread.class, inserted ThreadUtils.currentThreadSleep(150L); into the inner loop of the searchForNewFiles() function, re-compiled, and set sail for home theatre nirvana.

Return to Feature requests

Who is online

Users browsing this forum: Google [Bot] and 34 guests

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