| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
| |
and refactor lazy extractors accordingly.
This reduces the need to create extractor instances
|
|
|
|
| |
Closes #3565, https://github.com/yt-dlp/yt-dlp/issues/3514#issuecomment-1105944364
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
| |
Now all core tests pass with lazy extraction enabled
|
| |
|
|
|
|
| |
Authored by: fstirlitz
|
| |
|
|
|
|
| |
According to the docs '__init__' is only called automatically if '__new__' returns an instance of the original class.
|
|
|
|
|
| |
* Sort extractors alphabetically
* Add newlines when needed (youtube_dl/extractors/lazy_extractors.py pass the flake8 test now)
|
|
|
|
| |
When building with python3 the unicode characters are not escaped, python2 needs to know the encoding.
|
|
'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.
|