[mythtv-commits] mythtv commit: r25369 by wagnerrp

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Sat Jul 17 16:12:17 UTC 2010


      Author: wagnerrp
        Date: 2010-07-17 16:12:17 +0000 (Sat, 17 Jul 2010)
New Revision: 25369
   Changeset: http://svn.mythtv.org/trac/changeset/25369

Modified:

   trunk/mythtv/bindings/python/MythTV/connections.py
   trunk/mythtv/bindings/python/MythTV/dataheap.py
   trunk/mythtv/bindings/python/MythTV/mythproto.py
   trunk/mythtv/bindings/python/MythTV/static.py

Log:

Add support for the new backend downloader.

Adds new classes RecordFileTransfer and DownloadFileTransfer. These 
    classes are used transparently by ftopen() based off the given
    inputs, and listen on the connection for filesize update events.

Adds new class EventLock, which provides a lock that cannot be acquired
    until an event matching a given regular expression is received
    from the backend. A new FileOps.allocateEventLock gives easy 
    creation of this lock.

Adds new methods FileOps.download() and FileOps.downloadTo(). downloadTo
    takes a URL, storagegroup, and filename, and tells the backend to 
    download the contents to that file.  download takes a URL only, tells
    the backend to download to a random file in a temporary folder, and
    opens a FileTransfer object to it.

Video class has been updated to use the backend downloading, rather than downloading artwork manually.

Protocol version is now defined as a string, rather than integer, to
    maintain consistency with MythTV.





More information about the mythtv-commits mailing list