diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2014-07-06 11:28:51 +0200 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2014-07-06 11:28:51 +0200 |
commit | 8d5797b00f2640cfc5d75ea0189e06d85a360639 (patch) | |
tree | a86bd1608f83951e667c318d0265258a75234cde /youtube_dl | |
parent | 7571c02c8ad38919654d3cdd21ec567f57fe2451 (diff) |
[YoutubeDL] Show download URL when -v is set
This will allow us to debug issues like #3204
Diffstat (limited to 'youtube_dl')
-rwxr-xr-x | youtube_dl/YoutubeDL.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index dc0ba986a..3dff723b8 100755 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -993,6 +993,8 @@ class YoutubeDL(object): fd = get_suitable_downloader(info)(self, self.params) for ph in self._progress_hooks: fd.add_progress_hook(ph) + if self.params.get('verbose'): + self.to_stdout('[debug] Invoking downloader on %r' % info.get('url')) return fd.download(name, info) if info_dict.get('requested_formats') is not None: downloaded = [] |