Opened 16 years ago

Closed 12 years ago

Last modified 12 years ago

#645 closed patch (wontfix)

New program updating video database.

Reported by: tc_@… Owned by: Anduin Withers
Priority: minor Milestone: unknown
Component: mythvideo Version: head
Severity: low Keywords:
Cc: Rob Smith Ticket locked: no


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:

Something for /contrib?

Change History (13)

comment:1 Changed 15 years ago by cpinkham

Component: mythtvmythvideo

comment:2 Changed 15 years ago by steven

the script works great.

Few suggestions for improvement :

  • add an option to prevent it from deleting database records automaticly. Now if you symlink in a usb drive in your video folder and unmount it all the files get deleted from your database.

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

  • add a call to the imdb perl script add that data and cover when only one result is retreived (or even check if there is an imdb nr. between [] in the filename)

comment:3 Changed 15 years ago by tc_@…

Thanks for the feedback, I like your sugestions and I will try to add it to next release.

comment:4 Changed 15 years ago by danielk

Milestone: 0.20
Version: head

This looks cool. Have you tested it for interactions with #601?

comment:5 Changed 15 years ago by tc_@…

Haven't tested it but mine should work with removable media even without it.

comment:6 Changed 15 years ago by Anduin Withers

Owner: changed from Isaac Richards to Anduin Withers

comment:7 Changed 15 years ago by mythtv.cvs@…

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 15 years ago by Anduin Withers

Milestone: 0.20unknown

comment:9 Changed 13 years ago by Rob Smith

Cc: Rob Smith added

comment:10 Changed 13 years ago by cardoe@…

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 12 years ago by Dibblah

Status: newassigned

comment:12 Changed 12 years ago by Anduin Withers

Resolution: wontfix
Status: assignedclosed

I was leaving this as a placeholder but have the feature on an actual list now.

comment:13 Changed 12 years ago by anonymous

Anyone have a copy of the old patch? Source URL is 404.

Note: See TracTickets for help on using tickets.