Skip to content

Commit

Permalink
correct to_screen prints
Browse files Browse the repository at this point in the history
  • Loading branch information
phihag committed Jan 8, 2012
1 parent 38ffbc0 commit 6d58c45
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions youtube_dl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2652,7 +2652,7 @@ def _real_extract(self, url):
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:
Expand Down Expand Up @@ -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:
Expand All @@ -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()
Expand All @@ -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
Expand Down

0 comments on commit 6d58c45

Please sign in to comment.