Compare commits

..

No commits in common. "47926290a27e3cc28ad432f988b43e1bcc664236" and "a3972e55b647fe9c050fc1499b60fb76ff94a66b" have entirely different histories.

3 changed files with 2 additions and 6 deletions

View File

@ -220,7 +220,7 @@ class Event(Message):
:param condition: The platypush.event.hook.EventCondition object
"""
result = EventMatchResult(is_match=False)
result = EventMatchResult(is_match=False, parsed_args=self.args)
match_scores = []
if not isinstance(self, condition.type):

View File

@ -255,8 +255,6 @@ class MusicMopidyPlugin(RunnablePlugin):
ret = self._add(resource, position=0)
if not ret:
self.logger.warning('Failed to add %s to the tracklist', resource)
elif isinstance(ret, list):
track_id = ret[0].get('tlid')
elif isinstance(ret, dict):
track_id = ret.get('tlid')
elif position is not None:

View File

@ -59,12 +59,10 @@ class TextConversionUtils:
@classmethod
def convert(cls, text: str) -> str:
text = cls._convert_digits(text)
for pattern, replacement in TextConversionUtils._conversions_map:
text = pattern.sub(replacement, text)
return text
return cls._convert_digits(text)
class TtsPicovoicePlugin(TtsPlugin):