restructure package, fix #105

This commit is contained in:
Mort Yao 2013-02-14 23:09:49 +01:00
parent 2b47ccd5d2
commit 106c85e2e5
7 changed files with 19 additions and 17 deletions

View File

@ -150,18 +150,15 @@ For a complete list of all available options, see:
In Python 3 (interactive):
>>> import you_get
>>> you_get.version.__version__
'0.3'
>>> you_get.youtube_download("http://www.youtube.com/watch?v=8bQlxQJEzLk", info_only = True)
>>> from you_get.downloader import *
>>> youtube.download("http://www.youtube.com/watch?v=8bQlxQJEzLk", info_only = True)
Video Site: YouTube.com
Title: If you're good at something, never do it for free!
Type: WebM video (video/webm)
Size: 0.13 MB (133176 Bytes)
>>> you_get.any_download("http://www.youtube.com/watch?v=sGwy8DsUJ4M")
>>> import you_get
>>> you_get.any_download("http://www.youtube.com/watch?v=sGwy8DsUJ4M")
Video Site: YouTube.com
Title: Mort from Madagascar LIKES
Type: WebM video (video/webm)

View File

@ -158,18 +158,15 @@ Examples (For Developers)
In Python 3 (interactive)::
>>> import you_get
>>> you_get.version.__version__
'0.3'
>>> you_get.youtube_download("http://www.youtube.com/watch?v=8bQlxQJEzLk", info_only = True)
>>> from you_get.downloader import *
>>> youtube.download("http://www.youtube.com/watch?v=8bQlxQJEzLk", info_only = True)
Video Site: YouTube.com
Title: If you're good at something, never do it for free!
Type: WebM video (video/webm)
Size: 0.13 MB (133176 Bytes)
>>> you_get.any_download("http://www.youtube.com/watch?v=sGwy8DsUJ4M")
>>> import you_get
>>> you_get.any_download("http://www.youtube.com/watch?v=sGwy8DsUJ4M")
Video Site: YouTube.com
Title: Mort from Madagascar LIKES
Type: WebM video (video/webm)

View File

@ -6,4 +6,4 @@ from .downloader import *
from .version import *
from .common import *
from .main import *
from .__main__ import *

View File

@ -65,3 +65,6 @@ def any_download_playlist(url, output_dir = '.', merge = True, info_only = False
def main():
script_main('you-get', any_download, any_download_playlist)
if __name__ == "__main__":
main()

View File

@ -1,4 +1,6 @@
#!/usr/bin/env python
__all__ = ['__version__', '__date__']
__version__ = '0.3.1rc'
__date__ = '2013-02-12'

View File

@ -1,6 +1,9 @@
#!/usr/bin/env python3
from src.you_get import *
import os, sys
sys.path.insert(0, os.path.join((os.path.dirname(os.path.abspath(__file__))), "src"))
from you_get import *
if __name__ == "__main__":
main()

View File

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