This website works better with JavaScript.
Home
Help
Sign In
zolfa
/
youtube-dl
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
1.1k
Wiki
Activity
Browse Source
Don't hardcode errno constant
The value of ENOENT is architecture-dependent, so don't assume it's always 2.
totalwebcasting
Jakub Wilk
9 years ago
parent
98d560f205
commit
66e7ace17a
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
youtube_dl/YoutubeDL.py
+ 1
- 1
youtube_dl/YoutubeDL.py
View File
@ -326,7 +326,7 @@ class YoutubeDL(object):
[
'
fribidi
'
,
'
-c
'
,
'
UTF-8
'
]
+
width_args
,
*
*
sp_kwargs
)
self
.
_output_channel
=
os
.
fdopen
(
master
,
'
rb
'
)
except
OSError
as
ose
:
if
ose
.
errno
==
2
:
if
ose
.
errno
==
errno
.
ENOENT
:
self
.
report_warning
(
'
Could not find fribidi executable, ignoring --bidi-workaround . Make sure that fribidi is an executable file in one of the directories in your $PATH.
'
)
else
:
raise
Write
Preview
Loading…
Cancel
Save