[mythtv-firehose] mythtv/master commit: 86003a485 by Robert McNamara (rmcnamara)

MythTV noreply at mythtv.org
Fri Jul 15 06:37:09 UTC 2011


      Author:  Robert McNamara <rmcnamara at mythtv.org>
 Change Date:  2011-07-14T23:32:38-07:00
   Push Date:  2011/07/14 23:37:03 -0700
  Repository:  mythtv
      Branch:  master
New Revision:  86003a485fa5dd72c0aea6c59e59794e14d91b9d
   Changeset:  https://github.com/MythTV/mythtv/commit/86003a485

Log:

Backend Video Scanner: Perform all metadata updates and image download the UI can.

Replaces the old video scanner thread in the backend (well, old is relative) and replace it with a MetadataFactory.

Add a video scanning thread to the Metadata Factory, and handling for video metadata in an automated lookup scenario.

The hardest part and largest bits of this change are actually code to make the metadata download code agnostic to the fact that it's running on a backend.  Specifically, it all makes liberal use of RemoteFile, which will function, but spewed nasty errors about the backend connecting to itself.  So, lots and lots of code to detect and work around that.

So, to all who have ever complained that they couldn't script a scan, or used it as an excuse for using some script that molested and destroyed their data, please, please instead use:

mythbackend --scanvideos

or the SCAN_VIDEOS protocol command.  This now does everything you can from the frontend, and uses the same classes, so it will never need updating when the frontend gains some new scanning functionality.

Modified:

   mythtv/libs/libmythbase/mythversion.h
   mythtv/libs/libmythmetadata/metadatadownload.cpp
   mythtv/libs/libmythmetadata/metadatafactory.cpp
   mythtv/libs/libmythmetadata/metadatafactory.h
   mythtv/libs/libmythmetadata/metadataimagedownload.cpp
   mythtv/libs/libmythmetadata/metadataimagedownload.h
   mythtv/libs/libmythmetadata/metadataimagehelper.cpp
   mythtv/libs/libmythmetadata/videometadata.cpp
   mythtv/libs/libmythmetadata/videoscan.cpp
   mythtv/libs/libmythmetadata/videoscan.h
   mythtv/programs/mythbackend/mainserver.cpp
   mythtv/programs/mythbackend/mainserver.h
   mythtv/programs/mythfrontend/scheduleeditor.cpp



More information about the mythtv-firehose mailing list