[mythtv] [PATCH] Add recording length to MythWeb
Isaac Richards
ijr at po.cwru.edu
Sun Apr 6 12:03:45 EDT 2003
On Sunday 06 April 2003 07:28 am, mythtv at slackassbastards.org wrote:
> Attached are patches for MythWeb that will display the recording length for
> programs under the recorded programs list. Total recording time for all
> programs is also displayed.
Thanks, applied.
> On a related subject, does anyone else have problems with the filesizes
> being displayed properly in the recorded programs list in MythWeb? On some
> programs I get negative file sizes. I've checked and the problem appears
> to come from the results that MythWeb gets from the backend when doing
> "QUERY_RECORDINGS Delete". It's very strange as the file sizes are
> displayed properly in Mythfrontend.
The issue is that mythweb isn't reading the entire filesize -- it's two fields
long, not one, since Qt doesn't deal with 64-bit types in its toString
conversion functions. Check out the encodeLongLong and decodeLongLong
functions in libs/libmyth/util.cpp, and see how they're used to convert a
filesize in libs/libmythtv/programinfo.cpp (ToStringList and FromStringList).
Also, does php do 64-bit integers?
Isaac
More information about the mythtv-dev
mailing list