forked from soimort/you-get
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
181 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
_* | ||
/build/ | ||
/dist/ | ||
|
||
_*/ | ||
*.py[cod] | ||
|
||
*.download | ||
*.3gp | ||
*.flv | ||
*.mp4 | ||
*.webm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Changelog | ||
========= |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# file GENERATED by distutils, do NOT edit | ||
CHANGELOG.txt | ||
LICENSE.txt | ||
Makefile | ||
README.md | ||
README.txt | ||
setup.cfg | ||
setup.py | ||
you-get | ||
you-get.json | ||
you_get/__init__.py | ||
you_get/common.py | ||
you_get/main.py | ||
you_get/downloader/__init__.py | ||
you_get/downloader/tudou.py | ||
you_get/downloader/yinyuetai.py | ||
you_get/downloader/youku.py | ||
you_get/downloader/youtube.py | ||
you_get/processor/__init__.py | ||
you_get/processor/merge_flv.py | ||
you_get/processor/merge_mp4.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
include *.txt | ||
include Makefile | ||
include README.md | ||
include you-get | ||
include you-get.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
default: install sdist bdist | ||
|
||
clean: | ||
rm -fr build/ dist/ | ||
|
||
build: | ||
python3 setup.py build | ||
|
||
install: build | ||
sudo python3 setup.py install | ||
|
||
sdist: | ||
python3 setup.py sdist | ||
|
||
bdist: | ||
python3 setup.py bdist | ||
|
||
.PHONY: default clean build install sdist bdist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
You-Get | ||
======= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[build] | ||
force=0 | ||
|
||
[global] | ||
verbose=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/usr/bin/env python3 | ||
|
||
PROJ_METADATA = 'you-get.json' | ||
|
||
import os, json | ||
|
||
here = os.path.abspath(os.path.dirname(__file__)) | ||
proj_info = json.loads(open(os.path.join(here, PROJ_METADATA)).read()) | ||
README = open(os.path.join(here, 'README.txt')).read() | ||
CHANGELOG = open(os.path.join(here, 'CHANGELOG.txt')).read() | ||
|
||
from distutils.core import setup | ||
setup( | ||
name = proj_info['name'], | ||
version = proj_info['version'], | ||
|
||
author = proj_info['author'], | ||
author_email = proj_info['author_email'], | ||
url = proj_info['url'], | ||
download_url = proj_info['download_url'], | ||
license = proj_info['license'], | ||
|
||
description = proj_info['description'], | ||
keywords = proj_info['keywords'], | ||
long_description = README + '\n\n' + CHANGELOG, | ||
|
||
packages = proj_info['packages'], | ||
|
||
classifiers = proj_info['classifiers'] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/env python3 | ||
|
||
from get import * | ||
from you_get import * | ||
|
||
if __name__ == '__main__': | ||
main('you-get', any_download, any_download_playlist) | ||
if __name__ == "__main__": | ||
script_main('you-get', any_download, any_download_playlist) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,39 @@ | ||
{ | ||
"name": "you-get", | ||
"version": "0.0.1", | ||
"date": "2012-08-20", | ||
"author": "Mort Yao <mort.yao@gmail.com>", | ||
"file_list": [ | ||
"LICENSE", | ||
"README.md", | ||
"common.py", | ||
"get.py", | ||
"get_tudou.py", | ||
"get_yinyuetai.py", | ||
"get_youku.py", | ||
"get_youtube.py", | ||
"merge_flv.py", | ||
"merge_mp4.py", | ||
"you-get", | ||
"you-get.json" | ||
] | ||
|
||
"author": "Mort Yao", | ||
"author_email": "mort.yao@gmail.com", | ||
"url": "http://www.soimort.org/you-get/", | ||
"download_url": "https://github.com/soimort/you-get/zipball/master", | ||
"license": "MIT", | ||
|
||
"description": "A YouTube/Youku video downloader written in Python 3.", | ||
"keywords": "video download youtube youku", | ||
|
||
"packages": [ | ||
"you_get", | ||
"you_get.downloader", | ||
"you_get.processor" | ||
], | ||
|
||
"classifiers": [ | ||
"Development Status :: 1 - Planning", | ||
"Environment :: Console", | ||
"Environment :: Web Environment", | ||
"Intended Audience :: End Users/Desktop", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Natural Language :: English", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.2", | ||
"Topic :: Internet", | ||
"Topic :: Internet :: WWW/HTTP", | ||
"Topic :: Multimedia", | ||
"Topic :: Multimedia :: Video", | ||
"Topic :: Utilities" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
from .processor import * | ||
from .downloader import * | ||
from .main import * | ||
from .common import script_main | ||
|
||
__version__ = common.proj_info['version'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
from .tudou import * | ||
from .yinyuetai import * | ||
from .youku import * | ||
from .youtube import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
__all__ = ['concat_flvs', 'concat_mp4s'] | ||
|
||
from .merge_flv import concat_flvs | ||
from .merge_mp4 import concat_mp4s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env python3 | ||
#!/usr/bin/env python | ||
|
||
import struct | ||
from io import BytesIO | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env python3 | ||
#!/usr/bin/env python | ||
|
||
# reference: c041828_ISO_IEC_14496-12_2005(E).pdf | ||
|
||
|