Re: [Tracker] =?utf-8?q?How_to_get_newly_added_audio_files=3F?=



On Mon, 28 Mar 2011 13:52:24 +0900, simon hong wrote:
Dear Tracker folks,

I want to write small  program by using tracker.
(I want to use tracker because tracker can add new files automatically.)

That program loops infinitely, and gets newly added audio file list
from tracker.

At first loop, it gets all audio files from tracker.
And next loop (maybe some hours later), it fetches new files (if new
audio files are created or copied).

How can I get only new file list?

Any ideas (timestamp ?) will be appreciated.

Thank you.
Simon

Hello Simon,

I guess you can use the tracker:modified or tracker:added properties here (I'd recommend tracker:modified, but am not sure how it's defined for newly
saved resources).
Note that instead of looping, you could also use the GraphUpdated signal to
get updates in real time.

Cheers

Adrien



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]