Permalink
Browse files

Disable artwork processing for exportMetadata().

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 139a98e45d5d5d907390734e78d9ee42f0777ed8
Showing with 11 additions and 11 deletions.
  1. +11 −11 mythtv/bindings/python/MythTV/dataheap.py
@@ -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()
@@ -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

0 comments on commit 139a98e

Please sign in to comment.