sample.py 588 B

123456789101112131415161718
  1. # ⚠ Don't use relative imports
  2. from yt_dlp.extractor.common import InfoExtractor
  3. # ℹ️ If you need to import from another plugin
  4. # from yt_dlp_plugins.extractor.example import ExamplePluginIE
  5. # ℹ️ Instructions on making extractors can be found at:
  6. # 🔗 https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#adding-support-for-a-new-site
  7. # ⚠ The class name must end in "IE"
  8. class SamplePluginIE(InfoExtractor):
  9. _WORKING = False
  10. _VALID_URL = r'^sampleplugin:'
  11. def _real_extract(self, url):
  12. self.to_screen('URL "%s" successfully captured' % url)