Browse files

Add check for 'No Cover' when applying coverart to videos.

This considers a 'No Cover' value properly as non-existent, when
importing data from a VideoGrabber search result, to allow a new
cover to be downloaded in it's place, rather than refusing to
overwrite an existing image.
  • Loading branch information...
wagnerrp committed Sep 20, 2012
1 parent 44ebd80 commit 2076d12a565e120b67ed25eb68181250cd2ffe59
Showing with 2 additions and 1 deletion.
  1. +2 −1 mythtv/bindings/python/MythTV/
@@ -993,7 +993,8 @@ def _allow_change(self, tag, overwrite):
for image in metadata.images:
if not hasattr(self, image.type):
- if getattr(self, image.type) and not overwrite:
+ current = getattr(self, image.type)
+ if current and (current != 'No Cover') and not overwrite:
setattr(self, image.type, image.filename)
getattr(self, image.type).downloadFrom(image.url)

0 comments on commit 2076d12

Please sign in to comment.