projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
399a76e
)
[utils] Jython support - disable setproctitle() until ctypes is complete
author
Yen Chi Hsuan
<yan12125@gmail.com>
Sat, 20 Feb 2016 19:29:02 +0000
(
03:29
+0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Sat, 20 Feb 2016 19:32:03 +0000
(
03:32
+0800)
youtube_dl/utils.py
patch
|
blob
|
history
diff --git
a/youtube_dl/utils.py
b/youtube_dl/utils.py
index 17747be26e30aaf22cc182847010f6dc6fd6a19a..16b4324a4d1d9c8203b83b9b15e22b793e2b2697 100644
(file)
--- a/
youtube_dl/utils.py
+++ b/
youtube_dl/utils.py
@@
-1397,6
+1397,12
@@
def fix_xml_ampersands(xml_str):
def setproctitle(title):
assert isinstance(title, compat_str)
+
+ # ctypes in Jython is not complete
+ # http://bugs.jython.org/issue2148
+ if sys.platform.startswith('java'):
+ return
+
try:
libc = ctypes.cdll.LoadLibrary('libc.so.6')
except OSError: