no manual data if item has imdb id
This commit is contained in:
parent
98119eb400
commit
fd7bd7a704
3 changed files with 19 additions and 9 deletions
|
|
@ -11,8 +11,11 @@ import managers
|
|||
|
||||
class MetaClip:
|
||||
def update_calculated_values(self):
|
||||
start = min(self.start, self.item.sort.duration)
|
||||
end = min(self.end, self.item.sort.duration)
|
||||
start = self.start
|
||||
end = self.end
|
||||
if self.item.sort.duration:
|
||||
start = min(self.start, self.item.sort.duration)
|
||||
end = min(self.end, self.item.sort.duration)
|
||||
self.duration = end - start
|
||||
if self.duration > 0:
|
||||
self.hue, self.saturation, self.lightness = extract.average_color(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue