Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Backups
youtube-dl
Commits
2bad0e5d
Commit
2bad0e5d
authored
Jan 07, 2015
by
Philipp Hagemeister
Browse files
[/__init__] Define public API
parent
ccc5842b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
devscripts/gh-pages/update-sites.py
devscripts/gh-pages/update-sites.py
+1
-1
youtube_dl/__init__.py
youtube_dl/__init__.py
+3
-1
No files found.
devscripts/gh-pages/update-sites.py
View file @
2bad0e5d
...
...
@@ -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
:
...
...
youtube_dl/__init__.py
View file @
2bad0e5d
...
...
@@ -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
(
'
\n
ERROR: Interrupted by user'
)
__all__
=
[
'main'
,
'YoutubeDL'
,
'gen_extractors'
,
'list_extractors'
]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment