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
warn if %(stitle)s is being used
rtmp_test
Philipp Hagemeister
12 years ago
parent
aa2a94ed81
commit
97cd3afc75
2 changed files
with
4 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
youtube_dl/FileDownloader.py
+1
-1
youtube_dl/__init__.py
+ 3
- 0
youtube_dl/FileDownloader.py
View File
@ -94,6 +94,9 @@ class FileDownloader(object):
self
.
_screen_file
=
[
sys
.
stdout
,
sys
.
stderr
]
[
params
.
get
(
'
logtostderr
'
,
False
)
]
self
.
_screen_file
=
[
sys
.
stdout
,
sys
.
stderr
]
[
params
.
get
(
'
logtostderr
'
,
False
)
]
self
.
params
=
params
self
.
params
=
params
if
'
%(stitle)s
'
in
self
.
params
[
'
outtmpl
'
]
:
self
.
to_stderr
(
u
'
WARNING:
%(stitle)s
is deprecated. Use the
%(title)s
and the --restrict-filenames flag(which also secures
%(uploader)s
et al) instead.
'
)
@staticmethod
@staticmethod
def
format_bytes
(
bytes
)
:
def
format_bytes
(
bytes
)
:
if
bytes
is
None
:
if
bytes
is
None
:
+ 1
- 1
youtube_dl/__init__.py
View File
@ -532,7 +532,7 @@ def _real_main():
parser
.
error
(
u
'
you must provide at least one URL
'
)
parser
.
error
(
u
'
you must provide at least one URL
'
)
else
:
else
:
sys
.
exit
(
)
sys
.
exit
(
)
try
:
try
:
retcode
=
fd
.
download
(
all_urls
)
retcode
=
fd
.
download
(
all_urls
)
except
MaxDownloadsReached
:
except
MaxDownloadsReached
:
Write
Preview
Loading…
Cancel
Save