]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[/__init__] Define public API
authorPhilipp Hagemeister <phihag@phihag.de>
Wed, 7 Jan 2015 06:41:05 +0000 (07:41 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Wed, 7 Jan 2015 06:41:05 +0000 (07:41 +0100)
devscripts/gh-pages/update-sites.py
youtube_dl/__init__.py

index f0f0481c781ab40f8386de5c87a99c6468e00708..d3ef5f0b50daa56513118f55d5b636e5f46552a0 100755 (executable)
@@ -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 = '<b>{}</b>'.format(ie.IE_NAME)
         ie_desc = getattr(ie, 'IE_DESC', None)
         if ie_desc is False:
index 4c21188a9d8cb12b49d06adfd0c468a8c2b5c19d..4aa7fba6ab2e1fcd284f70c0a3e8e8052987d215 100644 (file)
@@ -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']