aboutsummaryrefslogtreecommitdiff
path: root/devscripts/lazy_load_template.py
AgeCommit message (Collapse)Author
2023-06-22[extractor] Support multiple `_VALID_URL`s (#5812)pukkandan
Authored by: nixxo
2022-11-16[cleanup] Miscpukkandan
Closes #5541
2022-08-24Fix lazy extractor bug in fe7866d0ed6bfa3904ce12b049a3424fdc0ea1fapukkandan
and add test Fixes https://github.com/yt-dlp/yt-dlp/pull/3234#issuecomment-1225347071
2022-08-02[extractor] Framework for embed detection (#4307)pukkandan
2022-05-17[cleanup] Misc cleanuppukkandan
2022-05-13[extractor] Use classmethod/property where possiblepukkandan
and refactor lazy extractors accordingly. This reduces the need to create extractor instances
2022-04-29[cleanup] Misc fixespukkandan
Closes #3565, https://github.com/yt-dlp/yt-dlp/issues/3514#issuecomment-1105944364
2022-04-12[cleanup] Upgrade syntaxpukkandan
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
2021-09-30[docs,cleanup] Some minor refactoring and improve docspukkandan
2021-08-23[lazy_extractor] Create instance only after pre-checking archivepukkandan
2021-08-23[lazy_extractor] Import actual class if an attribute is accessedpukkandan
Now all core tests pass with lazy extraction enabled
2021-08-23[lazy_extractors] Fix `suitable` and add flake8 testpukkandan
2021-06-06[cleanup] Point all shebang to `python3` (#372)felix
Authored by: fstirlitz
2016-10-03Unify coding cookieDéstin Reed
2016-04-08lazy extractors: Initialize the real info extractorJaime Marquínez Ferrándiz
According to the docs '__init__' is only called automatically if '__new__' returns an instance of the original class.
2016-04-08lazy extractors: Style fixesJaime Marquínez Ferrándiz
* Sort extractors alphabetically * Add newlines when needed (youtube_dl/extractors/lazy_extractors.py pass the flake8 test now)
2016-04-08lazy extractors: specify the encodingJaime Marquínez Ferrándiz
When building with python3 the unicode characters are not escaped, python2 needs to know the encoding.
2016-04-08Add experimental support for lazy loading the info extractorsJaime Marquínez Ferrándiz
'make lazy-extractors' creates the youtube_dl/extractor/lazy_extractors.py (imported by youtube_dl/extractor/__init__.py), which contains simplified classes that only have the 'suitable' class method and that load the appropiate class with the '__new__' method when a instance is created.