This is already implemented. In Library Settings, scroll down and you will find Scan Frequency, where you can select Never, Daily and weekly. Also, everytime you make a change in your shares (reload metadata for example), the Library is updated, all shares are scanned. Also, you can mannually scan a single selected share by holding down Select and selecting scan for changes, this feature is usefull if you know what share has changed and you don’t want all shares to be scanned, meaning, it is faster.
Thanks; when you say, “Also, everytime you make a change in your shares” do you mean that if I add a new file (movie) to the share it is updated/scanned? I don’t think that is the case…
It looks similar to a cron structure, “hour 3” being 2am with an interval of “86400” (the number of seconds in 24 hours). doubt I can throw a * in the “hour” key and cut the seconds down to 43200 to make it every 12 hours but will see… @James?
I just want manual scan, and “never” is not enough in scan frequency, because the player start a full scan every time I edit a single file in any share (reload metadata, etc).
I added two options: Hourly and Twice Daily. I can only verify the Hourly option at this point but will update the post if the “Twice” option works.
Ftp’d and Backed up: AutoIndexingOptions.plist(Appliances/Media.frappliance)and Localizable.strings(Appliances/Media.frappliance/Enlish.lproj)
In AutoIndexing, copy and pasted the “Daily” option:
<dict>
<key>DescriptionKey</key>
<string>liAutoupdateDaily</string>
<key>FireDateRestriction</key>
<dict>
<key>hour</key>
<integer>3</integer>
<key>minute</key>
<integer>0</integer>
</dict>
<key>IntervalSec</key>
<integer>86400</integer>
<key>ModeID</key>
<integer>1</integer>
</dict>
I pasted this above its current location.
For Hourly,
I edited:
<string>liAutoupdateDaily</string>
to be:
<string>liAutoupdateHourly</string>
I removed the:
<key>hour</key>
<integer>3</integer>
leaving just the:
<key>minute</key>
<integer>0</integer>
I changed the IntervalSec from:
<integer>86400</integer>
to:
<integer>3600</integer> (60*60)
I left the:
<key>ModeID</key>
<integer>1</integer> to 1 for Hourly and changed it to 3 for the Daily (as “Twice” became 2 representing the second option)
In the Localizable.strings file I copy and pasted line 280 and 281:
<key>liAutoupdateDaily</key>
<string>Daily</string>
and edited it to read:
<key>liAutoupdateHourly</key>
<string>Hourly</string>
I FTP’d 'em back, relaunched AppleTV from Maintenance and viola. As always I make no claim to the consequences of these changes…
I did generally the same thing for “Twice Daily” changing the <integer> to 43200 (for every 12 hours). My assumption is that like a cron, Media will trigger every “0” minute (top of the hour) and then use the <integer> value to compare to the last scan time. If it is >= it’ll scan… We’ll see.
Let me know if you have any questions,
Mike