Browse Source

minor refactor

Arnau Sanchez 10 years ago
parent
commit
05549b7f7d
2 changed files with 9 additions and 9 deletions
  1. 4 4
      youtube_upload/auth/webkit_gtk.py
  2. 5 5
      youtube_upload/main.py

+ 4 - 4
youtube_upload/auth/webkit_gtk.py

@@ -35,13 +35,13 @@ def get_code(url, size=(640, 480), title="Google authentication"):
     webview.load_uri(url)    
     dialog.resize(*size)
     dialog.show_all()
-    
-    dialog.connect("delete-event", lambda event, data: dialog.response(1))
+    dialog.connect("delete-event", 
+        lambda event, data: dialog.response(1))
     webview.connect("load-finished", 
         lambda view, frame: view.execute_script(CHECK_AUTH_JS))       
-    webview.connect("status-bar-text-changed", _on_webview_status_bar_changed, dialog)
+    webview.connect("status-bar-text-changed", 
+        _on_webview_status_bar_changed, dialog)
     dialog.set_data("authorization_code", None)
-
     status = dialog.run()
     dialog.destroy()
     while gtk.events_pending():

+ 5 - 5
youtube_upload/main.py

@@ -149,18 +149,18 @@ def main(arguments):
 
     # Video metadata
     parser.add_option('-t', '--title', dest='title', type="string",
-        help='Video(s) title')
+        help='Video title')
     parser.add_option('-c', '--category', dest='category', type="string",
-        help='Video(s) category')
+        help='Video category')
     parser.add_option('-d', '--description', dest='description', type="string",
-        help='Video(s) description')
+        help='Video description')
     parser.add_option('', '--tags', dest='tags', type="string",
-        help='Video(s) tags (separated by commas: tag1,tag2,...)')
+        help='Video tags (separated by commas: "tag1, tag2,...")')
     parser.add_option('', '--privacy', dest='privacy', metavar="STRING",
         default="public", help='Privacy status (public | unlisted | private)')
     parser.add_option('', '--location', dest='location', type="string",
         default=None, metavar="latitude=VAL,longitude=VAL[,altitude=VAL]",
-        help='Video(s) location"')
+        help='Video location"')
     parser.add_option('', '--title-template', dest='title_template',
         type="string", default="{title} [{n}/{total}]", metavar="STRING",
         help='Template for multiple videos (default: {title} [{n}/{total}])')