diff options
author | jaseg <code@jaseg.net> | 2017-07-13 00:37:25 +0200 |
---|---|---|
committer | jaseg <code@jaseg.net> | 2017-07-13 00:37:25 +0200 |
commit | e52a9545f7e14e0eda5e78d6bb255f019cab4f87 (patch) | |
tree | fe04c31434e1a9a7ebc6e8589585765bdf47ead7 /mpv.py | |
parent | cb0cfd07c93519dd5214254db993dcbd7c817d8c (diff) | |
download | python-mpv-e52a9545f7e14e0eda5e78d6bb255f019cab4f87.tar.gz python-mpv-e52a9545f7e14e0eda5e78d6bb255f019cab4f87.tar.bz2 python-mpv-e52a9545f7e14e0eda5e78d6bb255f019cab4f87.zip |
Fix message handler registration and advanced README example
Diffstat (limited to 'mpv.py')
-rw-r--r-- | mpv.py | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -766,8 +766,7 @@ class MPV(object): ``` """ self._register_message_handler_internal(target, handler) - def _register_script_message_handler_internal(self, target, handler): - handler.mpv_message_targets = getattr(handler, 'mpv_script_message_targets', []) + [target] + def _register_message_handler_internal(self, target, handler): self._message_handlers[target] = handler def unregister_message_handler(self, target_or_handler): |