aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/common.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-09-17 23:53:55 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-09-30 03:32:52 +0530
commite6f21b3d925ea708955c60c400a31fc2e0e36ac0 (patch)
treecb117990190a9c70f777add26ab28228dcab7b79 /yt_dlp/extractor/common.py
parentd710cc6d3660b7bb79cbbefe1f0faec6726b020c (diff)
downloadhypervideo-pre-e6f21b3d925ea708955c60c400a31fc2e0e36ac0.tar.lz
hypervideo-pre-e6f21b3d925ea708955c60c400a31fc2e0e36ac0.tar.xz
hypervideo-pre-e6f21b3d925ea708955c60c400a31fc2e0e36ac0.zip
[docs,cleanup] Some minor refactoring and improve docs
Diffstat (limited to 'yt_dlp/extractor/common.py')
-rw-r--r--yt_dlp/extractor/common.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py
index 114b1faaf..5da29dc63 100644
--- a/yt_dlp/extractor/common.py
+++ b/yt_dlp/extractor/common.py
@@ -406,6 +406,10 @@ class InfoExtractor(object):
_real_extract() methods and define a _VALID_URL regexp.
Probably, they should also be added to the list of extractors.
+ Subclasses may also override suitable() if necessary, but ensure the function
+ signature is preserved and that this function imports everything it needs
+ (except other extractors), so that lazy_extractors works correctly
+
_GEO_BYPASS attribute may be set to False in order to disable
geo restriction bypass mechanisms for a particular extractor.
Though it won't disable explicit geo restriction bypass based on
@@ -421,7 +425,7 @@ class InfoExtractor(object):
will be used by geo restriction bypass mechanism similarly
to _GEO_COUNTRIES.
- Finally, the _WORKING attribute should be set to False for broken IEs
+ The _WORKING attribute should be set to False for broken IEs
in order to warn the users and skip the tests.
"""