Skip to content

Commit

Permalink
Rename a class
Browse files Browse the repository at this point in the history
  • Loading branch information
romanvm committed Dec 6, 2023
1 parent e65e715 commit 6c9c72a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin.video.external.library/libs/media_info_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def set_info_tag_property(self, info_tag: InfoTagVideo) -> None:
method(*args)


class PlaycountSetter(SimpleMediaPropertySetter):
class NotNoneValueSetter(SimpleMediaPropertySetter):

def should_set(self) -> bool:
return self._property_value is not None
Expand Down Expand Up @@ -178,7 +178,7 @@ def get_method_args(self) -> Iterable[Any]:
('tagline', 'setTagLine', SimpleMediaPropertySetter),
('plot', 'setPlot', SimpleMediaPropertySetter),
('plotoutline', 'setPlotOutline', SimpleMediaPropertySetter),
('playcount', 'setPlaycount', PlaycountSetter),
('playcount', 'setPlaycount', NotNoneValueSetter),
('writer', 'setWriters', SimpleMediaPropertySetter),
('studio', 'setStudios', SimpleMediaPropertySetter),
('mpaa', 'setMpaa', SimpleMediaPropertySetter),
Expand Down

0 comments on commit 6c9c72a

Please sign in to comment.