aboutsummaryrefslogtreecommitdiffstats
path: root/devscripts/make_lazy_extractors.py
Commit message (Collapse)AuthorAgeFilesLines
* Improve plugin architecture (#5553)Matthew2023-01-011-0/+4
| | | | | | | | | | | | | | | | | to make plugins easier to develop and use: * Plugins are now loaded as namespace packages. * Plugins can be loaded in any distribution of yt-dlp (binary, pip, source, etc.). * Plugin packages can be installed and managed via pip, or dropped into any of the documented locations. * Users do not need to edit any code files to install plugins. * Backwards-compatible with previous plugin architecture. As a side-effect, yt-dlp will now search in a few more locations for config files. Closes https://github.com/yt-dlp/yt-dlp/issues/1389 Authored by: flashdagger, coletdjnz, pukkandan, Grub4K Co-authored-by: Marcel <flashdagger@googlemail.com> Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com> Co-authored-by: Simon Sawicki <accounts@grub4k.xyz>
* [cleanup] Miscpukkandan2022-11-161-2/+9
| | | | Closes #5541
* [docs] Misc improvementspukkandan2022-09-221-1/+1
| | | | Closes #4987, Closes #4906, Closes #4919, Closes #4977, Closes #4979
* [devscripts] make_lazy_extractors: Fix for Docker (#4958)josanabr2022-09-181-2/+4
| | | Authored by: josanabr
* Fix lazy extractor bug in fe7866d0ed6bfa3904ce12b049a3424fdc0ea1fapukkandan2022-08-241-1/+3
| | | | | | and add test Fixes https://github.com/yt-dlp/yt-dlp/pull/3234#issuecomment-1225347071
* [devscripts] Create `utils` and refactorpukkandan2022-08-091-11/+5
|
* [extractor] Framework for embed detection (#4307)pukkandan2022-08-021-6/+1
|
* [build] Consistent order for lazy extractors (#4220)Chris Lamb2022-06-291-1/+1
| | | Authored by: lamby
* [cleanup] Consistent style for file headspukkandan2022-06-251-2/+5
|
* [extractor] Import `_ALL_CLASSES` lazilypukkandan2022-06-161-1/+1
| | | | This significantly speeds up `import yt_dlp` in the absence of `lazy_extractors`
* [cleanup] Minor fixespukkandan2022-05-181-1/+1
|
* [cleanup] Misc cleanuppukkandan2022-05-171-2/+2
|
* [extractor] Use classmethod/property where possiblepukkandan2022-05-131-86/+110
| | | | | | and refactor lazy extractors accordingly. This reduces the need to create extractor instances
* [cleanup,build] Cleanup some build-related codepukkandan2022-04-271-1/+1
| | | | Fixes an issue in 7ab56be2c7309a2d11d4ee28c71f8fb29da21ef7
* [cleanup] Misc cleanup (#2173)pukkandan2022-04-121-2/+1
| | | | Authored by: fstirlitz, pukkandan
* [cleanup] Sort importspukkandan2022-04-121-2/+2
| | | | | | Using https://github.com/PyCQA/isort isort -m VERTICAL_HANGING_INDENT --py 36 -l 80 --rr -n --tc .
* [cleanup] Upgrade syntaxpukkandan2022-04-121-8/+5
| | | | | | | | | | 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
* [lazy_extractors] Fix for search IEspukkandan2021-12-011-9/+2
| | | | Closes #1851
* [cleanup] miscpukkandan2021-10-231-1/+1
|
* [docs,cleanup] Some minor refactoring and improve docspukkandan2021-09-301-2/+0
|
* Fix `add_info_extractor` when used via APIpukkandan2021-08-231-1/+1
| | | | Bug from: 251ae04e6a057167e4eafaf8b7b565a984b48405
* [lazy_extractor] Create instance only after pre-checking archivepukkandan2021-08-231-7/+8
|
* [lazy_extractors] Fix `suitable` and add flake8 testpukkandan2021-08-231-1/+2
|
* [extractor] Common function `_match_valid_url`pukkandan2021-08-231-2/+4
|
* [lazy_extractor] Bugfix for when plugin directory doesn't exist (#691)Kid2021-08-131-2/+6
| | | | | Bug introduced by: 0b2e9d2c3051f2e1d79449adde3afbba3b5ec94f Authored by: kidonng
* [cleanup] Point all shebang to `python3` (#372)felix2021-06-061-0/+1
| | | | Authored by: fstirlitz
* [lazy_extractor] Do not load pluginspukkandan2021-04-221-0/+5
|
* Completely change project name to yt-dlp (#85)Pccode662021-02-251-2/+2
| | | | | | | | | * All modules and binary names are changed * All documentation references changed * yt-dlp no longer loads youtube-dlc config files * All URLs changed to point to organization account Co-authored-by: Pccode66 Co-authored-by: pukkandan
* Merge 'ytdl-org/youtube-dl/master' release 2020.11.19pukkandan2020-11-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | Old Extractors left behind: VLivePlaylistIE YoutubeSearchURLIE YoutubeShowIE YoutubeFavouritesIE If removing old extractors, make corresponding changes in docs/supportedsites.md youtube_dlc/extractor/extractors.py Not merged: .github/ISSUE_TEMPLATE/1_broken_site.md .github/ISSUE_TEMPLATE/2_site_support_request.md .github/ISSUE_TEMPLATE/3_site_feature_request.md .github/ISSUE_TEMPLATE/4_bug_report.md .github/ISSUE_TEMPLATE/5_feature_request.md test/test_all_urls.py youtube_dlc/version.py Changelog
* [skip travis] renamingUnknown2020-09-021-2/+2
| | | to avoid using same folder when using pip install for example
* [devscripts/make_lazy_extractors] Fix making lazy extractors on python 3 ↵Sergey M․2017-02-241-1/+2
| | | | under Windows
* Update coding style after pycodestyle 2.1.0Yen Chi Hsuan2016-11-171-0/+1
| | | | | | | | | | In pycodestyle 2.1.0, E305 was introduced, which requires two blank lines after top level declarations, too. See https://github.com/PyCQA/pycodestyle/issues/400 See also #10689; thanks @stepshal for first mentioning this issue and initial patches
* lazy-extractors: Fix after commit 6e6b9f600f2f447604f6108fb6486b73cc25def1Jaime Marquínez Ferrándiz2016-06-221-6/+41
| | | | | | | | | | | | | | | | | | The problem was in the following code: class ArteTVPlus7IE(ArteTVBaseIE): ... @classmethod def suitable(cls, url): return False if ArteTVPlaylistIE.suitable(url) else super(ArteTVPlus7IE, cls).suitable(url) And its sublcasses like ArteTVCinemaIE. Since in the lazy_extractors.py file ArteTVCinemaIE was not a subclass of ArteTVPlus7IE, super(ArteTVPlus7IE, cls) failed. To fix it we have to make it a subclass. Since the order of _ALL_CLASSES is arbitrary we must sort them so that the base classes are defined first. We also must add base classes like YoutubeBaseInfoExtractor.
* lazy extractors: Style fixesJaime Marquínez Ferrándiz2016-04-081-3/+3
| | | | | * Sort extractors alphabetically * Add newlines when needed (youtube_dl/extractors/lazy_extractors.py pass the flake8 test now)
* lazy extractors: Fix building with python2.6Jaime Marquínez Ferrándiz2016-04-081-3/+3
|
* Add experimental support for lazy loading the info extractorsJaime Marquínez Ferrándiz2016-04-081-0/+63
'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.