Mailing List Archive

mythgame and the db...
Hi guys,

I don't know how many other people on the list use mythgame, but I noticed
an oddity when I first tried it. It only updates the db at most once, until
you manually go into mysql and blow away the db contents.

I hacked together a quick fix for this with a mythgamefilldatabase app that
blows the db away and repopulates it. I suppose this would make more sense
since someone can just update the db when they know they've added some stuff
to their game directory. I know I am continually adding things to my game
directory as I acquire new memories of my misspent youth in the 80's... ;)

Similarly to mythfilldatabase, this can possibly be tossed in a cron job.
However, when someone adds something new to the directory, they'd probably
want to get the list updated right away. In the end, I don't think a cron
job would make much sense.

So to get to the point, I'd like to know if anyone else would agree that
creating mythgamefilldatabase would be desired behavior for mythgame.
Issac, what do *you* think about this?

Cheers,
Chris
Re: mythgame and the db... [ In reply to ]
I have been thinking about a similar problem for the mp3 part of the
program for mp3's not added by mythmusic.
I was thinking of using either find or locate on startup to see if the
number of records was different to the number of files and if it was re
populate the database
On Sun, Nov 24, 2002 at 02:47:06PM -0500, Chris Liscio wrote:
> Hi guys,
>
> I don't know how many other people on the list use mythgame, but I noticed
> an oddity when I first tried it. It only updates the db at most once, until
> you manually go into mysql and blow away the db contents.
>
> I hacked together a quick fix for this with a mythgamefilldatabase app that
> blows the db away and repopulates it. I suppose this would make more sense
> since someone can just update the db when they know they've added some stuff
> to their game directory. I know I am continually adding things to my game
> directory as I acquire new memories of my misspent youth in the 80's... ;)
>
> Similarly to mythfilldatabase, this can possibly be tossed in a cron job.
> However, when someone adds something new to the directory, they'd probably
> want to get the list updated right away. In the end, I don't think a cron
> job would make much sense.
>
> So to get to the point, I'd like to know if anyone else would agree that
> creating mythgamefilldatabase would be desired behavior for mythgame.
> Issac, what do *you* think about this?
>
> Cheers,
> Chris
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev@snowman.net
> http://www.snowman.net/mailman/listinfo/mythtv-dev
Re: mythgame and the db... [ In reply to ]
Pressing "e" over myth game and choosing rescan doesn't work for you?

Mike

On Sun, 24 Nov 2002 14:47:06 -0500, "Chris Liscio" <clliscio@uwaterloo.ca>
wrote :

> Hi guys,
>
> I don't know how many other people on the list use mythgame, but I noticed
> an oddity when I first tried it. It only updates the db at most once,
until
> you manually go into mysql and blow away the db contents.
>
> I hacked together a quick fix for this with a mythgamefilldatabase app
that
> blows the db away and repopulates it. I suppose this would make more
sense
> since someone can just update the db when they know they've added some
stuff
> to their game directory. I know I am continually adding things to my game
> directory as I acquire new memories of my misspent youth in the 80's... ;)
>
> Similarly to mythfilldatabase, this can possibly be tossed in a cron job.
> However, when someone adds something new to the directory, they'd probably
> want to get the list updated right away. In the end, I don't think a cron
> job would make much sense.
>
> So to get to the point, I'd like to know if anyone else would agree that
> creating mythgamefilldatabase would be desired behavior for mythgame.
> Issac, what do *you* think about this?
>
> Cheers,
> Chris
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev@snowman.net
> http://www.snowman.net/mailman/listinfo/mythtv-dev
>
>
>
Re: mythgame and the db... [ In reply to ]
On Sun, Nov 24, 2002 at 09:36:02PM +0000, David Hunnisett wrote:

> I was thinking of using either find or locate on startup to see if the
> number of records was different to the number of files and if it was re
> populate the database

mythmusic already does this for you internally.

--
- mdz
RE: mythgame and the db... [ In reply to ]
Too bad I didn't notice that earlier... :)

I never bothered checking out the "system settings" before. I guess I
should have been a bit more curious the first time...

Thanks,
Chris

-----Original Message-----
From: mythtv-dev-admin@snowman.net
[mailto:mythtv-dev-admin@snowman.net]On Behalf Of Michael Kedl
Sent: Sunday, November 24, 2002 5:13 PM
To: mythtv-dev@snowman.net
Subject: Re: [mythtv] mythgame and the db...



Pressing "e" over myth game and choosing rescan doesn't work for you?

Mike

On Sun, 24 Nov 2002 14:47:06 -0500, "Chris Liscio" <clliscio@uwaterloo.ca>
wrote :

> Hi guys,
>
> I don't know how many other people on the list use mythgame, but I noticed
> an oddity when I first tried it. It only updates the db at most once,
until
> you manually go into mysql and blow away the db contents.
>
> I hacked together a quick fix for this with a mythgamefilldatabase app
that
> blows the db away and repopulates it. I suppose this would make more
sense
> since someone can just update the db when they know they've added some
stuff
> to their game directory. I know I am continually adding things to my game
> directory as I acquire new memories of my misspent youth in the 80's... ;)
>
> Similarly to mythfilldatabase, this can possibly be tossed in a cron job.
> However, when someone adds something new to the directory, they'd probably
> want to get the list updated right away. In the end, I don't think a cron
> job would make much sense.
>
> So to get to the point, I'd like to know if anyone else would agree that
> creating mythgamefilldatabase would be desired behavior for mythgame.
> Issac, what do *you* think about this?
>
> Cheers,
> Chris
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev@snowman.net
> http://www.snowman.net/mailman/listinfo/mythtv-dev
>
>
>
_______________________________________________
mythtv-dev mailing list
mythtv-dev@snowman.net
http://www.snowman.net/mailman/listinfo/mythtv-dev