Skip to content

Commit

Permalink
Fix Recorded.exportMetadata()
Browse files Browse the repository at this point in the history
  • Loading branch information
wagnerrp committed May 9, 2012
1 parent 0008f60 commit 40243c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mythtv/bindings/python/MythTV/altdict.py
Expand Up @@ -124,7 +124,7 @@ def __setattr__(self, name, value):

def __setitem__(self, key, value):
if key not in self._field_order:
raise KeyError(str(name))
raise KeyError(str(key))
dict.__setitem__(self, key, value)

def __delattr__(self, name):
Expand Down
4 changes: 2 additions & 2 deletions mythtv/bindings/python/MythTV/dataheap.py
Expand Up @@ -379,7 +379,7 @@ def _allow_change(self, tag, overwrite):

# pull direct matches
for tag in ('title', 'subtitle', 'description', 'season', 'episode',
'chanid', 'starttime', 'seriesid', 'programid', 'inetref',
'chanid', 'seriesid', 'programid', 'inetref',
'recgroup', 'playgroup', 'seriesid', 'programid',
'storagegroup'):
if metadata[tag] and _allow_change(self, tag, overwrite):
Expand Down Expand Up @@ -419,7 +419,7 @@ def exportMetadata(self):

# pull direct matches
for tag in ('title', 'subtitle', 'description', 'season', 'episode',
'chanid', 'starttime', 'seriesid', 'programid', 'inetref',
'chanid', 'seriesid', 'programid', 'inetref',
'recgroup', 'playgroup', 'seriesid', 'programid',
'storagegroup'):
if self[tag]:
Expand Down

0 comments on commit 40243c9

Please sign in to comment.