<div class="gmail_quote">On Fri, Nov 27, 2009 at 10:44 PM, Michael T. Dean <span dir="ltr"><<a href="mailto:mtdean@thirdcontact.com">mtdean@thirdcontact.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">This is just plain broken.<br><br>I /really/ think someone should take the time to write a user interface that allows users to change settings without having to directly edit the database. After all, if you expect users to directly edit the database, it would be /extremely/ easy for someone to forget to edit VideoArtworkDir--assuming they know what it means--or to just not know what it means and, therefore, not realize they need to edit it.<br>
<br>I propose someone creates some sort of settings application. Then we could create some sort of text edit setting widget that has a label, "Directory that holds movie posters," and some help text, "This directory must exist, and the user running MythVideo needs to have read/write permission to the directory," and we could give a a default value of $HOME/.mythtv/MythVideo . Note how the description/help text even allows us to provide /more/ information than could be conveyed by a short setting name, like "VideoArtworkDir," and more than even a good label, like "Directory that holds movie posters." For example, the one I suggest tells the user that the directory needs to exist and that read /and/ write permissions are required.<br>
<br>Then, we could create a means for a user to enter this settings application--something like Utilities/Setup|Setup|Media Settings|Video Settings|General. Then, people who want to configure their MythVideo video settings would know exactly where to go and would see all the relevant settings in that location.<br>
<br>Making the users directly edit settings in the database is just plain broken. WAF--. It's just plain lazy for the devs to not provide a settings application.<br><br>Oh, wait...<br><br>Moral of the story: don't edit the settings directly in the database. Instead, go to the appropriate area of settings, where you'll find all relevant settings.<br>
<br>Mike
<div>
<div></div>
<div class="h5"> </div></div></blockquote>
<div> </div>
<div><blush></div>
<div> </div>
<div>I know, it was stupid. I didn't want to interrupt my better-half watching/using the TV and I was trying to do everything ... incognito, over SSH. Funny story to prove your sarcastic point: while trying to hack the changes in I forgot to make my mysql UPDATE statement very specific and ended up trashing all the settings entries for my database! Luckily, I had just created a backup minutes before and did a safe restore of it but it scared the crap out of me.</div>
<div> </div>
<div>Anyway, I probably would have changed it in the menu system if I had known it was the same thing as what I needed. I knew mythweb was truncating the actual filename and appending stuff to create the url. I found "VideoArtworkDir" by looking through Video.php in the mythweb plugin directory, this was the important line:</div>
<div> $this->cover_url = 'data/video_covers/'.substr($this->cover_file, strlen(setting('VideoArtworkDir', hostname)));<br>Then I looked up my "VideoArtworkDir" and found that it needed to be changed... so I changed it.</div>
<div> </div>
<div>-Greg</div></div>