Opened 18 years ago
Closed 15 years ago
Last modified 15 years ago
#645 closed patch (wontfix)
New program updating video database.
Reported by: | Owned by: | Anduin Withers | |
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | mythvideo | Version: | head |
Severity: | low | Keywords: | |
Cc: | Rob Smith | Ticket locked: | no |
Description
I've written a nice program that uses the new kernel notification events to update the video database automatically and in real-time.
It's available from: http://coderworld.net/project/view.php?pid=34
Something for /contrib?
Change History (13)
comment:1 Changed 18 years ago by
Component: | mythtv → mythvideo |
---|
comment:2 Changed 18 years ago by
comment:3 Changed 18 years ago by
Thanks for the feedback, I like your sugestions and I will try to add it to next release.
comment:4 Changed 18 years ago by
Milestone: | → 0.20 |
---|---|
Version: | → head |
This looks cool. Have you tested it for interactions with #601?
comment:5 Changed 18 years ago by
Haven't tested it but mine should work with removable media even without it.
comment:6 Changed 18 years ago by
Owner: | changed from Isaac Richards to Anduin Withers |
---|
comment:7 Changed 18 years ago by
This does indeed sound cool.
One option that springs to my mind immediately is limiting this to specific directories. For example, I have extremely static directories, that I would never want updated even if a file or two appeared in them. On the other hand, I map my mldonkey incoming folder into mythvideo's path via a symlink.
This script would rock for something like this. Right now, I just run a cron job every 5 minutes, but its a PITA. It certainly slows down things...
comment:8 Changed 18 years ago by
Milestone: | 0.20 → unknown |
---|
comment:9 Changed 16 years ago by
Cc: | Rob Smith added |
---|
comment:10 Changed 16 years ago by
For trunk (which will become 0.22), since Qt4 is being used, this can be implemented internally within MythTV using QFileSystemWatcher which is a wrapper around KQueue, Inotify and whatever Windows provides.
comment:11 Changed 15 years ago by
Status: | new → assigned |
---|
comment:12 Changed 15 years ago by
Resolution: | → wontfix |
---|---|
Status: | assigned → closed |
I was leaving this as a placeholder but have the feature on an actual list now.
the script works great.
Few suggestions for improvement :
It might even be better to have an oldvideometadata table in myth to see if a file has been added before and reuse that data if the file is added again (also usefull for automounting DVD's and CD's with videofiles). But that maybe outside the scope of this ticket. :-)