Effect Scan Frequency

Is there anyway to adjust the frequency at which the library is scanned for new content? Or should this be a feature request?

If a feature request how 'bout:

Scan for changes every: (drop down menu)1-12 (drop down menu)hours, days, weeks

Even better would be for it to be a “watch folder” and detect changes but I know I’m reaching.

 

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…

No, I meant if you make a change like reload metadata or something like that. If you add a movie to a folder you have to scan for changes mannually.

I think I found it:

Appliances/Media.frappliance/AutoIndexingOptions.plist

<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>

 

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? :slight_smile:

Miket.
Did that work?

deano72- not as of yet… I can’t put a wild card in for “hour”, the DTD is at: http://www.apple.com/DTDs/PropertyList-1.0.dtd - if anyone has any ideas, lemme know.

I’m trying to remove that section alltogether. will let you know if I have success

Yup; it worked… I will do some clean up and post the steps.  I think I will start with “Hourly”

 

Are you able to stop all scan?

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).

Nope, sorry I haven’t had a need for that.

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.

  1. Ftp’d and Backed up: AutoIndexingOptions.plist (Appliances/Media.frappliance)and Localizable.strings (Appliances/Media.frappliance/Enlish.lproj)
  2. 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

Thanks for this!

Just to let you know Infuse’s directory changed to: /private/var/stash/Applications/AppleTV.app/Appliances/[b]Infuse.frappliance[/b]