Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 2076d12a565e120b67ed25eb68181250cd2ffe59 1 parent 44ebd80
@wagnerrp wagnerrp authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  mythtv/bindings/python/MythTV/dataheap.py
View
3  mythtv/bindings/python/MythTV/dataheap.py
@@ -993,7 +993,8 @@ def _allow_change(self, tag, overwrite):
for image in metadata.images:
if not hasattr(self, image.type):
continue
- if getattr(self, image.type) and not overwrite:
+ current = getattr(self, image.type)
+ if current and (current != 'No Cover') and not overwrite:
continue
setattr(self, image.type, image.filename)
getattr(self, image.type).downloadFrom(image.url)
Please sign in to comment.
Something went wrong with that request. Please try again.