Browse Source

[options] Correct option usage

Philipp Hagemeister 11 years ago
parent
commit
2daabe4992
2 changed files with 5 additions and 1 deletions
  1. 3 1
      youtube_dl/__init__.py
  2. 2 0
      youtube_dl/options.py

+ 3 - 1
youtube_dl/__init__.py

@@ -86,6 +86,9 @@ import random
 import sys
 
 
+from .options import (
+    parseOpts,
+)
 from .utils import (
     compat_getpass,
     compat_print,
@@ -94,7 +97,6 @@ from .utils import (
     decodeOption,
     DownloadError,
     MaxDownloadsReached,
-    parseOpts,
     preferredencoding,
     read_batch_urls,
     SameFileError,

+ 2 - 0
youtube_dl/options.py

@@ -1,3 +1,5 @@
+from __future__ import unicode_literals
+
 import os.path
 import optparse
 import shlex