about summary refs log tree commit diff
path: root/devscripts/make_lazy_extractors.py
Commit message (Collapse)AuthorAgeFilesLines
* [devscripts/make_lazy_extractors] Correct a spelling mistake (#26991)Edward Betts2020-11-161-1/+1
|
* [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.