aboutsummaryrefslogtreecommitdiffstats
path: root/devscripts/lazy_load_template.py
Commit message (Collapse)AuthorAgeFilesLines
* [extractor] Framework for embed detection (#4307)pukkandan2022-08-021-2/+4
|
* [cleanup] Misc cleanuppukkandan2022-05-171-3/+8
|
* [extractor] Use classmethod/property where possiblepukkandan2022-05-131-13/+11
| | | | | | and refactor lazy extractors accordingly. This reduces the need to create extractor instances
* [cleanup] Misc fixespukkandan2022-04-291-1/+1
| | | | Closes #3565, https://github.com/yt-dlp/yt-dlp/issues/3514#issuecomment-1105944364
* [cleanup] Upgrade syntaxpukkandan2022-04-121-1/+0
| | | | | | | | | | 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
* [docs,cleanup] Some minor refactoring and improve docspukkandan2021-09-301-3/+9
|
* [lazy_extractor] Create instance only after pre-checking archivepukkandan2021-08-231-0/+1
|
* [lazy_extractor] Import actual class if an attribute is accessedpukkandan2021-08-231-6/+14
| | | | Now all core tests pass with lazy extraction enabled
* [lazy_extractors] Fix `suitable` and add flake8 testpukkandan2021-08-231-4/+0
|
* [cleanup] Point all shebang to `python3` (#372)felix2021-06-061-0/+1
| | | | Authored by: fstirlitz
* Unify coding cookieDéstin Reed2016-10-031-1/+1
|
* lazy extractors: Initialize the real info extractorJaime Marquínez Ferrándiz2016-04-081-2/+4
| | | | According to the docs '__init__' is only called automatically if '__new__' returns an instance of the original class.
* lazy extractors: Style fixesJaime Marquínez Ferrándiz2016-04-081-1/+0
| | | | | * Sort extractors alphabetically * Add newlines when needed (youtube_dl/extractors/lazy_extractors.py pass the flake8 test now)
* lazy extractors: specify the encodingJaime Marquínez Ferrándiz2016-04-081-0/+1
| | | | When building with python3 the unicode characters are not escaped, python2 needs to know the encoding.
* Add experimental support for lazy loading the info extractorsJaime Marquínez Ferrándiz2016-04-081-0/+17
'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.