librefm-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Librefm-commits] [1468] Confirm the intended date/time in offline-submi


From: Daniel Watkins
Subject: [Librefm-commits] [1468] Confirm the intended date/time in offline-submit.py.
Date: Sun, 10 May 2009 14:43:36 +0000

Revision: 1468
          http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1468
Author:   odd_bloke
Date:     2009-05-10 14:43:35 +0000 (Sun, 10 May 2009)
Log Message:
-----------
Confirm the intended date/time in offline-submit.py.

Modified Paths:
--------------
    trunk/scripts/offline-submit.py

Modified: trunk/scripts/offline-submit.py
===================================================================
--- trunk/scripts/offline-submit.py     2009-05-10 14:09:53 UTC (rev 1467)
+++ trunk/scripts/offline-submit.py     2009-05-10 14:43:35 UTC (rev 1468)
@@ -4,6 +4,7 @@
 import getpass
 from optparse import OptionParser
 import subprocess
+import sys
 
 import mutagen
 from mutagen import easyid3
@@ -31,6 +32,11 @@
     server = GobbleServer(server, username, password)
 
     dt = _parse_date(start_string)
+    input = ''
+    while input not in ['y', 'n']:
+        input = raw_input("Did you mean '%s UTC'? [Y/n]: " % (dt,)).lower()
+    if input == 'n':
+        sys.exit()
 
     for track in tracks:
         f = mutagen.File(track)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]