downloader -> extractor

This commit is contained in:
Mort Yao 2013-09-11 13:45:34 +02:00
parent 6f77174f34
commit d1d02fe7ae
47 changed files with 6 additions and 5 deletions

View File

@ -6,4 +6,5 @@ from .version import *
# Easy import # Easy import
#from .cli_wrapper.converter import * #from .cli_wrapper.converter import *
#from .cli_wrapper.player import * #from .cli_wrapper.player import *
from .downloader import * from .cli_wrapper import *
from .extractor import *

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python #!/usr/bin/env python
__all__ = ['main', 'any_download', 'any_download_playlist'] __all__ = ['main', 'any_download', 'any_download_playlist']
from ..downloader import * from ..extractor import *
from ..common import * from ..common import *
def url_to_module(url): def url_to_module(url):

View File

@ -4,7 +4,7 @@
import unittest import unittest
from you_get import * from you_get import *
from you_get.downloader.__main__ import url_to_module from you_get.extractor.__main__ import url_to_module
def test_urls(urls): def test_urls(urls):
for url in urls: for url in urls:

View File

@ -4,7 +4,7 @@ import os, sys
__path__ = os.path.dirname(os.path.realpath(__file__)) __path__ = os.path.dirname(os.path.realpath(__file__))
__srcdir__ = 'src' __srcdir__ = 'src'
sys.path.insert(1, os.path.join(__path__, __srcdir__)) sys.path.insert(1, os.path.join(__path__, __srcdir__))
from you_get.downloader import main from you_get.extractor import main
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View File

@ -31,6 +31,6 @@
], ],
"console_scripts": [ "console_scripts": [
"you-get = you_get.downloader.__main__:main" "you-get = you_get.extractor.__main__:main"
] ]
} }