From 2bad0e5d202aa041ab9ddb9e7dcffe69848a5349 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Wed, 7 Jan 2015 07:41:05 +0100 Subject: [PATCH] [/__init__] Define public API --- devscripts/gh-pages/update-sites.py | 2 +- youtube_dl/__init__.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/devscripts/gh-pages/update-sites.py b/devscripts/gh-pages/update-sites.py index f0f0481c7..d3ef5f0b5 100755 --- a/devscripts/gh-pages/update-sites.py +++ b/devscripts/gh-pages/update-sites.py @@ -16,7 +16,7 @@ def main(): template = tmplf.read() ie_htmls = [] - for ie in sorted(youtube_dl.gen_extractors(), key=lambda i: i.IE_NAME.lower()): + for ie in youtube_dl.list_extractors(age_limit=None): ie_html = '{}'.format(ie.IE_NAME) ie_desc = getattr(ie, 'IE_DESC', None) if ie_desc is False: diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py index 4c21188a9..4aa7fba6a 100644 --- a/youtube_dl/__init__.py +++ b/youtube_dl/__init__.py @@ -38,7 +38,7 @@ from .update import update_self from .downloader import ( FileDownloader, ) -from .extractor import list_extractors +from .extractor import gen_extractors, list_extractors from .YoutubeDL import YoutubeDL @@ -363,3 +363,5 @@ def main(argv=None): sys.exit('ERROR: fixed output name but more than one file to download') except KeyboardInterrupt: sys.exit('\nERROR: Interrupted by user') + +__all__ = ['main', 'YoutubeDL', 'gen_extractors', 'list_extractors'] -- 2.39.5