Opened 20 years ago
Closed 17 years ago
Last modified 17 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 by , 20 years ago
| Component: | mythtv → mythvideo |
|---|
comment:2 by , 20 years ago
comment:3 by , 20 years ago
Thanks for the feedback, I like your sugestions and I will try to add it to next release.
comment:4 by , 20 years ago
| Milestone: | → 0.20 |
|---|---|
| Version: | → head |
This looks cool. Have you tested it for interactions with #601?
comment:5 by , 20 years ago
Haven't tested it but mine should work with removable media even without it.
comment:6 by , 20 years ago
| Owner: | changed from to |
|---|
comment:7 by , 19 years ago
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 by , 19 years ago
| Milestone: | 0.20 → unknown |
|---|
comment:9 by , 17 years ago
| Cc: | added |
|---|
comment:10 by , 17 years ago
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 by , 17 years ago
| Status: | new → assigned |
|---|
comment:12 by , 17 years ago
| 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. :-)