]> jfr.im git - yt-dlp.git/commitdiff
Fix bug in fe7866d0ed6bfa3904ce12b049a3424fdc0ea1fa
authorpukkandan <redacted>
Wed, 24 Aug 2022 02:50:52 +0000 (08:20 +0530)
committerpukkandan <redacted>
Wed, 24 Aug 2022 02:51:39 +0000 (08:21 +0530)
README.md
yt_dlp/extractor/generic.py
yt_dlp/options.py

index e49190ab2ccc995a4f58c1f48f75fb0c4eb829f5..8957711ddbd0e624ad2d0123920b98e756c4550e 100644 (file)
--- a/README.md
+++ b/README.md
@@ -375,13 +375,13 @@ ## General Options:
     --list-extractors               List all supported extractors and exit
     --extractor-descriptions        Output descriptions of all supported
                                     extractors and exit
-    --use-extractors, --ies NAMES   Extractor names to use separated by commas.
+    --use-extractors NAMES          Extractor names to use separated by commas.
                                     You can also use regexes, "all", "default"
                                     and "end" (end URL matching); e.g. --ies
                                     "holodex.*,end,youtube". Prefix the name
                                     with a "-" to exclude it, e.g. --ies
                                     default,-generic. Use --list-extractors for
-                                    a list of available extractor names
+                                    a list of extractor names. (Alias: --ies)
     --default-search PREFIX         Use this prefix for unqualified URLs. E.g.
                                     "gvsearch2:python" downloads two videos from
                                     google videos for the search term "python".
index e32ec1c8faa1f63ad877576c9d70f0c51fa4594b..b65194c60426b0b31d73c0d9384a8b1842009a5d 100644 (file)
@@ -3,7 +3,6 @@
 import urllib.parse
 import xml.etree.ElementTree
 
-from . import gen_extractor_classes
 from .common import InfoExtractor  # isort: split
 from .brightcove import BrightcoveLegacyIE, BrightcoveNewIE
 from .commonprotocols import RtmpIE
@@ -2805,7 +2804,7 @@ def _real_extract(self, url):
 
         self._downloader.write_debug('Looking for embeds')
         embeds = []
-        for ie in gen_extractor_classes():
+        for ie in self._downloader._ies.values():
             gen = ie.extract_from_webpage(self._downloader, url, webpage)
             current_embeds = []
             try:
index 5e15812963297b8c99ad580cc27310ab4ac21118..50bba9b633d95b2d5bf9c9737faf4b61c526bfc4 100644 (file)
@@ -362,7 +362,7 @@ def _alias_callback(option, opt_str, value, parser, opts, nargs):
             'You can also use regexes, "all", "default" and "end" (end URL matching); '
             'e.g. --ies "holodex.*,end,youtube". '
             'Prefix the name with a "-" to exclude it, e.g. --ies default,-generic. '
-            'Use --list-extractors for a list of available extractor names'))
+            'Use --list-extractors for a list of extractor names. (Alias: --ies)'))
     general.add_option(
         '--force-generic-extractor',
         action='store_true', dest='force_generic_extractor', default=False,