[vdown commit] r56 - trunk

0 views
Skip to first unread message

codesite...@google.com

unread,
Nov 3, 2007, 4:37:59 PM11/3/07
to vdow...@googlegroups.com
Author: kopfgeldjaeger
Date: Sat Nov 3 13:37:42 2007
New Revision: 56

Modified:
trunk/cli.py
trunk/gui.py

Log:
fixed typo

Modified: trunk/cli.py
==============================================================================
--- trunk/cli.py (original)
+++ trunk/cli.py Sat Nov 3 13:37:42 2007
@@ -83,6 +83,7 @@
progress = down.downloaded()
last_progress = progress
last_ETA = 0.00
+ putWinString = False
sleep(1) # give "it" some time to get the filesize,
otherwise it'd be just '100'
filesize = down.get_filesize()
while filesize == 0: # if it was not enough
@@ -105,11 +106,12 @@
if sys.platform == "linux2":
sys.stdout.write("\r%.2f \033[6G %% | %s
\033[18G KB/s | ETA: %s \033[38G%s" % (float(progress),
str(kb_per_sec_asfloat).rjust(7), ETA, seconds_string)) # makes it look
more static
sys.stdout.flush()
- else:
- print "Downloading..."
- last_progress = progress
- sleep(1)
+ last_progress = progress
+ sleep(1)
progress = down.downloaded()
+ if sys.platform != "linux2" and putWinString == False:
+ print _("Downloading...")
+ putWinString = True
if(progress == 100.0):
sys.stdout.write(_("\rDownload finished...
\n"))
if config.getboolean("general", "convert"):

Modified: trunk/gui.py
==============================================================================
--- trunk/gui.py (original)
+++ trunk/gui.py Sat Nov 3 13:37:42 2007
@@ -123,7 +123,7 @@
gtk.main_iteration_do(True)
if data.status == 0:
saveAs =
os.path.join(self.config.get("general", "save_videos_in"), data.data[2])
- print "Saving file as \"%filename)s\"..." %
{"filename" : saveAs}
+ print "Saving file as \"%(filename)s\"..." %
{"filename" : saveAs}
down = fdownload(data.data[0], data.data[2])
down.start()
pb.set_fraction(0)

Reply all
Reply to author
Forward
0 new messages