Skip to content

Commit

Permalink
Disable artwork processing for exportMetadata().
Browse files Browse the repository at this point in the history
This disables the output of artwork definitions when generating an mxml
file through the bindings.  There is currently no support for handling
local artwork in the files at this time.
  • Loading branch information
wagnerrp committed May 29, 2012
1 parent 98d02db commit 139a98e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions mythtv/bindings/python/MythTV/dataheap.py
Expand Up @@ -400,13 +400,13 @@ def _allow_change(self, tag, overwrite):
cast.job.lower().replace(' ','_'))))

# pull images
for image in metadata.images:
if not hasattr(self.artwork, image.type):
pass
if getattr(self.artwork, image.type, ''):
continue
setattr(self.artwork, image.type, image.filename)
getattr(self.artwork, image.type).downloadFrom(image.url)
# for image in metadata.images:
# if not hasattr(self.artwork, image.type):
# pass
# if getattr(self.artwork, image.type, ''):
# continue
# setattr(self.artwork, image.type, image.filename)
# getattr(self.artwork, image.type).downloadFrom(image.url)

self.update()

Expand Down Expand Up @@ -1034,10 +1034,10 @@ def exportMetadata(self):
metadata.countries.append(country.country)

# pull images
for arttype in ['coverart', 'fanart', 'banner', 'screenshot']:
art = getattr(self, arttype)
if art:
metadata.images.append(OrdDict((('type',arttype), ('filename',art))))
# for arttype in ['coverart', 'fanart', 'banner', 'screenshot']:
# art = getattr(self, arttype)
# if art:
# metadata.images.append(OrdDict((('type',arttype), ('filename',art))))

return metadata

Expand Down

0 comments on commit 139a98e

Please sign in to comment.