HenrikDK/youtube-xbmc-plugin — pull request #38 by dkadashev (2014-01-12 12:31:29+00:00)
Title: Newlines in the search string lead to "Could not connect to network server" error

Leading/trailing spaces in search string are useless anyway and given that search query is not url-encoded stuff like trailing newlines (which xbmcRemote iPhone app seems to add) leads to invalid URL. Which in turn leads to "Could not connect to network server" error.

Calling strip() on user input fixes this.