youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit f3915452ded79ebc52126a33359739ecc1594f67
parent 68c22c4c15a608a7067f658f5facc1ad8334c03a
Author: Yen Chi Hsuan <yan12125@gmail.com>
Date:   Sun, 12 Feb 2017 00:42:43 +0800

Merge pull request #12085 from wiiaboo/python2

utils.py: Workaround TypeError with Python 2.7.13 in Windows
Diffstat:
Myoutube_dl/utils.py | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py @@ -1684,6 +1684,11 @@ def setproctitle(title): libc = ctypes.cdll.LoadLibrary('libc.so.6') except OSError: return + except TypeError: + # LoadLibrary in Windows Python 2.7.13 only expects + # a bytestring, but since unicode_literals turns + # every string into a unicode string, it fails. + return title_bytes = title.encode('utf-8') buf = ctypes.create_string_buffer(len(title_bytes)) buf.value = title_bytes