Compare commits
No commits in common. "47926290a27e3cc28ad432f988b43e1bcc664236" and "a3972e55b647fe9c050fc1499b60fb76ff94a66b" have entirely different histories.
47926290a2
...
a3972e55b6
|
@ -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):
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue