Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

Does MythWeb assume your Poster directory is in your home directory?

 

 

MythTV users RSS feed   Index | Next | Previous | View Threaded


spikeygg at gmail

Nov 27, 2009, 6:35 PM

Post #1 of 5 (588 views)
Permalink
Does MythWeb assume your Poster directory is in your home directory?

I'm getting deep into coverfiles and movie posters with all my mythvideo
content. I have recently added a new frontend and in order to make the
posters easily available to the new machine I relocated all the mythvideo
content to a directory that is not in ~/.mythtv/MythVideo/. When I
relocated everything myth worked as expected but MythWeb now does not show
any screenshots/coverfiles and the urls for them is really weird, stuff
like:

"The 'Burbs" poster link should be:
http://mythbox/mythweb/data/video_covers/The_Burbs-1989.jpg but it is:
http://mythbox/mythweb/data/video_covers/bs-1989.jpg

"Ace Ventura: Pet Detective" poster link should be:
http://mythbox/mythweb/data/video_covers/Ace_Ventura_Pet_Detective-1994.jpgbut
it is:
http://mythbox/mythweb/data/video_covers/tura_Pet_Detective-1994.jpg

It looks like it's chopping the same amount of characters from the beginning
of the file location but I don't know how to fix it. I'm thinking this is
in some php file somewhere. Little help?

Thanks,
-Greg


spikeygg at gmail

Nov 27, 2009, 6:55 PM

Post #2 of 5 (553 views)
Permalink
Re: Does MythWeb assume your Poster directory is in your home directory? [In reply to]

On Fri, Nov 27, 2009 at 7:35 PM, Greg Grotsky <spikeygg [at] gmail> wrote:

> I'm getting deep into coverfiles and movie posters with all my mythvideo
> content. I have recently added a new frontend and in order to make the
> posters easily available to the new machine I relocated all the mythvideo
> content to a directory that is not in ~/.mythtv/MythVideo/. When I
> relocated everything myth worked as expected but MythWeb now does not show
> any screenshots/coverfiles and the urls for them is really weird, stuff
> like:
>
> "The 'Burbs" poster link should be:
> http://mythbox/mythweb/data/video_covers/The_Burbs-1989.jpg but it is:
> http://mythbox/mythweb/data/video_covers/bs-1989.jpg
>
> "Ace Ventura: Pet Detective" poster link should be:
> http://mythbox/mythweb/data/video_covers/Ace_Ventura_Pet_Detective-1994.jpgbut it is:
> http://mythbox/mythweb/data/video_covers/tura_Pet_Detective-1994.jpg
>
> It looks like it's chopping the same amount of characters from the
> beginning of the file location but I don't know how to fix it. I'm thinking
> this is in some php file somewhere. Little help?
>
> Thanks,
> -Greg
>


Nevermind, I figured it out. I forgot to update "VideoArtworkDir" in the
'settings' table from mythconverg...

got it updated and now all is well again!


mtdean at thirdcontact

Nov 27, 2009, 9:44 PM

Post #3 of 5 (551 views)
Permalink
Re: Does MythWeb assume your Poster directory is in your home directory? [In reply to]

On 11/27/2009 09:55 PM, Greg Grotsky wrote:
> On Fri, Nov 27, 2009 at 7:35 PM, Greg Grotsky wrote:
>
>> I'm getting deep into coverfiles and movie posters with all my mythvideo
>> content. I have recently added a new frontend and in order to make the
>> posters easily available to the new machine I relocated all the mythvideo
>> content to a directory that is not in ~/.mythtv/MythVideo/. When I
>> relocated everything myth worked as expected but MythWeb now does not show
>> any screenshots/coverfiles and the urls for them is really weird, stuff
>> like:
>>
>> "The 'Burbs" poster link should be:
>> http://mythbox/mythweb/data/video_covers/The_Burbs-1989.jpg but it is:
>> http://mythbox/mythweb/data/video_covers/bs-1989.jpg
>>
>> "Ace Ventura: Pet Detective" poster link should be:
>> http://mythbox/mythweb/data/video_covers/Ace_Ventura_Pet_Detective-1994.jpgbut it is:
>> http://mythbox/mythweb/data/video_covers/tura_Pet_Detective-1994.jpg
>>
>> It looks like it's chopping the same amount of characters from the
>> beginning of the file location but I don't know how to fix it. I'm thinking
>> this is in some php file somewhere. Little help?
> Nevermind, I figured it out. I forgot to update "VideoArtworkDir" in the
> 'settings' table from mythconverg...
>
> got it updated and now all is well again!

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
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


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


seven at seven

Nov 28, 2009, 3:01 AM

Post #5 of 5 (533 views)
Permalink
Re: Does MythWeb assume your Poster directory is in your home directory? [In reply to]

Some what off topic but does mythweb support Poster storage groups? and
also does JAMU?

Cheers,

Anthony


_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.