[mythtv-commits] mythtv/master commit: 6d8542f61 by Robert McNamara (rmcnamara)

MythTV noreply at mythtv.org
Sat Apr 23 03:04:23 UTC 2011


      Author:  Robert McNamara <rmcnamara at mythtv.org>
 Change Date:  2011-04-22T19:59:32-07:00
   Push Date:  2011/04/22 20:04:21 -0700
  Repository:  mythtv
      Branch:  master
New Revision:  6d8542f612abac2fa2adfe340494241eb5eb7749
   Changeset:  https://github.com/MythTV/mythtv/commit/6d8542f61

Log:

API: Add an AddVideo method to the Video Service.

Usage (POST-only):

http://BackendServerIP:6544/Video/AddVideo?Filename=/path/to/a/file.ext&Host=hostname

Both the Filename and Host arguments are required.  As local video storage is deprecated, it is unsupported in the API and will remain that way.  This code won't work with local storage.

Usual filename parsing is performed on added videos, so Title/Subtitle/Season/Episode will be parsed out as normal from the filename itself.

No metadata is done on this data yet.  The metadata classes are asynchronous and rely on listening for Qt Events, and I can't figure out how to make either work with the API classes yet.

Modified:

   mythtv/libs/libmythservicecontracts/services/videoServices.h
   mythtv/programs/mythbackend/services/video.cpp
   mythtv/programs/mythbackend/services/video.h



More information about the mythtv-commits mailing list