aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/FileDownloader.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2012-11-28 00:46:21 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2012-11-28 00:46:21 +0100
commit8cd10ac4efb5168f3ceb18ec94338bce73e166a7 (patch)
tree623c36d8609da02b749ffc6fe17bc025c055687f /youtube_dl/FileDownloader.py
parent64a57846d3fe3aa919ee3539956763c8ef3211b6 (diff)
Fix printing title etc.
Diffstat (limited to 'youtube_dl/FileDownloader.py')
-rw-r--r--youtube_dl/FileDownloader.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/youtube_dl/FileDownloader.py b/youtube_dl/FileDownloader.py
index 2b76a3b09..6ddbfc469 100644
--- a/youtube_dl/FileDownloader.py
+++ b/youtube_dl/FileDownloader.py
@@ -380,17 +380,17 @@ class FileDownloader(object):
# Forced printings
if self.params.get('forcetitle', False):
- print(info_dict['title'].encode(preferredencoding(), 'xmlcharrefreplace'))
+ compat_print(info_dict['title'].encode(preferredencoding(), 'xmlcharrefreplace'))
if self.params.get('forceurl', False):
- print(info_dict['url'].encode(preferredencoding(), 'xmlcharrefreplace'))
+ compat_print(info_dict['url'].encode(preferredencoding(), 'xmlcharrefreplace'))
if self.params.get('forcethumbnail', False) and 'thumbnail' in info_dict:
- print(info_dict['thumbnail'].encode(preferredencoding(), 'xmlcharrefreplace'))
+ compat_print(info_dict['thumbnail'].encode(preferredencoding(), 'xmlcharrefreplace'))
if self.params.get('forcedescription', False) and 'description' in info_dict:
- print(info_dict['description'].encode(preferredencoding(), 'xmlcharrefreplace'))
+ compat_print(info_dict['description'].encode(preferredencoding(), 'xmlcharrefreplace'))
if self.params.get('forcefilename', False) and filename is not None:
- print(filename.encode(preferredencoding(), 'xmlcharrefreplace'))
+ compat_print(filename.encode(preferredencoding(), 'xmlcharrefreplace'))
if self.params.get('forceformat', False):
- print(info_dict['format'].encode(preferredencoding(), 'xmlcharrefreplace'))
+ compat_print(info_dict['format'].encode(preferredencoding(), 'xmlcharrefreplace'))
# Do nothing else if in simulate mode
if self.params.get('simulate', False):