Ticket #13300: 0001-Add-recordedid-to-db.seacrchRecorded-method.patch

File 0001-Add-recordedid-to-db.seacrchRecorded-method.patch, 2.1 KB (added by rcrdnalor, 6 years ago)

Add recordedid to Python Bindings

  • mythtv/bindings/python/MythTV/methodheap.py

    From 02e3c5822b1c44f097ef86f899c87d67ea8ba0fc Mon Sep 17 00:00:00 2001
    From: rcrdnalor <rcrernst@gmail.com>
    Date: Sun, 1 Jul 2018 20:05:17 +0200
    Subject: [PATCH 1/2] Add-recordedid to db.seacrchRecorded-method
    
    ---
     mythtv/bindings/python/MythTV/methodheap.py | 6 +++---
     1 file changed, 3 insertions(+), 3 deletions(-)
    
    diff --git a/mythtv/bindings/python/MythTV/methodheap.py b/mythtv/bindings/python/MythTV/methodheap.py
    index cbbc861509..d65154ce36 100644
    a b class MythBE( FileOps ): 
    4444        getLoad()                 - returns a tuple of load averages
    4545        getRecordings()           - returns a list of all recordings
    4646        getSGFile()               - returns information on a single file
    47         getSGList()               - returns lists of directories, 
     47        getSGList()               - returns lists of directories,
    4848                                    files, and sizes
    4949        getUptime()               - returns system uptime in seconds
    5050        isActiveBackend()         - determines whether backend is
    class MythDB( DBCache ): 
    643643            partnumber, parttotal,  seriesid,   showtype,   programid,
    644644            manualid,   generic,    cast,       livetv,     basename,
    645645            syndicatedepisodenumber,            olderthan,  newerthan,
    646             inetref,    season,     episode
     646            inetref,    season,     episode,    recordedid
    647647
    648648        Multiple keywords can be chained as such:
    649649            obj.searchRecorded(title='Title', commflagged=False)
    class MythDB( DBCache ): 
    672672                        'category','hostname','autoexpire','commflagged',
    673673                        'stars','recgroup','playgroup','duplicate',
    674674                        'transcoded','watched','storagegroup','basename',
    675                         'inetref','season','episode'):
     675                        'inetref','season','episode', 'recordedid'):
    676676            return ('recorded.%s=%%s' % key, value, 0)
    677677
    678678        # time matches