mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-18 01:35:12 +00:00
86e5f3ed2e
Using https://github.com/asottile/pyupgrade 1. `__future__` imports and `coding: utf-8` were removed 2. Files were rewritten with `pyupgrade --py36-plus --keep-percent-format` 3. f-strings were cherry-picked from `pyupgrade --py36-plus` Extractors are left untouched (except removing header) to avoid unnecessary merge conflicts
14 lines
454 B
Python
14 lines
454 B
Python
# ⚠ Don't use relative imports
|
||
from yt_dlp.extractor.common import InfoExtractor
|
||
|
||
|
||
# ℹ️ Instructions on making extractors can be found at:
|
||
# 🔗 https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#adding-support-for-a-new-site
|
||
|
||
class SamplePluginIE(InfoExtractor):
|
||
_WORKING = False
|
||
IE_DESC = False
|
||
_VALID_URL = r'^sampleplugin:'
|
||
|
||
def _real_extract(self, url):
|
||
self.to_screen('URL "%s" sucessfully captured' % url)
|