
spikeygg at gmail
Nov 27, 2009, 10:58 PM
Post #4 of 5
(541 views)
Permalink
|
|
Re: Does MythWeb assume your Poster directory is in your home directory?
[In reply to]
|
|
On Fri, Nov 27, 2009 at 10:44 PM, Michael T. Dean <mtdean [at] thirdcontact>wrote: > This is just plain broken. > > 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. > > 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. > > 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. > > 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. > > Oh, wait... > > 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. > > Mike > > <blush> 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. 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: $this->cover_url = 'data/video_covers/'.substr($this->cover_file, strlen(setting('VideoArtworkDir', hostname))); Then I looked up my "VideoArtworkDir" and found that it needed to be changed... so I changed it. -Greg
|