[mythtv] MythMusic ComputeSize and database usage
Stuart Morgan
stuart at tase.co.uk
Mon Mar 26 06:53:42 UTC 2007
On Monday 26 March 2007 04:58:38 dave wrote:
> Dear Mythdevers,
>
> Looking into Mythmusic and the playlist size calculation code in
> playlist.cpp it appears it is relying on an unpopulated field "length" when
> calculating the play time. For mp3s I'm calculating the length using
> mp3info and thought I might update the database as I went. i.e
> ---
> get rec
> if rec.length = 0
> calc size and update rec.length
> fi
>
> size_in_sec += rec.length
> ---
> Is their any issues with doing this or I have not ticked something that
> would update the length field ?
What version are you running? Length should be calculated when the track is
first inserted into the database during a scan. AFAIK it has always worked
and so I can't see a reason for the length field to be empty.
--
Stuart Morgan
More information about the mythtv-dev
mailing list