htsp: add getChannel method, fixes #2283