-
-
Notifications
You must be signed in to change notification settings - Fork 32
add playlist support #43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: next
Are you sure you want to change the base?
Conversation
- Added option `repeat_playlist` to `post_action`: repeat whole playlist. `repeat_message` will repeat only the last item in case of a playlist. - Added option `repeat_wait` for an extra delay between repeated messages (in seconds).
arnonym
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did a first round of review, and you've done a good job! Looking forward to your update!
ha-sip/src/call.py
Outdated
| pl = self.menu['playlist'] | ||
| if pl: | ||
| item_type, content = pl[-1].split(':', 1) | ||
| self.menu[item_type] = content.lstrip() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think here you're mutating the in-memory menu and if you come back later through some return action you don't get the original playlist anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's so only the last item of the playlist will be repeated. Didn't thought about nested menus. I will see how i can handle this. (only applys to repeat_message).
|
When i have the nested menu thing done, i will update the PR. |
don't alter playlist when repeat_message is given.
Make return post action more powerful. Add jump post action.
aed8c83 to
e9d69d1
Compare
d628a66 to
a86f63c
Compare
|
Is this still ongoing? |
e409580 to
6074c80
Compare
819873b to
b87ef63
Compare
3e837e5 to
d3f0c2f
Compare
01d4ce2 to
cf2a672
Compare
repeat_playlisttopost_action: repeat whole playlist.repeat_messagewill repeat only the last item in case of a playlist.repeat_waitfor an extra delay between repeated messages (in seconds).closes #37