[mythtv-users] Python Bindings and mythvidexport

Raymond Wagner raymond at wagnerrp.com
Sun Jan 31 17:53:19 UTC 2010


On 1/31/2010 09:48, David Herman wrote:
> #1, tuples -- I have found a few spots where attempts to are made to 
> pop or append a tuple.

I need to rethink what returns tuples and lists in the bindings.  The 
search functions should probably be changed to return a list, however 
stuff like 'VideoGrabber.getData' makes more sense to leave a tuple, 
since there is a known number of results it will return.  I see a 
problem with this in the file transfer code, which I've never noticed 
before since I've not tried writing to a SG in which I have multiple 
directories listed.

> #2, ttvdb - the api HATES "&" and other special chars. I know this is 
> a hack, but I recommend something like this (in searchEpisode -- 
> mythdata.py)

 >>> grab = VideoGrabber('TV')
 >>> grab.searchEpisode('Alvin & the Chipmunks','The Chipettes')
(1, 1)

Works for me.


More information about the mythtv-users mailing list