Re: [mythtv-users] Block Video Manager on Frontend?

2005-02-14 Thread Joseph A. Caputo
On Saturday 12 February 2005 0:52, TJ wrote:
 Well, just setup my frontend on OSX and what do you know? I 
 accidentally go into video manager and destroy my whole database b/c 
it 
 sets the place where the vid's are stored to my mac. So after a few 
 hours of getting my backups, bypassing the mysql password I forgot 
etc. 
 I finally got it all back. But my question is: Is there any way to 
 disable video manager on a frontend so as not to have this happen 
 again? Thanks.

Just had the same thing happen to me, running on a remote frontend which 
temporarily lost its NFS mount the the mythvideo directory.  At the 
very least, I think maybe the code should check for the special case 
where *no* videos are found, but the database contains videos, which is 
the usual case if the directory is not available.

In the mean time, you can easily disable the video manager on a 
per-frontend (or even per-user) basis.  Just copy 
install-prefix/share/mythtv/util_menu.xml to 
${HOME}/.mythtv/util_menu.xml, and edit the copied file to remove the 
entry for the Video Manager.

-JAC
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] Block Video Manager on Frontend?

2005-02-14 Thread Steven
Joseph A. Caputo schreef:
On Saturday 12 February 2005 0:52, TJ wrote:
 

Well, just setup my frontend on OSX and what do you know? I 
accidentally go into video manager and destroy my whole database b/c 
   

it 
 

sets the place where the vid's are stored to my mac. So after a few 
hours of getting my backups, bypassing the mysql password I forgot 
   

etc. 
 

I finally got it all back. But my question is: Is there any way to 
disable video manager on a frontend so as not to have this happen 
again? Thanks.
   

Just had the same thing happen to me, running on a remote frontend which 
temporarily lost its NFS mount the the mythvideo directory.  At the 
very least, I think maybe the code should check for the special case 
where *no* videos are found, but the database contains videos, which is 
the usual case if the directory is not available.

In the mean time, you can easily disable the video manager on a 
per-frontend (or even per-user) basis.  Just copy 
install-prefix/share/mythtv/util_menu.xml to 
${HOME}/.mythtv/util_menu.xml, and edit the copied file to remove the 
entry for the Video Manager.

-JAC
I was thinking about a system where mythvideo would create xml files 
with the same name/in the same folder as the video file to also store 
the metadata in.
Videomanager would scan all files in the videofolder and :
- if the file isn't in the database check for the xml file and if it 
exists put those fields in the database.
- if the file is in the database update/create the xml file

This would not only help when you accidently run the videomanager on an 
empty/unmounted folder but would also be usefull if you occasionally 
mount usb-disks or even dvd's/cd's with videofiles.
Also reordening you files in your tree would not  mean you have to enter 
metadata again. (as long as we don't use the filename field from the xml 
file)

Don't think this would be difficult to implement (I can think of a bash 
script that does about this in 10 lines :-). If only I knew how to code 
C++ 

Steven
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users