jaseg / python-mpv

Python interface to the awesome mpv media player
https://git.jaseg.de/python-mpv.git
Other
554 stars 69 forks source link

Fixed TypeError: _handle_key_binding_message() signature with mpv < v0.15.0 #53

Closed vilius-g closed 7 years ago

vilius-g commented 7 years ago

key-binding message has key name parameter only since mpv version 0.15.0 (as stated in manual), therefore trying to bind keys with earlier versions results in TypeError: _handle_key_binding_message() missing 1 required positional argument: 'key_name'.

This change makes this argument optional and default to None.

jaseg commented 7 years ago

Thank you, merged and on pypi in v0.3.6.