Skip to content
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

yt crashes when inputting swedish letters in search field #5334

Closed
zphinx opened this issue Mar 31, 2015 · 1 comment
Closed

yt crashes when inputting swedish letters in search field #5334

zphinx opened this issue Mar 31, 2015 · 1 comment

Comments

@zphinx
Copy link

@zphinx zphinx commented Mar 31, 2015

äåö ÄÅÖ are swedish letters, yt crashes when they are put into a search in the search field, or it autocompletes to a youtube video containing these.
Traceback (most recent call last):
File "/usr/bin/yt", line 439, in
main()
File "/usr/bin/yt", line 18, in main
ui.run()
File "/usr/bin/yt", line 55, in run
curses.wrapper(self._curses_main)
File "/usr/lib/python2.7/curses/wrapper.py", line 43, in wrapper
return func(stdscr, _args, *_kwds)
File "/usr/bin/yt", line 102, in _curses_main
self._run_pager()
File "/usr/bin/yt", line 250, in _run_pager
s = self._input('search')
File "/usr/bin/yt", line 143, in _input
input_win.addstr(0, 0, ('%s' % (get_query_result(s),)).encode(self._code))
File "/usr/bin/yt", line 430, in get_query_result
result = json.load(urllib2.urlopen('%s?%s' % (url, urllib.urlencode(query))))
File "/usr/lib/python2.7/json/init.py", line 290, in load
**kw)
File "/usr/lib/python2.7/json/init.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
obj, end = self.scan_once(s, idx)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xc3 in position 0: unexpected end of data

@zphinx
Copy link
Author

@zphinx zphinx commented Mar 31, 2015

Sorry, this was supposed to go into yt, not youtube-dl

@dstftw dstftw closed this Mar 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.