[mythtv-commits] mythtv commit: r21770 - in trunk/mythtv by cpinkham

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Fri Sep 11 04:25:27 UTC 2009


      Author: cpinkham
        Date: 2009-09-11 04:25:27 +0000 (Fri, 11 Sep 2009)
New Revision: 21770
   Changeset: http://cvs.mythtv.org/trac/changeset/21770

Modified:

   trunk/mythtv/libs/libmythdb/mythversion.h
   trunk/mythtv/libs/libmythdb/remotefile.cpp
   trunk/mythtv/libs/libmythdb/remotefile.h
   trunk/mythtv/programs/mythbackend/mainserver.cpp
   trunk/mythtv/programs/mythbackend/mainserver.h

Log:

Add a RemoteFile::Exists(QString &url) method for checking for the
existence of a remote file.  This is much faster than having to
open a RemoteFile and then check the filesize.

Backend command is:

QUERY_FILE_EXISTS
filename
storagegroup

Return values are 1 or 0 depending on whether the file is found in
the specified Storage Group.  SG fallback is disabled.  If the file
is found, the backend command returns the filename in the next field
after the '1', but RemoteFile::Exists() does not currently use the
resulting filename.

NOTE: This does bump the API version up since it touches libmythdb,
so you'll have to recompile things.






More information about the mythtv-commits mailing list