Bug 9894 - Better control over scheduled rescans
: Better control over scheduled rescans
Status: RESOLVED WONTFIX
Product: Logitech Media Server
Classification: Unclassified
Component: Plugins
: 7.4.0
: PC Windows XP
: P3 enhancement with 3 votes (vote)
: Future
Assigned To: Andy Grundman
: patch_waiting
Depends on: 4274
Blocks:
  Show dependency treegraph
 
Reported: 2008-11-03 10:17 UTC by Barry Caruth
Modified: 2012-03-05 09:28 UTC (History)
3 users (show)

See Also:
Category: Feature


Attachments
Proposed patched Plugin.pm (11.23 KB, application/octet-stream)
2008-11-27 09:15 UTC, Barry Caruth
Details
Proposed patched Settings.pm (1.53 KB, application/octet-stream)
2008-11-27 09:16 UTC, Barry Caruth
Details
Proposed patched strings.txt (7.97 KB, text/plain)
2008-11-27 09:17 UTC, Barry Caruth
Details
Proposed patched basic.html (1.78 KB, text/html)
2008-11-27 09:18 UTC, Barry Caruth
Details
Proposed patched install.xml (728 bytes, text/xml)
2008-11-27 09:19 UTC, Barry Caruth
Details
Updated plugin.pm (11.23 KB, application/octet-stream)
2008-11-28 03:33 UTC, Barry Caruth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Barry Caruth 2008-11-03 10:17:43 UTC
It would be useful to have better control over the timing of scheduled rescans in the 'Rescan Music Library' plugin.

For example, I have my system set to rescan at a fixed time of day (10:00 hrs) but, at weekends when I'm at home, I don't want that rescan to happen whilst I'm listening to music.

So a more crontab-like scheduling capability where I can specify days of week as well as times of day would be a great enhancement.
Comment 1 James Richardson 2008-11-03 10:49:47 UTC
Brandon: would this be yours to address in new schema? or would it fall back to the plug-in designer.
Comment 2 Jim McAtee 2008-11-03 12:40:45 UTC
See bug 4274.  There may be some other enhancement requests along these same lines.

But I have to ask: Why not schedule your rescan for the middle of the night instead of at 10AM?  This is what I do on my system.  Not much chance that I'll be listening to music at 5:00AM.  And if you schedule a non-clearing scan, it doesn't really matter if _are_ listening to music during the scheduled rescan - the system should function just fine while scanning.
Comment 3 Mike Walsh 2008-11-03 12:44:51 UTC
i take it he's at work at 10am.

but i think the intent here is worthy.  

personally, i would like to automate a full clear and rescan once a week.
Comment 4 Barry Caruth 2008-11-03 12:47:01 UTC
> Why not schedule your rescan for the middle of the night instead of at 10AM?

Because I don't want to waste resources by leaving my PC on every night.
Comment 5 Mark Miksis 2008-11-03 13:34:26 UTC
An option to "skip rescan if playing" might also help.
Comment 6 Mike Walsh 2008-11-03 13:37:26 UTC
i set my computer to hibernate, but in the bios i can wake it up once a week (or daily, etc) as per a schedule.

so i could bios wake up a few minutes prior to the SC rescan, and it saves elec.
Comment 7 Jim McAtee 2008-11-03 14:10:50 UTC
(In reply to comment #4)
> > Why not schedule your rescan for the middle of the night instead of at 10AM?
> 
> Because I don't want to waste resources by leaving my PC on every night.

But you have it running on weekdays while you're at work?  How is that different?
Comment 8 Sue Chastain 2008-11-03 14:17:41 UTC
>>Why not schedule your rescan for the middle of the night instead of at 10AM? <<

If you run SC on a server it can be difficult to find a time that doesn't conflict with other things the server might be doing at night. I don't want it scheduled for the same time my server is doing automated backups, for instance. If you live in a house where there are both night owls and early risers, fitting it in to the time when all are sleeping can be a challenge, so more variety in scheduling options is desirable.
Comment 9 KDF 2008-11-03 14:30:17 UTC
wouldn't task scheduler (or cron) be capable of calling a scanner.exe (or scanner.pl) on any desired schedule?
Comment 10 Barry Caruth 2008-11-03 14:35:45 UTC
(In reply to comment #7)
> (In reply to comment #4)
> > > Why not schedule your rescan for the middle of the night instead of at 10AM?
> > 
> > Because I don't want to waste resources by leaving my PC on every night.
> 
> But you have it running on weekdays while you're at work?  How is that
> different?
> 

I'm using the PC for other purposes during the day. I don't need it on at night.
Comment 11 Barry Caruth 2008-11-27 09:15:42 UTC
Created attachment 4355 [details]
Proposed patched Plugin.pm

This is a proposed new plugin.pm which adds basic day selection to the rescan plugin.
Comment 12 Barry Caruth 2008-11-27 09:16:37 UTC
Created attachment 4356 [details]
Proposed patched Settings.pm

This is a proposed new settings.pm which adds basic day selection to the rescan plugin.
Comment 13 Barry Caruth 2008-11-27 09:17:59 UTC
Created attachment 4357 [details]
Proposed patched strings.txt

This is a proposed patched strings.txt to add basic day selection to the rescan plugin
Comment 14 Barry Caruth 2008-11-27 09:18:50 UTC
Created attachment 4358 [details]
Proposed patched basic.html

Proposed patched basic,html to add basic day selection to rescan plugin
Comment 15 Barry Caruth 2008-11-27 09:19:46 UTC
Created attachment 4359 [details]
Proposed patched install.xml

Proposed patched install.xml to add basic day selection to rescan plugin
Comment 16 Barry Caruth 2008-11-27 09:21:22 UTC
I've attached 5 files to update this plugin which add a basic day selection to the rescan plugin. I don't have CVS so I can't upload them as patch files.

I'm no perl expert but hopefully they will be acceptable for consideration in a future release.
Comment 17 Barry Caruth 2008-11-28 03:33:14 UTC
Created attachment 4362 [details]
Updated plugin.pm

There was a schoolboy error in my earlier submission - this version fixes it.
Comment 18 Andy Grundman 2010-07-27 05:21:39 UTC
Can you comment on how this bug is affected by the upcoming auto-rescan feature in 7.6?
Comment 19 Alan Young 2012-03-05 09:28:35 UTC
It is considered that the additional complexity in the UI is not warranted for these cases.