projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b3ed15b
)
[YoutubeDL] Improve JSON info file naming
author
Sergey M․
<dstftw@gmail.com>
Sat, 2 May 2015 17:23:44 +0000
(23:23 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 2 May 2015 17:23:44 +0000
(23:23 +0600)
youtube_dl/YoutubeDL.py
patch
|
blob
|
history
diff --git
a/youtube_dl/YoutubeDL.py
b/youtube_dl/YoutubeDL.py
index 06d04c8f06c9ae6d79c604eeb1a645a4e9fa2c48..0330b0b34c917d301063a53faf55d10a982497df 100755
(executable)
--- a/
youtube_dl/YoutubeDL.py
+++ b/
youtube_dl/YoutubeDL.py
@@
-71,6
+71,7
@@
from .utils import (
write_string,
YoutubeDLHandler,
prepend_extension,
write_string,
YoutubeDLHandler,
prepend_extension,
+ replace_extension,
args_to_str,
age_restricted,
)
args_to_str,
age_restricted,
)
@@
-1332,7
+1333,7
@@
class YoutubeDL(object):
return
if self.params.get('writeinfojson', False):
return
if self.params.get('writeinfojson', False):
- infofn =
os.path.splitext(filename)[0] + '.info.json'
+ infofn =
replace_extension(filename, 'info.json', info_dict.get('ext'))
if self.params.get('nooverwrites', False) and os.path.exists(encodeFilename(infofn)):
self.to_screen('[info] Video description metadata is already present')
else:
if self.params.get('nooverwrites', False) and os.path.exists(encodeFilename(infofn)):
self.to_screen('[info] Video description metadata is already present')
else: