aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2012-01-08 17:22:48 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2012-01-08 17:22:48 +0100
commit6d58c4546ebcf6a55dcb80cf0aefe747b7f80ee7 (patch)
tree3d514e0fa6cb0a5f06d2eceb5dc27e320c863601 /youtube_dl
parent38ffbc022232762ad2b936d070b4fbaf3f9acb09 (diff)
correct to_screen prints
Diffstat (limited to 'youtube_dl')
-rwxr-xr-xyoutube_dl/__init__.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py
index b22f1cac2..fb45adcf6 100755
--- a/youtube_dl/__init__.py
+++ b/youtube_dl/__init__.py
@@ -2652,7 +2652,7 @@ class YoutubeUserIE(InfoExtractor):
else:
video_ids = video_ids[playliststart:playlistend]
- self._downloader.to_screen("[youtube] user %s: Collected %d video ids (downloading %d of them)" %
+ self._downloader.to_screen(u"[youtube] user %s: Collected %d video ids (downloading %d of them)" %
(username, all_ids_count, len(video_ids)))
for video_id in video_ids:
@@ -4170,7 +4170,7 @@ def updateSelf(downloader, filename):
if not os.access(filename, os.W_OK):
sys.exit('ERROR: no write permissions on %s' % filename)
- downloader.to_screen('Updating to latest version...')
+ downloader.to_screen(u'Updating to latest version...')
try:
try:
@@ -4179,7 +4179,7 @@ def updateSelf(downloader, filename):
vmatch = re.search("__version__ = '([^']+)'", newcontent)
if vmatch is not None and vmatch.group(1) == __version__:
- downloader.to_screen('youtube-dl is up-to-date (' + __version__ + ')')
+ downloader.to_screen(u'youtube-dl is up-to-date (' + __version__ + ')')
return
finally:
urlh.close()
@@ -4195,7 +4195,7 @@ def updateSelf(downloader, filename):
except (IOError, OSError), err:
sys.exit('ERROR: unable to overwrite current version')
- downloader.to_screen('Updated youtube-dl. Restart youtube-dl to use the new version.')
+ downloader.to_screen(u'Updated youtube-dl. Restart youtube-dl to use the new version.')
def parseOpts():
# Deferred imports